Queries the details of a DRDS instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:DescribeDrdsInstance |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The instance ID. |
drdshbga1138**** |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request is successful. |
true |
| RequestId |
string |
The request ID. |
B4F76641-BA45-4320-BE7C-9C62CFDAC9B2 |
| Data |
object |
The instance details. |
|
| Type |
string |
The instance type. Valid values: PRIVATE (dedicated instance) and PUBLIC (shared instance). |
PRIVATE |
| Status |
string |
The instance status. |
RUN |
| CreateTime |
integer |
The timestamp when the instance was created. |
1568620311000 |
| VersionAction |
string |
The available action for the instance version. |
Upgradeable |
| StorageType |
string |
The storage type of the instance. |
RDS |
| NetworkType |
string |
The network type. Valid values: CLASSIC (classic network) and VPC (VPC network). |
CLASSIC |
| Label |
string |
The instance label. Valid values:
|
NORMAL |
| MysqlVersion |
integer |
The MySQL version supported by the instance. |
5 |
| InstanceSpec |
string |
The instance specification. |
drds.sn2.4c16g.8C32G |
| VpcCloudInstanceId |
string |
The instance ID in the VPC cluster. |
drdssen12**** |
| Description |
string |
The instance description. |
drds_test |
| Version |
integer |
The instance version. The value is empty. |
0 |
| ExpireDate |
integer |
The timestamp when the instance expires. |
4724323200000 |
| MasterInstanceId |
string |
The primary instance ID. Note
This parameter is returned only when the instance is a read-only instance. |
drdssen1243as |
| CommodityCode |
string |
The commodity code. |
drdsPost |
| MachineType |
string |
The machine type of the instance. The value is fixed as ecs. |
ecs |
| InstanceSeries |
string |
The instance specification series. |
drds.sn2.4c16g |
| ProductVersion |
string |
The product version. |
5.3.* |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| ResourceGroupId |
string |
The resource group ID. The value can be empty. |
NULL |
| DrdsInstanceId |
string |
The instance ID. |
drdssen1243as |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-e |
| InstRole |
string |
The instance role. Valid values:
|
MASTER |
| OrderInstanceId |
string |
The ID of the purchased instance. |
drdssen12**** |
| Vips |
object |
||
| Vip |
array<object> |
The list of returned virtual IP addresses (VIPs). |
|
|
object |
|||
| Type |
string |
The type of the VIP. Valid values: intranet and internet. |
intranet |
| VpcId |
string |
The ID of the VPC. |
vpc-bp********** |
| VswitchId |
string |
The ID of the vSwitch. |
vsw-bp*********** |
| Dns |
string |
The domain name that is mapped to the VIP. |
drdssen1243as.drds.aliyuncs.com |
| Port |
string |
The ports that are opened on the VIP. |
3306 |
| ExpireDays |
integer |
The number of remaining days before the VIP expires. |
0 |
| RemoveWeight |
boolean |
||
| ReadOnlyDBInstanceIds |
object |
||
| ReadOnlyDBInstanceId |
array |
The details about each read-only instance that is associated with the instance. |
|
|
string |
drdssen12**** |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "B4F76641-BA45-4320-BE7C-9C62CFDAC9B2",
"Data": {
"Type": "PRIVATE",
"Status": "RUN",
"CreateTime": 1568620311000,
"VersionAction": "Upgradeable",
"StorageType": "RDS",
"NetworkType": "CLASSIC",
"Label": "NORMAL",
"MysqlVersion": 5,
"InstanceSpec": "drds.sn2.4c16g.8C32G",
"VpcCloudInstanceId": "drdssen12****",
"Description": "drds_test",
"Version": 0,
"ExpireDate": 4724323200000,
"MasterInstanceId": "drdssen1243as",
"CommodityCode": "drdsPost",
"MachineType": "ecs",
"InstanceSeries": "drds.sn2.4c16g",
"ProductVersion": "5.3.*",
"RegionId": "cn-hangzhou",
"ResourceGroupId": "NULL",
"DrdsInstanceId": "drdssen1243as",
"ZoneId": "cn-hangzhou-e",
"InstRole": "MASTER",
"OrderInstanceId": "drdssen12****",
"Vips": {
"Vip": [
{
"Type": "intranet",
"VpcId": "vpc-bp**********",
"VswitchId": "vsw-bp***********",
"Dns": "drdssen1243as.drds.aliyuncs.com",
"Port": "3306",
"ExpireDays": 0,
"RemoveWeight": false
}
]
},
"ReadOnlyDBInstanceIds": {
"ReadOnlyDBInstanceId": [
"drdssen12****"
]
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ActionUnauthorized | The specified action is not available for you | |
| 400 | InternalError | The request processing has failed due to some unknown error. | |
| 404 | InvalidDRDSInstanceId.NotFound | The DrdsInstanceId provided does not exist in our records. | |
| 404 | DrdsInstance.NotExists | The DRDS instance does not exist. | The DRDS instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.