All Products
Search
Document Center

ApsaraDB for OceanBase:SwitchoverInstance

Last Updated:Apr 29, 2024

You can call this operation to switch between the primary and standby instances of OceanBase.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

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****
TargetInstanceIdstringYes

The instance ID of the instance to be switched to the primary instance.

ob4bv8o7sp****
ForcedbooleanNo

Whether to force the switchover.

  • true: Force the switchover.
  • false: Do not force the switchover.
true

Response parameters

ParameterTypeDescriptionExample
object

The returned result of the request.

RequestIdstring

The request ID.

473469**-AA6F-4D**-B3DB-A***********
Dataobject

The list of data for the switchover.

Messagestring

The message of the switchover.

delete tag-value success
Successboolean

Whether the switchover is successful.

  • true: the switchover succeeded.
  • false: the switchover failed.
true

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
No change history