Domain name for API request: teo.intl.tencentcloudapi.com.
In version management mode, this API is used for version release. You can release a version to the testing environment or production environment by EnvId. The version management feature is in beta test and currently only available to the allowlist.
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: DeployConfigGroupVersion. |
| 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. |
| EnvId | Yes | String | Environment ID. Please enter the environment ID to which the version needs to be released. |
| ConfigGroupVersionInfos.N | Yes | Array of ConfigGroupVersionInfo | Version information to release. You can update versions of multiple different configuration groups at the same time. Each configuration group supports updating only one version at a time. |
| Description | Yes | String | Change description. Used to describe the content and reason for this change. Supports up to 100 characters. |
| Parameter Name | Type | Description |
|---|---|---|
| RecordId | String | Release record ID. |
| 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. |
Release the version with version ID ver-2ogs1as803hm under site ID zone-32qwgrnvbisw to the environment with environment ID env-28jw51ksm9bw.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateDeployVersionTask
<Common request parameters>
{
"ZoneId": "zone-32qwgrnvbisw",
"EnvId": "env-28jw51ksm9bw",
"ConfigGroupVersionInfos": [
{
"VersionId": "ver-2ogs1as803hm"
}
],
"Description": "Add IPv6 and AccelerationMainland configuration"
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-as19-1706cbf8a902",
"RecordId": "dr-2nvadq3sa41u"
}
}
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.ConfigConditionSyntaxError | Syntax error in the Condition expression in the configuration file. |
| FailedOperation.ConfigConditionUnknownTarget | Unrecognized Condition match type. |
| FailedOperation.ConfigConditionValueEmptyError | The Condition expression value in the configuration file cannot be empty. |
| FailedOperation.ConfigFieldTypeError | The config file contains a field with a type mismatch. |
| FailedOperation.ConfigFormatError | Syntax error in the configuration file. |
| FailedOperation.ConfigMalformedContent | Configuration file content format error. Unable to resolve. |
| FailedOperation.ConfigParamValidateErrors | Configuration file parameter validation error. |
| FailedOperation.ConfigUnknownField | Unrecognized field in the configuration file: spelling error or the level where the field is located is incorrect. |
| FailedOperation.ConfigUnsupportedFormatVersion | Configuration file version not supported currently. |
| InvalidParameter.ZoneNotFound | The site does not exist. |
| 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.EnvNotReady | Site environment not ready. |
| OperationDenied.NotInVersionControlWhiteList | The user is not in the allowlist for version management. |
| OperationDenied.VersionControlLocked | Version management mode is applied. Operation not allowed. |
| OperationDenied.WorkModeNotInVersionControl | The site working mode is NOT_IN version management mode. |
| ResourceNotFound | The resource does not exist. |
| ResourceNotFound.VersionNotFound | The configuration group version does not exist. Check and retry. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan