Queries a list of DRDS instances by calling the DescribeDrdsInstances operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:DescribeDrdsInstances |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
No |
The instance type. Valid values:
|
1 |
| Description |
string |
No |
The description of the instance. |
drds_test |
| Expired |
boolean |
No |
Specifies whether the instance has expired. |
false |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
20 |
| ResourceGroupId |
string |
No |
The resource group ID. This parameter can be left empty. |
NULL |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| Mix |
boolean |
No |
Specifies whether hybrid queries are supported. |
FALSE |
| ProductVersion |
string |
No |
The Edition version number. Valid values: V1 and V2. |
V1 |
| Tag |
array<object> |
No |
The list of tag properties. |
|
|
object |
No |
|||
| Key |
string |
No |
The key of the tag. |
acs:newretail:domain |
| Value |
string |
No |
The value of the tag. |
NEW_RETAIL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
8734773E-7B21-4A22-9106-CBD245F8**** |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
20 |
| Total |
integer |
The total number of instances. |
1 |
| Instances |
object |
||
| Instance |
array<object> |
The list of instances. |
|
|
array<object> |
|||
| VpcId |
string |
The ID of the VPC to which the instance belongs. |
vpc-bp********** |
| Status |
string |
The status of the instance. |
RUN |
| Type |
string |
The type of the instance. Valid values:
|
PRIVATE |
| CommodityCode |
string |
The commodity code of the service. |
drdsPost |
| MachineType |
string |
The machine type of the instance. Valid value: ecs. |
ecs |
| CreateTime |
integer |
The timestamp that indicates when the instance is created. |
1568620311000 |
| VersionAction |
string |
Indicates whether the version of the instance can be upgraded. |
Upgradable |
| InstanceSeries |
string |
The instance series. |
drds.sn2.4c16g |
| NetworkType |
string |
The network type of the instance. Valid values:
|
CLASSIC |
| Label |
string |
The tag of the instance. Valid values:
|
NORMAL |
| ProductVersion |
string |
The version of the service. |
V1 |
| InstanceSpec |
string |
The specification of the instance. |
drds.sn2.4c16g.8C32G |
| RegionId |
string |
The ID of the region. |
cn-hangzhou-e |
| VpcCloudInstanceId |
string |
The ID of the instance that is deployed in the VPC. |
drdssen12**** |
| Description |
string |
The description of the instance. |
drds_test |
| Version |
integer |
The version of the instance. |
0 |
| ResourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-aek2ljh3ye4**** |
| ZoneId |
string |
The ID of the zone in which the resource is located. |
vsw-bpxxxxxxxxxxxxx96 |
| DrdsInstanceId |
string |
The ID of the instance. |
drdssen12**** |
| ExpireDate |
integer |
The timestamp that indicates when the instance expires. |
4724323200000 |
| MasterInstanceId |
string |
The ID of the primary instance. |
drdssen12**** |
| OrderInstanceId |
string |
The ID of the purchased instance. |
drdssen12**** |
| InstRole |
string |
The role of the instance. Valid values:
|
MASTER |
| Vips |
object |
||
| Vip |
array<object> |
The list of returned virtual IP addresses (VIPs). |
|
|
object |
|||
| VpcId |
string |
The ID of the VPC. |
vpc-bpxxxxxxxxxxxy |
| Type |
string |
The type of the VIP. Valid values:
|
intranet |
| VswitchId |
string |
The ID of the vSwitch. |
vsw-bpxxxxxxxxxxxxx96 |
| Port |
string |
The ports that are opened on the VIP. |
3306 |
| IP |
string |
The virtual IP address. |
10.23.***.*** |
| dns |
string |
The domain name that is mapped to the VIP. |
drdssen1243as.drds.aliyuncs.com |
| ReadOnlyDBInstanceIds |
object |
||
| ReadOnlyDBInstanceId |
array |
The IDs of read-only instances that are associated with the instance. |
|
|
string |
The list of read-only instance IDs. |
drdssen12**** |
|
| series |
string |
The edition of the instance. Valid values:
|
enterprise |
Examples
Success response
JSON format
{
"RequestId": "8734773E-7B21-4A22-9106-CBD245F8****",
"PageNumber": 1,
"PageSize": 20,
"Total": 1,
"Instances": {
"Instance": [
{
"VpcId": "vpc-bp**********",
"Status": "RUN",
"Type": "PRIVATE",
"CommodityCode": "drdsPost",
"MachineType": "ecs",
"CreateTime": 1568620311000,
"VersionAction": "Upgradable",
"InstanceSeries": "drds.sn2.4c16g",
"NetworkType": "CLASSIC",
"Label": "NORMAL",
"ProductVersion": "V1",
"InstanceSpec": "drds.sn2.4c16g.8C32G",
"RegionId": "cn-hangzhou-e",
"VpcCloudInstanceId": "drdssen12****",
"Description": "drds_test",
"Version": 0,
"ResourceGroupId": "rg-aek2ljh3ye4****",
"ZoneId": "vsw-bpxxxxxxxxxxxxx96",
"DrdsInstanceId": "drdssen12****",
"ExpireDate": 4724323200000,
"MasterInstanceId": "drdssen12****",
"OrderInstanceId": "drdssen12****",
"InstRole": "MASTER",
"Vips": {
"Vip": [
{
"VpcId": "vpc-bpxxxxxxxxxxxy",
"Type": "intranet",
"VswitchId": "vsw-bpxxxxxxxxxxxxx96",
"Port": "3306",
"IP": "10.23.***.***",
"dns": "drdssen1243as.drds.aliyuncs.com"
}
]
},
"ReadOnlyDBInstanceIds": {
"ReadOnlyDBInstanceId": [
"drdssen12****"
]
},
"series": "enterprise"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ActionUnauthorized | The specified action is not available for you | |
| 400 | ServiceUnable | The service is not available now, please try again later | |
| 400 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.