Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:SwitchDBInstanceHA |
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**** |
| TargetPrimaryRegionId |
string |
No |
The region ID of the primary node after the switchover. |
cn-hangzhou |
| TargetPrimaryAzoneId |
string |
No |
The zone ID of the primary node after the switchover. |
cn-hangzhou-d |
| SwitchTimeMode |
string |
No |
The switchover mode. Valid values: 0: Immediate switchover. 1: Switchover during the O&M window. 2: Switchover at a specified time. |
0 |
| SwitchTime |
string |
No |
The specified switchover time. This parameter is required when SwitchTimeMode is set to 2. The time must be in UTC and in the YYYY-MM-DDThh:mm:ssZ format. |
2018-02-05T09:12:00Z |
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. |
Examples
Success response
JSON format
{
"Message": "successs",
"RequestId": "1A6D328C-84B8-40DC-BF49-6C73984D7494",
"Success": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.