tencent cloud

APIs

DuplicateDomainConfig

Download
フォーカスモード
フォントサイズ
最終更新日: 2026-06-30 15:04:52

1. API Description

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

This API is used to copy the configuration of a reference domain to a new domain name. Self-owned certificates and customization options are not currently supported.

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: DuplicateDomainConfig.
Version Yes String Common Params. The value used for this API: 2018-06-06.
Region No String Common Params. This parameter is not required for this API.
Domain Yes String Adds a domain name.
ReferenceDomain Yes String Specifies the configured domain name to be copied.

3. Output Parameters

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.

4. Example

Example1 Copying the Reference Domain Configuration to a New Domain Name

Input Example

https://cdn.intl.tencentcloudapi.com/?Action=DuplicateDomainConfig
&Domain=www.test.com
&ReferenceDomain=reference.test.com
&<Common request parameters>

Output Example

{
    "Response": {
        "RequestId": "a4ac88a3-a159-47ac-9b87-19185d7deb09"
    }
}

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
AuthFailure CAM signature/authentication error.
FailedOperation.CdnConfigError Failed to update the domain name configuration. Please submit a ticket for troubleshooting.
InternalError Internal error.
InternalError.CdnConfigError Failed to update the domain name configuration.
InternalError.CdnDbError Internal data error. Please submit a ticket for troubleshooting.
InternalError.CdnSystemError System error. Please submit a ticket for troubleshooting.
InternalError.Error Service internal error. Please submit a ticket for troubleshooting.
InvalidParameter Parameter error.
InvalidParameter.CdnCertInfoNotFound The certificate information is invalid or does not exist. Please check and try again.
InvalidParameter.CdnConfigInvalidHost Invalid domain name. Please make sure the domain name is valid.
InvalidParameter.CdnHostInternalHost This domain name belongs to another account. You are not allowed o connect it to CDN.
InvalidParameter.CdnKeyRulesExcludeCustomRequiresFullLego The configuration is not supported.
InvalidParameter.CdnParamError Parameter error. Please see the sample parameters in the documentation.
InvalidParameterValue Parameter value error.
LimitExceeded The quota limit is exceeded.
LimitExceeded.CamTagQuotaExceedLimit The number of bound tags exceeds the limit.
LimitExceeded.CdnHostOpTooOften Domain name operations are too frequent.
LimitExceeded.CdnUserTooManyHosts The number of domain names under the account has reached the upper limit. Please submit a ticket for assistance.
MissingParameter Parameters are missing.
ResourceInUse.CdnConflictHostExists The domain name conflicts with an existing domain name in the system.
ResourceInUse.CdnHostExists Domain name already exists.
ResourceInUse.CdnOpInProgress CDN resources are being operated.
ResourceInUse.TcbHostExists Domain name already exists.
ResourceNotFound.CamTagKeyNotExist The tag key does not exist.
ResourceNotFound.CdnHostNotExists Unable to find the domain name. Please make sure the domain name is correct.
ResourceNotFound.CdnUserNotExists The CDN service has not been activated. Please activate it first before using this API.
ResourceNotFound.CdnUserTooManyHosts The number of domain names under the account has reached the upper limit. Please submit a ticket for assistance.
ResourceUnavailable.CdnHostIsLocked The domain name is locked.
ResourceUnavailable.CdnHostIsMalicious The domain name is not compliant and cannot be connected.
ResourceUnavailable.CdnHostNoIcp ICP filing is required for the domain name and the synchronization takes 2 hours. If it is already filed, please try later.
UnauthorizedOperation Unauthorized operation.
UnauthorizedOperation.CdnCamUnauthorized No CAM policy is configured for the sub-account.
UnauthorizedOperation.CdnDomainRecordNotVerified The domain name has not been verified.
UnauthorizedOperation.CdnHostExistsInInternal The domain name already exists in the system. Please submit a ticket.
UnauthorizedOperation.CdnHostIsOwnedByOther This domain name belongs to another account, and you do not have permission to connect it.
UnauthorizedOperation.CdnHostIsToApplyHost Domain name integration requires submitting a ticket.
UnauthorizedOperation.CdnHostIsUsedByOther The domain name has been connected by another account. For more information, please submit a ticket.
UnauthorizedOperation.CdnHostUnauthorized The sub-account has no access to the CDN-accelerated domain name.
UnauthorizedOperation.CdnInvalidUserStatus User status is invalid. service is temporarily unavailable.
UnauthorizedOperation.CdnTagUnauthorized The sub-account has no access to the tag.
UnauthorizedOperation.CdnUserAuthFail Fail to authenticate the CDN user.
UnauthorizedOperation.CdnUserIsIsolated The account has been isolated due to arrears. Please pay the bill and try again.
UnauthorizedOperation.CdnUserIsSuspended The CDN service has been suspended. Please restart it and try again.
UnauthorizedOperation.OperationTooOften Too many calling attempts.
UnknownParameter Unknown parameter error.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック