tencent cloud

Tencent Cloud EdgeOne

ModifyAccelerationDomainStatuses

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-25 17:00:25

1. API Description

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

Batch modify accelerated domain status

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: ModifyAccelerationDomainStatuses.
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.
DomainNames.N Yes Array of String List of acceleration domain names for which to modify the execution status.
Status Yes String Acceleration domain name status. Valid values:
  • online: Enable;
  • offline: Disable.
  • Force No Boolean Whether to force suspension. When a domain name has associated resources (for example, alias domain names or traffic scheduling functions), whether to force suspension of that domain name. Valid values:
  • true: disable that domain name and all associated resources;
  • false: When the acceleration domain name has associated resources, it cannot be disabled.
  • If not specified, the default value is false.

    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 Batch Modify Accelerated Domain Status

    This example shows you how to disable a specified acceleration domain name.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: ModifyAccelerationDomainStatuses
    <Common request parameters>
    
    {
        "DomainNames": [
            "example.com"
        ],
        "ZoneId": "zone-225qgrnvbi9w",
        "Status": "offline",
        "Force": false
    }

    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.SystemError Internal error. System error.
    InvalidParameter.ErrInvalidActionParamValue Unauthorized operations - Illegal parameters - Invalid parameter value.
    InvalidParameter.InvalidErrorPage Invalid custom error page.
    InvalidParameter.InvalidServerName Invalid origin-pull Host.
    InvalidParameter.ZoneIsGrayPublishing Site is upgrading. Changes are not currently supported. Try again later.
    InvalidParameterValue.DomainNotMatchZone The domain name in the input parameters does not match the site parameter. Correct it and try again.
    OperationDenied Operation denied.
    OperationDenied.ConfigLocked The configuration has been locked. Unlock it and retry.
    OperationDenied.ErrZoneIsAlreadyPaused Site disabled. Turn it on and try again.
    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.
    OperationDenied.VersionControlLocked Version management mode is applied. Operation not allowed.
    ResourceInUse The resource is occupied.
    ResourceUnavailable.DomainNotFound The requested acceleration domain name does not exist. Correct it and try again.
    UnauthorizedOperation.CamUnauthorized Unauthorized Cam operation.
    UnauthorizedOperation.Unknown Unknown error occurs on the real server.

    ヘルプとサポート

    この記事はお役に立ちましたか?

    フィードバック