You can call this operation to switch between the primary and standby instances of OceanBase.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469**-AA6F-4D**-B3DB-A***********",
"Data": {
"Message": "delete tag-value success",
"Success": true
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history