Queries the domain names for CDN within your Alibaba Cloud account.
Operation description
- You can filter domain names by name and status. Fuzzy match is supported for domain name-based query.
- This operation is available only in the China (Shanghai) region.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageSize | integer | No | The number of entries per page. Default value: 20. Maximum value: 50. Valid values: 1 to 50. | 20 |
PageNumber | integer | No | The page number. | 1 |
DomainName | string | No | The domain name. The value of this parameter is used as a filter condition for a fuzzy match. | example.aliyundoc.com |
DomainStatus | string | No | The status of the domain name. Value values:
| online |
DomainSearchType | string | No | The search method. Valid values:
| fuzzy_match |
Tag | array<object> | No | The tags. | |
object | No | The object of the tag. | ||
Key | string | No | The key of tag N. Valid values of N: 1 to 20. By default, all tag keys are queried. | key |
Value | string | No | The value of tag N. Valid values of N: 1 to 20. By default, all tag values are queried. | value |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "E4EBD2BF-5EB0-4476-****-9D94E1B15267",
"PageNumber": 1,
"PageSize": 20,
"TotalCount": 2,
"Domains": {
"PageData": [
{
"GmtCreated": "2017-08-29T08:40:53Z",
"SslProtocol": "on",
"Description": "Zhejiang ICP Filing No. ****",
"Sandbox": "normal",
"Cname": "learn.developer.aliyundoc.com",
"DomainStatus": "online",
"GmtModified": "2017-12-29T09:24:12Z",
"DomainName": "example.aliyundoc.com",
"Sources": {
"Source": [
{
"Type": "oss",
"Priority": "5",
"Port": 80,
"Content": "192.168.0.1"
}
]
}
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-10-27 | The Error code has changed | View Change Details |
Common errors
The following table describes the common errors that this operation can return.
Error code | Error message | HTTP status code | Description |
---|---|---|---|
InvalidPageNumber.ValueNotSupported | The specified value of parameter PageNumber is not supported. | 400 | The error message returned because the value of the PageNumber parameter is invalid. |
InvalidPageSize.ValueNotSupported | The specified value of parameter PageSize is not supported. | 400 | The error message returned because the value of the PageSize parameter is invalid. |
InvalidDomainName.Malformed | The specific value of parameter DomainName is malformed. | 400 | The error message returned because the value of the DomainName parameter is invalid. |
InvalidDomainStatus.ValueNotSupported | The specified value of parameter DomainStatus is not supported. | 400 | The error message returned because the value of the DomainStatus parameter is invalid. |
InvalidDomainSearchType.ValueNotSupported | The specified value of parameter DomainSearchType is not supported. | 400 | The error message returned because the value of the DomainSearchType parameter is invalid. |