tencent cloud

APIs

CreateAliasDomain

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-11-25 17:00:23

1. API Description

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

This API is used to create an alias domain name.
This feature is only supported in the enterprise plan and is currently in beta test. To use it, please contact us.

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: CreateAliasDomain.
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.
AliasName Yes String Alias domain name.
TargetName Yes String Target domain name.
CertType No String Certificate configuration. Valid values:
  • none: without configuring;
  • hosting: managed SSL certificate.
  • Default value: none.
    CertId.N No Array of String When the value of CertType is hosting, you must enter the certificate ID accordingly.

    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 Create an Alias Domain Name

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: CreateAliasDomain
    <Common request parameters>
    
    {
        "TargetName": "aaa.example.com",
        "AliasName": "bbb.test.com",
        "CertType": "none",
        "ZoneId": "zone-28569s6od5na"
    }

    Output Example

    {
        "Response": {
            "RequestId": "4dcgtb24-7dc5-46s2-9q3e-95825d53dcs3a"
        }
    }

    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
    FailedOperation Operation failed.
    FailedOperation.CertificateNotFound The edge HTTPS certificate does not exist.
    InternalError Internal error.
    InternalError.ConfigLocked The configuration has been locked. Unlock it and retry.
    InvalidParameter.AliasDomainNotSupportSMCert Alias domain names do not support configuring an SM certificate.
    InvalidParameter.CertNotMatchDomain Invalid edge HTTPS certificate configuration. The certificate does not match the domain name.
    InvalidParameter.InvalidHttpsCertInfo Invalid edge HTTPS certificate configuration. The certificate content is invalid.
    InvalidParameter.InvalidParameter Parameter error.
    InvalidParameter.InvalidRequestHeaderName Invalid request header.
    InvalidParameterValue Parameter value error.
    InvalidParameterValue.InvalidAliasDomainName Alias domain name is invalid. It can only contain digits, letters, and hyphens, and cannot begin or end with a hyphen.
    InvalidParameterValue.InvalidAliasNameSuffix Invalid alias domain suffix (that domain name is for internal usage and not supported as an alias domain name).
    LimitExceeded The quota limit is exceeded.
    OperationDenied Operation denied.
    OperationDenied.ConfigLocked The configuration has been locked. Unlock it and retry.
    OperationDenied.DomainIsBlocked Domain banned. Unable to operate temporarily.
    OperationDenied.DomainNoICP The domain name has not obtained an ICP Filing.
    OperationDenied.VersionControlLocked Version management mode is applied. Operation not allowed.
    ResourceInUse.AliasName The same alias domain name already exists and does not support duplicate addition.
    ResourceInUse.AlreadyExistsAsAnAccelerationDomain That domain name already exists as an acceleration domain name. Repeated access is not supported.
    ResourceInUse.DuplicateName The same alias domain name already exists.
    ResourceInUse.Zone Alias domain name has been connected to the site.
    ResourceNotFound The resource does not exist.
    ResourceUnavailable.DomainAlreadyExists The current domain is connected to EdgeOne. To connect it to the current account, retrieve the domain name.
    UnauthorizedOperation Unauthorized operation.
    UnauthorizedOperation.CamUnauthorized Unauthorized Cam operation.
    UnsupportedOperation.TargetNameOriginTypeCos Alias domain names do not support object storage as the origin server type of the target domain.

    도움말 및 지원

    문제 해결에 도움이 되었나요?

    피드백