tencent cloud

APIs

ModifyZone

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-25 16:57:51

1. API Description

Domain name for API request: teo.intl.tencentcloudapi.com.

Modifies site information.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ModifyZone.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
ZoneId Yes String Zone ID.
Type No String Site access method. Valid values:
  • full: NS access;
  • partial: CNAME access. If the site is currently accessed with no domain name, it can be switched only to CNAME access.
  • dnsPodAccess: DNSPod hosted access. To use this access mode, your domain name should have been hosted on DNSPod.
  • If this parameter is not input, the original configuration is maintained.
    VanityNameServers No VanityNameServers Custom site info used as an alternative to the default name server assigned by the system. Maintain the original configuration if not specified. This parameter cannot be passed when the site uses the no domain access method.
    AliasZoneName No String Identical site identifier. Enter numbers, letters, ".", "-", and "_" only, up to 200 characters.
    Area No String Site access region. Valid values:
  • global: global;
  • mainland: Chinese mainland;
  • overseas: outside the Chinese mainland.
  • This parameter is not allowed when the site uses no domain access method.
    ZoneName No String Site name. This field is valid only when the site is switched from the no domain access method to the CNAME access method.

    3. Output Parameters

    Parameter Name Type Description
    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Modify a Site

    Modify a site.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyZone
    <Common request parameters>
    
    {
        "VanityNameServers": {
            "Switch": "on",
            "Servers": [
                "ns1.example.com",
                "ns2.example.com"
            ]
        },
        "Type": "full",
        "ZoneId": "zone-27q0p0bali16",
        "AliasZoneName": "zone-example"
    }

    Output Example

    {
        "Response": {
            "RequestId": "4ac50b24-7dc2-47f4-92ce-9fd25d53gt2f"
        }
    }

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    DryRunOperation DryRun operation means the request will be successful, but the DryRun parameter is passed.
    FailedOperation Operation failed.
    FailedOperation.FailedToCallDNSPod Failed to call DNSPod. Please try again later. If the problem persists, submit a ticket.
    InternalError.ConfigLocked The configuration has been locked. Unlock it and retry.
    InvalidParameter.InvalidOriginIp Private IP addresses or loopback addresses are not supported as the origin server address.
    InvalidParameter.InvalidWebSocketTimeout Invalid WebSocket.
    InvalidParameter.LengthExceedsLimit The parameter length exceeds the limit.
    InvalidParameter.ZoneNameIsRequired The site name is required when switching a domainless access site to the CNAME access type.
    InvalidParameterValue Parameter value error.
    InvalidParameterValue.ZoneSameAsName The identical site identifier is occupied. Please enter again.
    OperationDenied Operation denied.
    OperationDenied.DNSPodUnauthorizedRoleOperation The TEO_QCSLinkedRoleInDnspodAccessEO role is not authorized. Please authorize it and try again.
    OperationDenied.DisableZoneNotCompleted Site disabling not complete. Try again later.
    OperationDenied.DomainInShareCnameGroup A domain name is in the shared cname group and the access type cannot be switched.
    OperationDenied.DomainNumberIsNotZero The service area is not allowed to be modified when a domain name exists under the site.
    OperationDenied.ErrZoneIsAlreadyPaused Site disabled. Turn it on and try again.
    OperationDenied.MultipleCnameZone Multiple Cname sites already exist. Switching to NS is not allowed.
    OperationDenied.NSNotAllowTrafficStrategy Traffic scheduling by domain is not supported in NS access mode.
    OperationDenied.NoDomainAccessZoneOnlyAllowModifiedToCNAME Sites without domain access can only be switched to the CNAME access type.
    OperationDenied.NoDomainAccessZoneOnlySupportModifyAreaAndAliasZoneName Domainless access sites support modification of only the acceleration region and identical site identifier.
    OperationDenied.NoDomainAccessZoneOnlySupportModifyType Sites without domain access do not support any modification actions other than switching to the CNAME access type.
    OperationDenied.PlanNotSupportModifyZoneArea The plan does not support changing the service area of a site.
    OperationDenied.ResourceLockedTemporary Currently there are parallel request operations that repel each other. Please try again later.
    OperationDenied.SwitchAreaCdnPlatformReuse The current domain is integrated with both CDN and EdgeOne. No operation can be performed at this time.
    OperationDenied.SwitchAreaOriginProtectionDeploying Origin protection configuration is being deployed. Switch the acceleration region after deployment.
    OperationDenied.ZoneHasHostsModifyConflict When modifying the acceleration region, if a domain name already exists under the site, you do not have permission to simultaneously adjust other information.
    ResourceInUse.Cname The resource is occupied by a Cname integration from this account.
    ResourceInUse.Dns Dns resources are occupied.
    ResourceInUse.GenericHost Resource is occupied by a wildcard domain name.
    ResourceInUse.NS The resource is occupied by an NS access from this account.
    ResourceInUse.Others Resource is connected by another user.
    ResourceInUse.OthersAliasDomain Resource is occupied by the alias domain name of another account.
    ResourceInUse.OthersCname The resource is occupied by a Cname integration from another account.
    ResourceInUse.OthersNS The resource is occupied by an NS access from another account.
    ResourceInUse.SelfAndOthersCname The resource is occupied by simultaneous Cname integrations from this account and another account.
    ResourceNotFound The resource does not exist.
    ResourceNotFound.DNSPodDomainNotInAccount The domain name is not properly accessed via DNSPod. Please try again after DNSPod access.
    ResourceUnavailable Resources are unavailable.
    UnauthorizedOperation.CamUnauthorized Unauthorized Cam operation.
    UnauthorizedOperation.NoPermission The sub-account does not have operation permissions. Add the required permissions and try again.

    Ajuda e Suporte

    Esta página foi útil?

    comentários