tencent cloud



Last updated: 2024-05-29 14:55:42

    1. API Description

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

    This API is used to release versions in version management mode. Users can deploy the version to either the testing environment or the production environment by specifying the EnvId parameter. The version management feature is currently undergoing beta testing and is accessible only to users on the whitelist.

    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: 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 specify the environment ID to which the version should be released.
    ConfigGroupVersionInfos.N Yes Array of ConfigGroupVersionInfo Version information required for release. Multiple versions of different configuration groups can be modified simultaneously, while each group allows modifying only one version at a time.
    Description Yes String Change description. It is used to describe the content and reasons for this change. A maximum of 100 characters are supported.

    3. Output Parameters

    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.

    4. Example

    Example1 Create a Version Deployment Task

    Release a specific version with ZoneId set to zone-32qwgrnvbisw, VersionId to ver-2ogs1as803hm, and EnvId to env-28jw51ksm9bw.

    Input Example

    POST / HTTP/1.1
    Host: teo.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"

    Output Example

        "Response": {
            "RequestId": "5e0a2b4e-df6d-4d2a-as19-1706cbf8a902",
            "RecordId": "dr-2nvadq3sa41u"

    5. Developer Resources


    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.ConfigConditionSyntaxError Syntax error in the condition expression of the configuration file.
    FailedOperation.ConfigConditionUnknownTarget Unrecognized condition matching type.
    FailedOperation.ConfigConditionValueEmptyError The value field of the condition expression cannot be empty in the configuration file.
    FailedOperation.ConfigFieldTypeError The configuration file contains fields with inconsistent data types.
    FailedOperation.ConfigFormatError Syntax error in the configuration file.
    FailedOperation.ConfigMalformedContent Incorrect format of the configuration file. Parsing failed.
    FailedOperation.ConfigParamValidateErrors Parameter verification error in the configuration file.
    FailedOperation.ConfigUnknownField The specified field in the configuration file is not recognized, indicating a possible spelling error or incorrect placement within the file structure.
    FailedOperation.ConfigUnsupportedFormatVersion The current configuration file version is not supported.
    InvalidParameter.ZoneNotFound The site does not exist.
    OperationDenied.ConfigLocked The configuration is locked. Please unlock and try again.
    OperationDenied.DomainStatusUnstable Some domain names on the site are currently experiencing instability. The stable states for domain names are "online" and "offline".
    OperationDenied.EnvNotReady The site environment is not ready.
    OperationDenied.NotInVersionControlWhiteList The current user is not included in the whitelist for version management.
    OperationDenied.VersionControlLocked The operation is not allowed because the version management mode is applied.
    OperationDenied.WorkModeNotInVersionControl The specified site working mode is not applicable to the version management mode.
    ResourceNotFound The resource doesn’t exist.
    ResourceNotFound.VersionNotFound The configuration group version does not exist. Please check and try again.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support