Retrieves a list of domain names that are attached to an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:DescribeInstanceDomains |
get |
*instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
Default: en |
en |
| PageNumber |
integer |
No |
The page number. The value starts from 1. Default: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Maximum value: 100. Default value: 20. |
20 |
| InstanceId |
string |
Yes |
The instance ID. You can call DescribeDomainInfo to obtain the ID. |
dns-cn-9lb38ldq9** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries per page. Maximum value: 100. Default value: 20. |
2 |
| RequestId |
string |
The unique request ID. |
68386699-8B9E-4D5B-BC4C-75A28F6C2A00 |
| PageNumber |
integer |
The page number. The value starts from 1. Default: 1. |
1 |
| InstanceDomains |
array<object> |
A list of domain names attached to the instance. |
|
|
object |
|||
| CreateTime |
string |
The time when the instance was created. |
2020-03-09T02:15Z |
| DomainName |
string |
The domain name. |
example.top |
| CreateTimestamp |
integer |
The UNIX timestamp that indicates when the instance was created. |
1583720154000 |
| TotalPages |
integer |
The total number of pages. |
2 |
| TotalItems |
integer |
The total number of entries. |
2 |
Examples
Success response
JSON format
{
"PageSize": 2,
"RequestId": "68386699-8B9E-4D5B-BC4C-75A28F6C2A00",
"PageNumber": 1,
"InstanceDomains": [
{
"CreateTime": "2020-03-09T02:15Z",
"DomainName": "example.top",
"CreateTimestamp": 1583720154000
}
],
"TotalPages": 2,
"TotalItems": 2
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.