Queries the details of all private custom RDS instances under the specified PolarDB-X instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:DescribeDrdsRdsInstances |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The ID of the DRDS instance. Note
You can call the DescribeDrdsInstances operation to query the details of all instances under the specified account, including the instance IDs. |
drds************* |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
123DB16B-02F2-45F7-A571-843991****** |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| DbInstances |
object |
||
| DbInstance |
array<object> |
The details of the private custom RDS instances at the storage layer. |
|
|
object |
|||
| DBInstanceCPU |
string |
The number of CPU cores of the private custom RDS instance at the storage layer. |
8 |
| DBInstanceMemory |
integer |
The memory of the private custom RDS instance at the storage layer. Unit: MB. |
8192 |
| PayType |
string |
The billing method of the private custom RDS instance at the storage layer. Valid values:
|
PostPaid |
| DBInstanceStatus |
string |
The status of the private custom RDS instance at the storage layer. Valid values:
|
1 |
| NetworkType |
string |
The network type of the private custom RDS instance at the storage layer. The value is fixed to VPC. |
VPC |
| Port |
integer |
The internal network connection port. |
3306 |
| EngineVersion |
string |
The database engine version number (not the DPI engine) of the private custom RDS instance at the storage layer. The value is fixed to 8.0. |
8.0 |
| DmInstanceId |
string |
The resource ID. |
dm-************* |
| DBInstanceStorage |
integer |
The storage capacity of the private custom RDS instance at the storage layer. Unit: GB. |
20 |
| ConnectUrl |
string |
The internal network connection endpoint of the private custom RDS instance at the storage layer. |
rm-***************.mysql.rds.aliyuncs.com |
| ReadWeight |
integer |
The read weight of the specified private custom RDS instance at the storage layer. |
0 |
| RdsInstType |
string |
The type of the private custom RDS instance at the storage layer. Valid values:
|
Primary |
| DBInstanceClassType |
string |
The instance family. Valid values:
|
x |
| DBInstanceId |
string |
The instance ID of the private custom RDS instance at the storage layer. |
rm-***************** |
| Engine |
string |
The engine type of the private custom RDS instance at the storage layer. The value is fixed to MySQL. |
MySQL |
| DbInstType |
string |
The instance type at the storage layer. The value is fixed to RDS. |
RDS |
| LockMode |
integer |
The lock status of the RDS instance. Valid values:
|
1 |
| LockReason |
string |
The reason why the RDS instance is locked. |
Manually locked |
Examples
Success response
JSON format
{
"RequestId": "123DB16B-02F2-45F7-A571-843991******",
"Success": true,
"DbInstances": {
"DbInstance": [
{
"DBInstanceCPU": "8",
"DBInstanceMemory": 8192,
"PayType": "PostPaid",
"DBInstanceStatus": "1",
"NetworkType": "VPC",
"Port": 3306,
"EngineVersion": "8.0",
"DmInstanceId": "dm-*************",
"DBInstanceStorage": 20,
"ConnectUrl": "rm-***************.mysql.rds.aliyuncs.com",
"ReadWeight": 0,
"RdsInstType": "Primary",
"DBInstanceClassType": "x",
"DBInstanceId": "rm-*****************",
"Engine": "MySQL",
"DbInstType": "RDS",
"LockMode": 1,
"LockReason": "手动触发锁"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.