Calls the GetDrdsDbRdsRelationInfo operation to query the storage instance structure of a database.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:GetDrdsDbRdsRelationInfo |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The instance ID. |
drdshbga948vbpd2 |
| DbName |
string |
Yes |
The database name. |
testDb |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the query was successful. |
true |
| RequestId |
string |
The request ID. |
82FD0D9B-9A65-40D3-B1D9-8851B1D4AF75 |
| Data |
array<object> |
The list of storage instance structures. Each item corresponds to a primary storage instance. |
|
|
object |
|||
| RdsInstanceId |
string |
The storage instance ID. |
rm-bp16ad920ndxxxx02 |
| UsedInstanceType |
string |
The type of the storage instance in use. |
RDS |
| UsedInstanceId |
string |
The instance ID of the storage instance in use. For a primary DRDS instance, this is the primary storage instance. For a read-only DRDS instance, this is the selected storage instance. |
rm-bp1l8xi1dd9xxxxbj |
| ReadOnlyInstanceInfo |
array |
||
|
string |
The list of read-only storage instance IDs. |
[] |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "82FD0D9B-9A65-40D3-B1D9-8851B1D4AF75",
"Data": [
{
"RdsInstanceId": "rm-bp16ad920ndxxxx02",
"UsedInstanceType": "RDS",
"UsedInstanceId": "rm-bp1l8xi1dd9xxxxbj",
"ReadOnlyInstanceInfo": [
"[]"
]
}
]
}
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.