Domain name for API request: teo.tencentcloudapi.com.
This API is used to modify the site configuration.
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: ModifyZoneSetting. |
Version | Yes | String | Common Params. The value used for this API: 2022-01-06. |
Region | No | String | Common Params. This parameter is not required for this API. |
ZoneId | Yes | String | ID of the site to be modified |
Cache | No | CacheConfig | Cache expiration time |
CacheKey | No | CacheKey | Node cache key |
MaxAge | No | MaxAge | Browser cache configuration |
OfflineCache | No | OfflineCache | Offline cache |
Quic | No | Quic | QUIC access |
PostMaxSize | No | PostMaxSize | Maximum size of files transferred over POST request |
Compression | No | Compression | Smart compression configuration |
UpstreamHttp2 | No | UpstreamHttp2 | HTTP2 origin-pull configuration |
ForceRedirect | No | ForceRedirect | Force HTTPS redirect configuration |
Https | No | Https | HTTPS acceleration configuration |
Origin | No | Origin | Origin server configuration |
SmartRouting | No | SmartRouting | Smart acceleration configuration |
WebSocket | No | WebSocket | WebSocket configuration |
ClientIpHeader | No | ClientIp | Origin-pull client IP header configuration |
CachePrefresh | No | CachePrefresh | Cache prefresh configuration |
Parameter Name | Type | Description |
---|---|---|
ZoneId | String | Site ID |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyZoneSetting
<Common request parameters>
{
"ZoneId": "zone-21xfqlh4qjee",
"Cache": {
"NoCache": {
"Switch": "on"
}
}
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707",
"ZoneId": "zone-21xfqlh4qjee"
}
}
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyZoneSetting
<Common request parameters>
{
"ZoneId": "zone-21xfqlh4qjee"
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707",
"ZoneId": "zone-21xfqlh4qjee"
}
}
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyZoneSetting
<Common request parameters>
{
"ZoneId": "zone-21xfqlh4qjee",
"Quic": {
"Switch": "on"
}
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707",
"ZoneId": "zone-21xfqlh4qjee"
}
}
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 |
---|---|
InvalidParameter.InvalidCacheOnlyOnSwitch | Invalid node cache. |
InvalidParameter.InvalidClientIpHeaderName | Invalid client IP request header. |
InvalidParameter.InvalidDynamicRoutineBilling | The package does not support Smart Acceleration. |
InvalidParameter.InvalidForceRedirectType | |
InvalidParameter.InvalidOrigin | Invalid origin server. |
InvalidParameter.InvalidPostMaxSizeBilling | The speciThe plan does not support limiting the max upload size. |
InvalidParameter.InvalidPostSizeValue | Invalid POST request size. |
InvalidParameter.InvalidRequestHeaderName | Invalid request header. |
InvalidParameter.InvalidResourceIdBilling | You have not purchased a plan yet. |
InvalidParameter.InvalidWebSocketTimeout | Invalid WebSocket. |
InvalidParameter.SettingInvalidParam | Configuration parameter error. |
InvalidParameter.ZoneNotFound | The site does not exist. |
OperationDenied | Operation denied. |
UnauthorizedOperation.CamUnauthorized | CAM is not authorized. |
UnauthorizedOperation.NoPermission | The sub-account is not authorized for the operation. Please get permissions first. |
Was this page helpful?