tencent cloud

APIs

CreateSharedCNAME

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-25 17:00:29

1. API Description

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

Used to create a shared CNAME. This feature is in beta test.

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: CreateSharedCNAME.
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 ID of the site associated with the shared CNAME.
SharedCNAMEPrefix Yes String Share the CNAME prefix. Enter a valid domain name prefix, for example, "test-api" or "test-api.com", limited to 50 characters.

The full format of a shared CNAME is: <custom prefix>+<12-bit random string in zoneid>+share.dnse[0-5].com.

For example, if the prefix input is example.com, EdgeOne will create a shared CNAME for you: example.com.sai2ig51kaa5.share.dnse2.com.
Description No String Description. Enter 1-50 characters.

3. Output Parameters

Parameter Name Type Description
SharedCNAME String Shared CNAME. Format: <custom prefix>+<12-bit random string in ZoneId>+share.dnse[0-5].com.
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 Shared CNAME

Create a shared CNAME with the prefix test and description For Service A for the site with ZoneId zone-225qgrnvbi9w.

Input Example

POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateSharedCNAME
<Common request parameters>

{
    "SharedCNAMEPrefix": "example.com",
    "ZoneId": "zone-225qgrnvbi9w",
    "Description": "For Service A"
}

Output Example

{
    "Response": {
        "SharedCNAME": "example.com.225qgrnvbi9w.share.dnse1.com",
        "RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
    }
}

5. Developer Resources

SDK

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
InvalidParameterValue.NotAllowedWildcardSharedCNAME No support for accessing wildcard domain CNAME
InvalidParameterValue.SharedCNAMEPrefixNotMatch Enter a valid shared CNAME prefix. It supports up to 50 characters.
LimitExceeded The quota limit is exceeded.
OperationDenied.ErrZoneIsAlreadyPaused Site disabled. Turn it on and try again.
ResourceUnavailable.SharedCNAMEAlreadyExists The shared CNAME is occupied. Please enter another one.

Ajuda e Suporte

Esta página foi útil?

comentários