Queries the details of all private custom ApsaraDB RDS instances under a 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 DescribeDrdsInstances to query the details of all instances under the target account, including 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 was successful. |
true |
| DbInstances |
object |
||
| DbInstance |
array<object> |
The details of the private custom ApsaraDB RDS instances in the storage layer. |
|
|
object |
|||
| DBInstanceCPU |
string |
The number of CPU cores of the custom ApsaraDB RDS for MySQL instance at the storage layer. |
8 |
| DBInstanceMemory |
integer |
The memory size of the custom ApsaraDB RDS for MySQL instance at the storage layer. Unit: MB. |
8192 |
| PayType |
string |
The billing method of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:
|
PostPaid |
| DBInstanceStatus |
string |
The status of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:
|
1 |
| NetworkType |
string |
The network type of the custom ApsaraDB RDS for MySQL instance at the storage layer. The value is VPC. |
VPC |
| Port |
integer |
The port used to connect to the instance over an internal network. |
3306 |
| EngineVersion |
string |
The engine version of the custom ApsaraDB RDS for MySQL instance at the storage layer. The value is 8.0. |
8.0 |
| DmInstanceId |
string |
The ID of the resource. |
dm-************* |
| DBInstanceStorage |
integer |
The storage space of the custom ApsaraDB RDS for MySQL instance at the storage layer. Unit: GB. |
20 |
| ConnectUrl |
string |
The internal endpoint of the custom ApsaraDB RDS for MySQL instance at the storage layer. |
rm-***************.mysql.rds.aliyuncs.com |
| ReadWeight |
integer |
The read and write weights of the custom ApsaraDB RDS for MySQL instance at the storage layer. |
0 |
| RdsInstType |
string |
The type of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:
|
Primary |
| DBInstanceClassType |
string |
The instance family of the custom ApsaraDB RDS for MySQL instance at the storage layer. Valid values:
|
x |
| DBInstanceId |
string |
The ID of the custom ApsaraDB RDS for MySQL instance at the storage layer. |
rm-***************** |
| Engine |
string |
The engine type of the custom ApsaraDB RDS for MySQL instance at the storage layer. The value is MySQL. |
MySQL |
| DbInstType |
string |
The type of the instance at the storage layer. The value is RDS. |
RDS |
| LockMode |
integer |
The lock mode of the RDS instance. Valid values: 0: The instance is not locked. 1: The instance is manually locked. 2: The instance is automatically locked if the instance expires. 3: The instance is automatically locked if the instance is rolled back. 4: The instance is automatically locked if the storage space of the instance reaches the upper limit. 5: The instance is automatically locked if the storage space of the read-only instances reaches the upper limit. |
1 |
| LockReason |
string |
The reason why the RDS instance is 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.