Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to create a Serverless instance, for example, HBase, StarRocks, and TCBase instances.- This API is successfully called, and a Serverless instance is created. If the instance creation request succeeds, InstanceId of the instance and RequestID of the request are returned.
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-bangkok, 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. Valid values: 0 (postpaid, that is, pay-as-you-go) and 1 (prepaid, that is, yearly/monthly subscription). |
| DiskType | Yes | String | Instance storage type. Valid values: CLOUD_HSSD (Enhanced SSD) and CLOUD_BSSD (Balanced SSD). |
| DiskSize | Yes | Integer | Disk capacity of a single node of the instance (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 specifications. Valid values: 4C16G, 8C32G, 16C64G, and 32C128G. The value is case-insensitive. |
| ZoneSettings.N | Yes | Array of ZoneSetting | Detailed configuration of the instance AZ, including the region name, VPC information, and number of nodes. Currently, multiple AZs are supported. The number of AZs must be 1 or 3, and the total number of nodes across all AZs 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 | Unique random identifier with a time-to-live of 5 minutes, which needs to be specified by the caller to prevent the client from repeatedly creating resources, for example, a9a90aa6---****-fae360632808. |
| DeploymentMode | No | String | Deployment mode. |
| UserName | No | String | Service username, which is optional for services without the need to set usernames. The value can contain 8 to 16 characters, including uppercase letters, lowercase letters, and digits. |
| 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-2",
"VPCSettings": {
"VpcId": "vpc-dcfhrh73",
"SubnetId": "subnet-5bhc4kly"
},
"NodeNum": 1
},
{
"Zone": "ap-guangzhou-2",
"VPCSettings": {
"VpcId": "vpc-dcfhrh73",
"SubnetId": "subnet-5bhc4kly"
},
"NodeNum": 1
},
{
"Zone": "ap-guangzhou-2",
"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 | Internal service call exception. |
| InternalError.CvmError | Internal service call exception. |
| InvalidParameter | Parameter error. |
| InvalidParameter.InvalidAppId | Invalid parameter: APPID. |
| InvalidParameter.InvalidClusterId | Invalid parameter: ClusterId. |
| InvalidParameter.InvalidDiskSize | Invalid disk size. |
| InvalidParameter.InvalidInstanceName | Invalid cluster name. |
| InvalidParameter.InvalidNodeCount | Number of illegal nodes. |
| InvalidParameter.InvalidNodeType | Invalid NodeType. |
| InvalidParameter.InvalidPassword | Invalid password. |
| InvalidParameter.InvalidPaymode | Invalid payment type. |
| InvalidParameter.InvalidResourceSpec | Invalid resource specifications. |
| InvalidParameter.InvalidUinNum | Invalid input for the parent account UIN parameter. |
| ResourceUnavailable.ResourceSpecNotExist | The resource specifications do not exist. |
| UnauthorizedOperation.CheckCamAuth | No permission to verify account operations. |
| UnsupportedOperation.ServiceNotSupport | This service does not support this operation. |
피드백