You can call this operation to check whether a canonical name (CNAME) record is configured for one or more accelerated domains.

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
DomainName String Yes example.com

The name of the accelerated domain. You can separate multiple accelerated domain names with commas (,).

Action String No DescribeDcdnDomainCname

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

Response parameters

Parameter Type Example Description
CnameDatas Array

The CNAME information about the accelerated domains.

Data

The CNAME information about each accelerated domain.

Cname String xxx.com

The CNAME of the accelerated domain.

Domain String .example.com

The name of the accelerated domain returned.

Status Integer 6

The configuration status of the CNAME. If the Status parameter returns 0, the configuration was successful. Otherwise, the configuration failed.

RequestId String 15C66C7B-671A-4297-9187-2C4477247A74

The ID of the request.

Examples

Sample requests

http://dcdn.aliyuncs.com?Action=DescribeDcdnDomainCname
&DomainName=example.com,example1.com
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnDomainCnameResponse>
	  <RequestId>15C66C7B-671A-4297-9187-2C4477247A74</RequestId>
	  <CnameDatas>
		    <Domain>.example.com</Domain>
		    <Cname>xxx</Cname>
		    <Status>6</Status>
	  </CnameDatas>
</DescribeDcdnDomainCnameResponse>

JSON format

{
	"RequestId":"15C66C7B-671A-4297-9187-2C4477247A74",
	"CnameDatas":[
		{
			"Cname":"xxx",
			"Status":"6",
			"Domain":".example.com"
		}
	]
}

Error codes

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