Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to create a Serverless HBase instance.- If the API call is successful, a Serverless HBase instance will be created. If the instance creation request is successful, the InstanceId of the created instance and the RequestID of the request will be returned.- This is an asynchronous API. The operation is not completed immediately when the API call returns. The instance operation result can be viewed by calling DescribeInstancesList to view the StatusDesc status of the current instance.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: CreateSLInstance. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-03. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-beijing, ap-chongqing, ap-guangzhou, ap-jakarta, ap-nanjing, ap-shanghai, ap-singapore, eu-frankfurt. |
| InstanceName | Yes | String | Instance name. |
| PayMode | Yes | Integer | Instance billing mode. 0 indicates postpaid, i.e., pay-as-you-go. |
| DiskType | Yes | String | Instance storage type. Fill in CLOUD_HSSD to represent high-performance cloud storage. |
| DiskSize | Yes | Integer | The disk capacity of a single node of the instance, in GB. The disk capacity of a single node should be greater than or equal to 100 and less than or equal to 250 x the number of CPU cores. The capacity adjustment step is 100. |
| NodeType | Yes | String | Instance node specification. You can fill in 4C16G, 8C32G, 16C64G, or 32C128G, which is case-insensitive. |
| ZoneSettings.N | Yes | Array of ZoneSetting | Detailed configuration of the instance AZ. Currently, multiple availability zones are supported. The number of AZs must be 1 or 3, including the region names, VPC information, and number of nodes. The total number of nodes across all zones must be greater than or equal to 3 and less than or equal to 50. |
| Tags.N | No | Array of Tag | List of tags to be bound to the instance. |
| PrePaySetting | No | PrePaySetting | Prepaid parameter. |
| ClientToken | No | String | The unique random identifier with a time efficiency of 5 minutes, which needs to be specified by the caller to prevent the client from creating resources repeatedly. For example: a9a90aa6---****-fae360632808. |
| DeploymentMode | No | String |
| Parameter Name | Type | Description |
|---|---|---|
| InstanceId | String | Instance unique identifier (string). |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to create a Serverless HBase instance.
POST / HTTP/1.1
Host: emr.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateSLInstance
<Common request parameters>
{
"InstanceName": "sl-haoyuhua-test-create",
"PayMode": 0,
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 100,
"NodeType": "4C16G",
"ZoneSettings": [
{
"Zone": "ap-guangzhou-6",
"VPCSettings": {
"VpcId": "vpc-dcfhrh73",
"SubnetId": "subnet-5bhc4kly"
},
"NodeNum": 1
},
{
"Zone": "ap-guangzhou-6",
"VPCSettings": {
"VpcId": "vpc-dcfhrh73",
"SubnetId": "subnet-5bhc4kly"
},
"NodeNum": 1
},
{
"Zone": "ap-guangzhou-6",
"VPCSettings": {
"VpcId": "vpc-dcfhrh73",
"SubnetId": "subnet-5bhc4kly"
},
"NodeNum": 1
}
],
"Tags": []
}{
"Response": {
"InstanceId": "emr-8qrmc34c",
"RequestId": "983e4dae-1cb4-40cb-8476-3231a6849696"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| FailedOperation.RefundCvmFailed | Operation failed. |
| InternalError | Internal error. |
| InternalError.CamCgwError | An error occurred while calling another service API. |
| InternalError.CvmError | An error occurred while calling another service API. |
| InvalidParameter | Invalid parameter. |
| InvalidParameter.InvalidAppId | Invalid AppId. |
| InvalidParameter.InvalidClusterId | Invalid parameter: ClusterId. |
| InvalidParameter.InvalidDiskSize | Invalid disk size. |
| InvalidParameter.InvalidInstanceName | Invalid cluster name. |
| InvalidParameter.InvalidNodeCount | Illegal node count. |
| InvalidParameter.InvalidNodeType | Invalid NodeType. |
| InvalidParameter.InvalidPassword | Invalid password. |
| InvalidParameter.InvalidPaymode | Invalid billing mode. |
| InvalidParameter.InvalidResourceSpec | Invalid resource specification. |
| InvalidParameter.InvalidUinNum | Parent account UIN parameter input error. |
| ResourceUnavailable.ResourceSpecNotExist | The resource specification does not exist. |
| UnauthorizedOperation.CheckCamAuth | Unauthorized operation. |
| UnsupportedOperation.ServiceNotSupport | This operation is not supported. |
Feedback