All Products
Search
Document Center

ApsaraDB for HBase:SwitchHbaseHaSlb

Last Updated:Dec 20, 2023

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

Debugging

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:

thrift

phoenix

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

Examples

Sample requests


http(s)://[Endpoint]/? Action=SwitchHbaseHaSlb
&BdsId=bds-t4n3496whj23ia4k
&HaId=ha-v21tmnxjwh2yuy1il
&HaTypes=thrift
&HbaseType=Active
&<Common request parameters>

Sample success responses

XML format

<RequestId>C9D568D9-A59C-4AF2-8FBB-F086A841D58E</RequestId>

JSON format

{
	"RequestId":"C9D568D9-A59C-4AF2-8FBB-F086A841D58E"
}

Error codes

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