Queries the CNAME reuse information of websites.

Note This API operation is suitable only for Anti-DDoS Premium.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeCnameReuses

The operation that you want to perform. Set the value to DescribeCnameReuses.

Domains.N RepeatList Yes www.aliyun.com

The domain name of website N.

Note A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query all domain names.
RegionId String No ap-southeast-1

The region ID of the instance. Set the value to ap-southeast-1, which indicates an Anti-DDoS Premium instance.

ResourceGroupId String No default

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

Response parameters

Parameter Type Example Description
CnameReuses Array

Details about CNAME reuse.

Cname String 4o6ep6q217k9****.aliyunddos0004.com

The CNAME record reused by the website.

Domain String www.aliyun.com

The domain name of the website.

Enable Integer 1

Indicates whether CNAME reuse is enabled. Valid values:

  • 0: disabled
  • 1: enabled
RequestId String 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeCnameReuses
&Domains.1=www.aliyun.com
&<Common request parameters>

Sample success responses

XML format

<DescribeCnameReusesResponse>
      <RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
      <CnameReuses>
            <Domain>www.aliyun.com</Domain>
            <Cname>4o6ep6q217k9****.aliyunddos0004.com</Cname>
            <Enable>1</Enable>
      </CnameReuses>
</DescribeCnameReusesResponse>

JSON format

{
    "RequestId":"0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc",
    "CnameReuses":[{
          "Domain": "www.aliyun.com",
        "Cname":"4o6ep6q217k9****.aliyunddos0004.com",
        "Enable": 1
      }
    ]
}

Error codes

For a list of error codes, visit the API Error Center.