tencent cloud

APIs

ModifyAccelerationDomain

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-25 17:00:25

1. API Description

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

Modify acceleration domain name 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: ModifyAccelerationDomain.
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 of the acceleration domain name.
DomainName Yes String Acceleration domain name.
OriginInfo No OriginInfo Origin server information.
OriginProtocol No String Origin-pull protocol. Valid values:
  • FOLLOW: follow protocol;
  • HTTP: Origin-pull over HTTP;
  • HTTPS: Origin-pull over HTTPS protocol.
  • Leave blank to retain the original configuration.
  • HttpOriginPort No Integer HTTP origin-pull port. Value range: 1–65535. This parameter is valid only when OriginProtocol is FOLLOW or HTTP. If not specified, the original configuration is retained.
    HttpsOriginPort No Integer HTTPS origin-pull port. Value range: 1-65535. This parameter is valid only when OriginProtocol is FOLLOW or HTTPS. If not specified, the original configuration is retained.
    IPv6Status No String IPv6 status. Valid values:
  • follow: follow the site IPv6 configuration;
  • on: enabled;
  • off: Disabled.
  • Leave blank to retain the original configuration.
  • 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 acceleration domain information

    POST / HTTP/1.1
    Host: teo.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyAccelerationDomains
    <Common request parameters>

    {
    "DomainName":"qq.com",
    "ZoneId":"zone-225qgrnvbi9w",
    "OriginInfo":{
    "OriginType":"ip_domain",
    "Origin":"qq.com"
    }
    }

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyAccelerationDomain
    <Common request parameters>
    
    {
        "DomainName": "example.com",
        "ZoneId": "zone-225qgrnvbi9w",
        "OriginInfo": {
            "OriginType": "ip_domain",
            "Origin": "qq.com",
            "BackupOrigin": ""
        }
    }

    Output Example

    {
        "Response": {
            "RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
        }
    }

    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
    FailedOperation Operation failed.
    InternalError.ConfigLocked The configuration has been locked. Unlock it and retry.
    InternalError.SystemError Internal error. System error.
    InvalidParameter.ConflictHostOrigin The origin server cannot be the same as the domain name.
    InvalidParameter.InvalidAwsRegion Fill in the region correctly as a private network access parameter for third-party object storage.
    InvalidParameter.InvalidAwsSecretKey Invalid third-party object storage.
    InvalidParameter.InvalidClientIpOrigin Invalid origin server for subregional origin-pull.
    InvalidParameter.InvalidHttps Invalid HTTPS.
    InvalidParameter.InvalidOrigin Invalid origin server.
    InvalidParameter.InvalidOriginIp Private IP addresses or loopback addresses are not supported as the origin server address.
    InvalidParameter.InvalidPrivateAccessParams Fill in AccessKeyId and SecretAccessKey as private network access parameters for third-party object storage.
    InvalidParameter.InvalidRangeOriginPull Invalid range-based origin pull.
    InvalidParameter.InvalidStandardDebugClientIp Invalid client ip or ip range.
    InvalidParameter.InvalidWebSocketTimeout Invalid WebSocket.
    InvalidParameter.OriginIsInnerIp The origin server uses a private IP.
    InvalidParameter.SpaceNotBindOrigin Shield Space is not bound to an origin server. Please bind an origin server first and try again.
    InvalidParameter.ZoneIsGrayPublishing Site is upgrading. Changes are not currently supported. Try again later.
    InvalidParameterValue.ConflictRecord Conflicts with an added record.
    InvalidParameterValue.DomainNotMatchZone The domain name in the input parameters does not match the site parameter. Correct it and try again.
    InvalidParameterValue.InvalidDomainStatus Accelerated domain name status does not meet requirements.
    InvalidParameterValue.SiteFailoverNotSupportHostOriginTypeVod Origin server failover does not support VOD origin servers.
    OperationDenied.DomainNoICP The domain name has not obtained an ICP Filing.
    OperationDenied.ResourceLockedTemporary Currently there are parallel request operations that repel each other. Please try again later.
    OperationDenied.VersionControlIsGraying A test version is in use. Publish the test version to the production environment or roll back the test version and try again.
    ResourceInUse The resource is occupied.
    ResourceInUse.DnsRecord That domain name is being parsed. If you need to enable acceleration, please go to the DNS record page to enable acceleration.
    ResourceUnavailable.DomainNotFound The requested acceleration domain name does not exist. Correct it and try again.
    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