Performs a primary/secondary switchover for a global database network (GDN).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:SwitchGdnMemberRole |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DBInstanceName |
string |
Yes |
The instance ID of the primary instance. |
pxc-******** |
| SwitchMode |
string |
Yes |
The switchover mode. |
Regular switchover: switch_over Forced switchover: fail_over |
| TaskTimeout |
integer |
No |
The timeout period of the switchover task. Unit: seconds. |
10 |
| IsModifyEndpoint |
string |
No |
||
| SrcMainConnectString |
string |
No |
||
| DstMainConnectString |
string |
No |
||
| SrcMainPort |
string |
No |
||
| DstMainPort |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
9B2F3840-5C98-475C-B269-2D5C3A31797C |
| Message |
string |
The additional information returned. If the request is successful, success is returned. If the request fails, the corresponding error code is returned. |
success |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| Data |
object |
The data struct. |
|
| TaskId |
integer |
The task ID. |
2209883 |
Examples
Success response
JSON format
{
"RequestId": "9B2F3840-5C98-475C-B269-2D5C3A31797C",
"Message": "success",
"Success": true,
"Data": {
"TaskId": 2209883
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.