Domain name for API request: teo.intl.tencentcloudapi.com.
This API is used to modify the working mode of each configuration module under a site. Each configuration module of a site can enable version management mode or immediate effect mode by configuration group dimension. For details, see Version Management (https://www.tencentcloud.com/document/product/1552/113690?from_cn_redirect=1).
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: ModifyZoneWorkMode. |
| 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. |
| WorkModeInfos.N | No | Array of ConfigGroupWorkModeInfo | Version management configuration group working mode. Each configuration module of a site can enable "version management mode" or "immediate effect mode" by configuration group dimension. For details, see Version Management. |
| 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. |
Modify the working mode of the site's layer-7 acceleration configuration group and edge function configuration group to version management.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyZoneWorkMode
<Common request parameters>
{
"ZoneId": "zone-27********v1",
"WorkModeInfos": [
{
"ConfigGroupType": "l7_acceleration",
"WorkMode": "version_control"
},
{
"ConfigGroupType": "edge_functions",
"WorkMode": "version_control"
}
]
}
{
"Response": {
"RequestId": "a06f52e7-2aab-4510-b2c2-1065bfb4414c"
}
}
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.WorkModeIsSame | Site working mode not updated |
| InvalidParameter.ZoneNotFound | The site does not exist. |
| InvalidParameterValue.OwnershipVerificationNotPassed | Ownership verification failed. Please complete site ownership verification first. |
| OperationDenied.AliasDomainNotSupport | This operation does not support alias domain names. |
| OperationDenied.ConfigLocked | The configuration has been locked. Unlock it and retry. |
| OperationDenied.DomainStatusUnstable | A domain name on the site is not in a steady state. Steady states include "online" and "offline". |
| OperationDenied.ErrZoneIsAlreadyPaused | Site disabled. Turn it on and try again. |
| OperationDenied.NotInVersionControlWhiteList | The user is not in the allowlist for version management. |
| OperationDenied.OwnershipVerificationNotPassed | Ownership verification failed. Please complete site ownership verification first. |
| OperationDenied.PlanTypeIsWrong | The enterprise package of the site configuration does not support the version control feature. |
| OperationDenied.VersionControlLocked | Version management mode is applied. Operation not allowed. |
| OperationDenied.VersionControlNeedNSSwitched | For sites in NS mode, please first switch the NS before toggling version management. |
| ResourceNotFound.ZoneNotFound | The site does not exist. |
| ResourceUnavailable.ZoneNotFound | The site does not exist or does not belong to this account. |
文档反馈