tencent cloud



Last updated: 2022-02-23 10:16:36

1. API Description

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

This API is used to create an acceleration domain name.


If you have migrated your ECDN service to CDN, you can use the corresponding CDN API.

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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: AddEcdnDomain.
Version Yes String Common parameter. The value used for this API: 2019-10-12.
Region No String Common parameter. This parameter is not required for this API.
Domain Yes String Domain name.
Origin Yes Origin Origin server configuration.
Area Yes String Domain name acceleration region. Valid values: mainland (acceleration in Mainland China), overseas (acceleration outside Mainland China), global (global acceleration).
ProjectId No Integer Project ID. Default value: 0.
IpFilter No IpFilter IP block/allowlist configuration.
IpFreqLimit No IpFreqLimit IP access limit configuration.
ResponseHeader No ResponseHeader Origin server response header configuration.
CacheKey No CacheKey Node caching configuration.
Cache No Cache Caching rule configuration.
Https No Https HTTPS configuration.
ForceRedirect No ForceRedirect Forced access protocol redirection configuration.
Tag.N No Array of Tag Tag bound to a domain name.
WebSocket No WebSocket WebSocket configuration.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Adding an acceleration domain name

Input Example

&<Common request parameters>

Output Example

  "Response": {
    "RequestId": "23cd4005-496f-4bc4-87d8-ab348d5b0c17"

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.EcdnConfigError Failed to update the domain name configuration. Please try again or contact customer service for assistance.
InternalError.EcdnConfigError Internal configuration service error. Please try again later or contact the customer service for assistance.
InternalError.EcdnDbError Internal data error. Please submit a ticket for troubleshooting.
InternalError.EcdnSystemError System error. Please submit a ticket for troubleshooting.
InvalidParameter.EcdnCamTagKeyNotExist The tag key does not exist.
InvalidParameter.EcdnInterfaceError Internal API error. Please submit a ticket for troubleshooting.
InvalidParameter.EcdnParamError Parameter error. Please see the sample parameters in the documentation.
InvalidParameter.EcdnResourceManyTagKey This domain name binds too many tag keys.
InvalidParameter.EcdnTagKeyInvalid Invalid tag key.
InvalidParameter.EcdnTagKeyNotExist The tag key does not exist.
InvalidParameter.EcdnTagKeyTooManyValue The tag key has too many values.
InvalidParameter.EcdnTagValueInvalid Invalid tag value.
InvalidParameter.EcdnUserTooManyTagKey This user has too many tag keys.
LimitExceeded.EcdnDomainOpTooOften Domain name operations are too frequent.
LimitExceeded.EcdnUserTooManyDomains The number of connected domain names reached the upper limit.
ResourceInUse.EcdnDomainExists This domain name already exists.
ResourceInUse.EcdnOpInProgress The ECDN resource is being manipulated.
ResourceNotFound.EcdnDomainNotExists This domain name does not exist under the account. Please check and try again.
ResourceNotFound.EcdnUserNotExists The ECDN service has not been activated. Please activate it first before using this API.
UnauthorizedOperation.EcdnCamUnauthorized No CAM policy is configured for the sub-account.
UnauthorizedOperation.EcdnDomainRecordNotVerified The domain name resolution is not verified.
UnauthorizedOperation.EcdnHostIsOwnedByOther This domain name belongs to another account. You are not allowed o connect it to ECDN.
UnauthorizedOperation.EcdnMigratedCdn Please go to the CDN console for operation.
UnauthorizedOperation.EcdnUserIsSuspended The acceleration service has been suspended. Please restart it and try again.
UnauthorizedOperation.EcdnUserNoWhitelist You are not on the beta allowlist and thus have no permission to use this feature.
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