You can call this operation to implement primary/secondary swithchover in highly available Thrift or Phoenix service. For more information about how to create a highly available Thrift or Phoenix service, see CreateHbaseHaSlb.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SwitchHbaseHaSlb

The operation that you want to perform. Set the value to SwitchHbaseHaSlb.

BdsId String Yes bds-t4n3496whj23ia4k

The ID of the BDS cluster.

HaId String Yes ha-v21tmnxjwh2yuy1il

The ID of the high availability service in BDS high availability management.

HaTypes String Yes thrift

The type of the high availability service. Valid values:



HbaseType String Yes Active

Specifies whether to switch to the primary or secondary instance. Valid values:

Active: switches to the primary instance.

Standby: switches to the secondary instance.

Response parameters


Sample requests

http(s)://[Endpoint]/? Action=SwitchHbaseHaSlb
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.