You can call this operation to switch between the primary and standby instances of OceanBase.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:SwitchoverInstance |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the primary/standby instance. You can set the default value to the instance ID of the instance to be switched to the primary instance. |
ob317v4uif**** |
| TargetInstanceId |
string |
Yes |
The instance ID of the instance to be switched to the primary instance. |
ob4bv8o7sp**** |
| Forced |
boolean |
No |
Whether to force the switchover.
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result of the request. |
||
| RequestId |
string |
The request ID. |
473469**-AA6F-4D**-B3DB-A*********** |
| Data |
object |
The list of data for the switchover. |
|
| Message |
string |
The message of the switchover. |
delete tag-value success |
| Success |
boolean |
Whether the switchover is successful.
|
true |
Examples
Success response
JSON format
{
"RequestId": "473469**-AA6F-4D**-B3DB-A***********",
"Data": {
"Message": "delete tag-value success",
"Success": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.