Create an HBase cluster

Debugging

You can directly run this interface in OpenAPI Explorer, saving you from the trouble of calculating the signature. After the SDK runs successfully, OpenAPI Explorer automatically generates SDK code examples.

Request parameters

Name Type Required or not Sample value Description
Action String Yes CreateCluster

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

ClusterName String Yes Hbase_test

Cluster name

The name must be 2 to 128 characters in length and can contain numbers, '.', '_' or '-'; It must start with an uppercase or lowercase letter or a Chinese character.

CoreInstanceType String Yes hbase.sn1.medium

For more information, you can call the DescribeInstanceType operation.

DiskSize Integer Yes 400

Node disk size, in GB

DiskType String Yes Cloud_ssd

The type of the disk. Valid values: cloud_efficiency, cloud_ssd, local_hdd_pro, and local_ssd_pro.

Engine String Yes hbase

Service Type: hbase, hbaseue, etc.

EngineVersion String Yes 2.0

There are differences depending on the engine type,

hbase: 1.1, 2.0

hbaseue: 2.0

MasterInstanceType String Yes hbase.sn1.medium

For more information, you can call the DescribeInstanceType operation.

NodeCount Integer Yes 2

The number of nodes. Valid values: 1 to 20. Single cluster: 1. cloud disk: at least 2. local disk: at least 3.

PayType String Yes Prepaid

The billing method. Valid values: Prepaid and Postpaid.

RegionId String Yes cn-hangzhou

Region ID

SecurityIPList String Yes 127.0.0.1

The whitelist. 0.0.0.0/0 is not recommended. Separate multiple IP addresses with commas (,).

VpcId String Yes Vpc-bp120k6ixs4eog modifyblockchains *

The id of the vpc. If both vswitchId and vswitchId are null, the vpc is connected to a classic network. Vpc

VSwitchId String Yes Vsw-bp191ipotqj1ssyl modifyblockchains *

The id of the vSwitch.

ZoneId String Yes cn-hangzhou-f

Zone id

ColdStorageSize Integer No 1024

The cold storage size. A value equal to 0 indicates that cold storage is not enabled. A value greater than 0 indicates that cold storage is enabled.

PeriodUnit String No month

Prepayment cycle unit:

year; month.

Period Integer No 6

Pre-payment cycle: effective when PayType = Prepaid.

Valid values: 1 to 5.

PeriodUnit = month. Valid values: 1 to 9.

AutoRenewPeriod Integer No 2

The automatic renewal cycle. Unit: month. Default value: 0, indicating that automatic renewal is disabled.

Autorenamespace period = 2 indicates that the instance is automatically renewed for two months after expiration.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxxxxx

Used to ensure the idempotence of the request. This parameter value is generated by the client and must be unique among different requests. It is case-sensitive and can contain up to 64 ASCII characters.

Response Data

Name Type Sample value Description
RequestId String Renewal

Request id

ClusterId String hb-bp1hy2ipk*****g

Cluster id

OrderId String 23232453233

Order id

Example

Request example

http(s)://[Endpoint]/? Action=CreateCluster
&ClusterName=hbase_test
&CoreInstanceType=hbase.sn1.medium
&DiskSize=400
&DiskType=cloud_ssd
&Engine=hbase
&EngineVersion=2.0
&MasterInstanceType=hbase.sn1.medium
&NodeCount=2
&PayType=Prepaid
&RegionId=cn-hangzhou
&SecurityIPList=127.0.0.1
&VpcId=vpc-bp120k6ixs4eog*****
&VSwitchId=vsw-bp191ipotqj1ssyl*****
&ZoneId=cn-hangzhou-f
& <Common request parameters>

Normal response example

XMLFormat

<ClusterId>hb-bp16o0pd52e3y582s</ClusterId>
<RequestId>728C7EAF-4844-4D42-9BBE-DFFFBB77CF33</RequestId>
<OrderId>23232453233</OrderId>

JSONFormat

{
    &quot;ClusterId&quot;:&quot;hb-bp16o0pd52e3y582s&quot;,
    &quot;RequestId&quot;:&quot;728C7EAF-4844-4D42-9BBE-DFFFBB77CF33&quot;,
    &quot;OrderId&quot;:&quot;23232453233&quot;
}

Error code

AccessError CenterFor more information, see error codes.