Queries all accelerated domain names in your Alibaba Cloud account and the status of the accelerated domain names. You can filter domain names by name or status. Fuzzy match is supported.
Operation description
-
Each account can call this operation up to 100 times per second.
-
You can specify up to 50 domain names in each request. Separate multiple domain names with commas (,).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:DescribeUserDomains |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 500. Default value: 20. Maximum value: 500. |
5 |
| PageNumber |
integer |
No |
The page number. Valid values: 1 to 100000. |
1 |
| DomainName |
string |
No |
The accelerated domain. If you do not set this parameter, all domain names that match the conditions are returned. |
example.com |
| DomainStatus |
string |
No |
The status of the domain name. Valid values:
If you do not set this parameter, domain names in all states are queried. |
configure_failed |
| DomainSearchType |
string |
No |
The search mode. Valid values:
Note
If you specify the domain names to query but do not set the DomainSearchType parameter, the exact match mode is used. |
fuzzy_match |
| CdnType |
string |
No |
The type of workload accelerated by Alibaba Cloud CDN. Separate types with commas (,). Valid values:
If you do not set this parameter, all service types are queried. |
download,web,video |
| CheckDomainShow |
boolean |
No |
Specifies whether to display domain names that are under review, failed the review, or failed to be configured. Valid values:
|
false |
| ResourceGroupId |
string |
No |
The ID of the resource group. By default, all IDs are queried. |
abcd1234abcd1234 |
| ChangeStartTime |
string |
No |
The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2019-10-10T12:14:55Z |
| ChangeEndTime |
string |
No |
The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note
The end time must be later than the start time. |
2019-10-10T12:14:58Z |
| Coverage |
string |
No |
The acceleration region. By default, all acceleration regions are queried. Valid values:
|
domestic |
| Source |
string |
No |
The information about the origin server. |
example.source.com |
| Tag |
array<object> |
No |
The list of tags. Maximum number of elements in the list: 20 |
|
|
object |
No |
The details about the tags. |
||
| Key |
string |
No |
The key of a tag. By default, all tag keys are queried. |
key |
| Value |
string |
No |
The value of the tag. By default, all tag values are queried. |
value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The description of returned data. |
||
| RequestId |
string |
The ID of the request. |
BDA62CE4-3477-439A-B52E-D2D7C829D7C1 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
20 |
| TotalCount |
integer |
The total number of entries returned. |
2 |
| Domains |
object |
||
| PageData |
array<object> |
The list of the accelerated domain names returned. |
|
|
array<object> |
The information about the accelerated domain name. |
||
| SslProtocol |
string |
Indicates whether HTTPS is enabled. Valid values:
|
on |
| Sandbox |
string |
Indicates whether the accelerated domain name is in a sandbox. |
true |
| GmtModified |
string |
The time when the accelerated domain name was modified. |
2015-10-28T11:05:52Z |
| DomainName |
string |
The accelerated domain. |
example.com |
| DomainId |
integer |
The ID of the accelerated domain name. |
11223344 |
| GmtCreated |
string |
The time when the accelerated domain name was added. |
2015-10-28T09:32:51Z |
| Description |
string |
The information about Internet Content Provider (ICP) filing. |
filing description |
| Coverage |
string |
The acceleration region. Valid values:
|
domestic |
| ResourceGroupId |
string |
The ID of the resource group. |
abcd1234abcd1234 |
| Cname |
string |
The CNAME assigned to the accelerated domain name. |
example.com.w.alikunlun.net |
| DomainStatus |
string |
The status of the accelerated domain name. Valid values:
|
configure_failed |
| CdnType |
string |
The type of the workload accelerated by Alibaba Cloud CDN. Valid values:
|
download |
| Sources |
object |
||
| Source |
array<object> |
The information about the origin server. |
|
|
object |
The details about the origin server. |
||
| Type |
string |
The type of the origin server. |
oss |
| Weight |
string |
The weight of the origin server if multiple origin servers have been specified. |
15 |
| Priority |
string |
The priority. |
20 |
| Port |
integer |
The port of the origin server. |
80 |
| Content |
string |
The address of the origin server. |
***.oss-cn-hangzhou.aliyuncs.com |
Examples
Success response
JSON format
{
"RequestId": "BDA62CE4-3477-439A-B52E-D2D7C829D7C1",
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 2,
"Domains": {
"PageData": [
{
"SslProtocol": "on",
"Sandbox": "true",
"GmtModified": "2015-10-28T11:05:52Z",
"DomainName": "example.com",
"DomainId": 11223344,
"GmtCreated": "2015-10-28T09:32:51Z",
"Description": "filing description",
"Coverage": "domestic",
"ResourceGroupId": "abcd1234abcd1234",
"Cname": "example.com.w.alikunlun.net",
"DomainStatus": "configure_failed",
"CdnType": "download",
"Sources": {
"Source": [
{
"Type": "oss",
"Weight": "15",
"Priority": "20",
"Port": 80,
"Content": "***.oss-cn-hangzhou.aliyuncs.com"
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPageNumber.ValueNotSupported | The specified value of PageNumber is not supported. | |
| 400 | InvalidPageSize.ValueNotSupported | The specified value of PageSize is invalid. | |
| 400 | InvalidDomainStatus.ValueNotSupported | The specified value of DomainStatus is invalid. | |
| 400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | The specified domain name is invalid. |
| 400 | InvalidDomainSearchType.ValueNotSupported | The specified value of DomainSearchType is invalid. | |
| 400 | InvalidChangeStartTime.Malformed | The specified ChangeStartTime is invalid. | |
| 400 | InvalidChangeEndTime.Malformed | The specified ChangeEndTime is invalid. | |
| 400 | InvalidCdnType.Malformed | The specified CdnType is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.