Queries the high availability information of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:DescribeDBInstanceHA |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DBInstanceName |
string |
Yes |
The name of the PolarDB-X instance. |
pxc-htri0ori2r**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The error message. |
successs |
| RequestId |
string |
The request ID. |
1A6D328C-84B8-40DC-BF49-6C73984D7494 |
| Success |
boolean |
Indicates whether the request is successful. |
|
| Data |
object |
The high availability deployment information of the instance. |
|
| TopologyType |
string |
The high availability topology type of the instance. |
3azones |
| PrimaryRegionId |
string |
The region ID of the primary node. |
cn-hangzhou |
| PrimaryAzoneId |
string |
The zone ID of the primary node. |
cn-hangzhou-d |
| SecondaryRegionId |
string |
The region ID of the secondary node. |
cn-hangzhou |
| SecondaryAzoneId |
string |
The zone ID of the secondary node. |
cn-hangzhou-b |
Examples
Success response
JSON format
{
"Message": "successs",
"RequestId": "1A6D328C-84B8-40DC-BF49-6C73984D7494",
"Success": false,
"Data": {
"TopologyType": "3azones",
"PrimaryRegionId": "cn-hangzhou",
"PrimaryAzoneId": "cn-hangzhou-d",
"SecondaryRegionId": "cn-hangzhou",
"SecondaryAzoneId": "cn-hangzhou-b"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.