You can call this operation to query the instance specifications such as CPU and memory.

The complete mappings between instance types and specifications are subject to the list returned by this operation.

If an exception is returned and the "instanceType is not found" error is reported, it indicates that the instance is a deprecated specification. If you strongly depend on this specification, you can contact the ApsaraDB for HBase management team.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Prameter Type Required Example Description
Action String Yes DescribeInstanceType

Required. Set the value to DescribeInstanceType.

InstanceType String No hbase.n2.4xlarge

The name of the instance type.

Valid values: hbaseMasterInstanceType, hbaseCoreInstanceType, and sparkInstanceType.

If this parameter is not specified, the list of all instance types is returned.

Response parameters

Parameter Data type Sample response Description
InstanceTypeSpecList Array of InstanceTypeSpec

The list of instance types.

InstanceTypeSpec
CpuSize Long 8

Number of CPU cores

InstanceType String hbase.n2.4xlarge

The name of the instance type.

MemSize Long 16

The memory size. Unit: GB.

RequestId String DD23BBB4-64C2-42A4-B2E2-7E56C7AA815A

The ID of the request.

Examples

Sample requests


     http(s)://[Endpoint]/? Action=DescribeInstanceType &InstanceType=hbase.n2.4xlarge &<common request parameters> 
   

Sample success responses

XML format


     <RequestId>DD23BBB4-64C2-42A4-B2E2-7E56C7AA815A</RequestId> <InstanceTypeSpecList> <InstanceTypeSpec> <CpuSize>16</CpuSize> <MemSize>64</MemSize> <InstanceType>hbase.n2.4xlarge</InstanceType> </InstanceTypeSpec> </InstanceTypeSpecList> 
   

JSON Format


     { "RequestId": "DD23BBB4-64C2-42A4-B2E2-7E56C7AA815A", "InstanceTypeSpecList": { "InstanceTypeSpec": [ { "CpuSize": 16, "MemSize": 64, "InstanceType": "hbase.n2.4xlarge" } ] } } 
   

Error codes

The port number of a client that accesses a Error Center For more information, see error codes.