Queries instances that are used to store the data of a database.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeDrdsDbRdsNameList |
The operation that you want to perform. Set the value to DescribeDrdsDbRdsNameList. |
| DbName | String | Yes | drds_test |
The name of the database. |
| DrdsInstanceId | String | Yes | drdsxxxxxxxxxxx |
The ID of the PolarDB-X 1.0 instance. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| InstanceNameList | List | rm-bpxxxxxxxxxxxxxxx |
Indicates the instances that are used to store the data of a database. |
| RequestId | String | 7E6FA2BF-05F2-44DD-95C0-D1B5B8xxxxxx |
Indicates the ID of the request. |
| Success | Boolean | true |
Indicates whether the request is successful. |
Examples
Sample requests
http(s)://drds.cn-hangzhou.aliyuncs.com/?Action=DescribeDrdsDbRdsNameList
&DbName=drds_test
&DrdsInstanceId=drdsxxxxxxxxxxx
&<Common request parameters>
Sample success responses
XML format
<DescribeDrdsDbRdsNameList>
<RequestId>37537B38-A663-45CB-A81F-E3B202BB2415</RequestId>
<InstanceNameList>
<InstanceName>rm-m5xxxxxxxxx82</InstanceName>
</InstanceNameList>
<Success>true</Success>
</DescribeDrdsDbRdsNameList>
JSON format
{
"RequestId": "7E6FA2BF-05F2-44DD-95C0-D1B5B8xxxxxx",
"InstanceNameList": {
"InstanceName": [
"rm-bpxxxxxxxxxxxxxxx"
]
},
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.