You can call this API to query the CNAME record of an accelerated domain name and verify its configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:DescribeDomainCname |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
The accelerated domain names to query. To query multiple domain names, separate them with commas (,). |
example.com,example.org |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The results of the check. |
||
| RequestId |
string |
The request ID. |
06D29681-B7CD-4034-A8CC-28AFFA213539 |
| CnameDatas |
object |
||
| Data |
array<object> |
An array of canonical name (CNAME) check results. |
|
|
object |
The CNAME information. |
||
| Status |
integer |
The result of the CNAME check. Valid values:
|
0 |
| Domain |
string |
The accelerated domain name in the request. |
a.com |
| Cname |
string |
The CNAME record that is assigned to the domain name by Alibaba Cloud CDN. |
a.com.w.alikunlun.net |
| Passed |
string |
Indicates whether the CNAME record passed the check. Valid values:
|
true |
| ErrMsg |
string |
The error message returned if the CNAME check fails or times out. |
timeout |
Examples
Success response
JSON format
{
"RequestId": "06D29681-B7CD-4034-A8CC-28AFFA213539",
"CnameDatas": {
"Data": [
{
"Status": 0,
"Domain": "a.com",
"Cname": "a.com.w.alikunlun.net",
"Passed": "true",
"ErrMsg": "timeout"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DomainNameOverLimit | A maximum of 30 domains are supported for each request. | |
| 403 | InvaildParameter | The parameter you provided is invalid. | The format of the domain name is invalid. Correct the format and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.