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.
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; |
| 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: |
| 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. |
This example shows you how to disable a specified acceleration domain name.
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
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
フィードバック