Creates a Serverless StarRocks instance.
Operation description
Before you call this operation, make sure that you understand the billing methods and billable items of Serverless StarRocks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sr:CreateInstanceV1 |
create |
*All Resource
|
None | None |
Request syntax
POST /webapi/cluster/createV1 HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| InstanceName |
string |
Yes |
The name of the instance. |
c1 |
| AdminPassword |
string |
Yes |
The administrator password for the instance. |
password_example |
| Version |
string |
Yes |
The major version of the instance. |
3 |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. This parameter applies only when the |
true |
| RunMode |
string |
Yes |
The run mode of the cluster:
|
shared_data |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| PackageType |
string |
Yes |
The edition of the instance:
|
official |
| PayType |
string |
Yes |
The billing method:
|
prePaid |
| VpcId |
string |
Yes |
The ID of the VPC. |
vpc-bp1fll2mci6d7pw8m**** |
| PricingCycle |
string |
No |
The unit of the subscription period. This parameter applies only when
|
Month |
| VSwitches |
array<object> |
No |
The VSwitches and their corresponding zones. |
|
|
object |
No |
Information about a VSwitch. |
||
| VswId |
string |
Yes |
The VSwitch ID. |
vsw-bp19mlh98tm9teyyd**** |
| ZoneId |
string |
No |
The zone ID of the VSwitch. |
cn-hangzhou-i |
| ZoneId |
string |
Yes |
The primary zone ID. |
cn-hangzhou-i |
| OssAccessingRoleName |
string |
No |
The name of the RAM role used for password-free access to OSS. |
AliyunEMRStarRocksAccessingOSSRole |
| Duration |
integer |
No |
The length of the subscription period. This parameter applies only when |
1 |
| Tags |
array<object> |
No |
A list of tags to attach to the instance. |
|
|
object |
No |
A single tag, which consists of a key and a value. |
||
| Key |
string |
No |
The tag key. |
k1 |
| Value |
string |
No |
The tag value. |
v1 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aekzllkih7jqxxx |
| ClientToken |
string |
No |
A client-generated token to ensure request idempotence. The token must be unique for each request, contain only ASCII characters, and be no more than 64 characters long. |
123e4567-e89b-12d3-a456-426655440000 |
| ObserverNodeGroups |
array<object> |
No |
The observer compute groups. Use this parameter to enable multi-zone disaster recovery. The specifications of observer compute groups must match those of the FE node group. |
|
|
object |
No |
The configuration of a single observer compute group. |
||
| cu |
integer |
No |
The number of CUs. A CU (Compute Unit) is a basic unit of computing resources. 1 CU is equivalent to 1 vCPU and 4 GiB of memory. |
8 |
| storageSize |
integer |
No |
The storage size in GiB. |
100 |
| storagePerformanceLevel |
string |
No |
The performance level of the cloud disk. Only |
pl1 |
| diskNumber |
integer |
No |
The number of cloud disks. |
1 |
| residentNodeNumber |
integer |
No |
The number of nodes. |
3 |
| specType |
string |
No |
The specification type of the compute group. Only Standard ( |
standard |
| localStorageInstanceType |
string |
No |
The instance type for local SSDs. This parameter does not apply to observer compute groups. |
null |
| zoneId |
string |
No |
The zone ID. |
cn-hangzhou-i |
| BackendNodeGroups |
array<object> |
No |
The BE or CN compute groups. |
|
|
object |
No |
A single BE or CN compute group. |
||
| cu |
integer |
No |
The number of CUs. A CU (Compute Unit) is a basic unit of computing resources. 1 CU is equivalent to 1 vCPU and 4 GiB of memory. If |
8 |
| storageSize |
integer |
No |
The storage size in GiB. |
100 |
| storagePerformanceLevel |
string |
No |
The performance level of the cloud disk. Valid values:
|
pl1 |
| diskNumber |
integer |
No |
The number of cloud disks. |
1 |
| residentNodeNumber |
integer |
No |
The number of nodes. |
3 |
| specType |
string |
No |
The specification type of the compute group. Valid values:
|
standard |
| localStorageInstanceType |
string |
No |
The instance type for the local SSD of the node group. This parameter applies only to ECS-based instances when |
local_ssd_4_4xlarge |
| zoneId |
string |
No |
The zone ID. |
cn-hangzhou-i |
| FrontendNodeGroups |
array<object> |
No |
The FE node groups. |
|
|
object |
No |
|||
| cu |
integer |
No |
The number of CUs. A CU (Compute Unit) is a basic unit of computing resources. 1 CU is equivalent to 1 vCPU and 4 GiB of memory. |
8 |
| storageSize |
integer |
No |
The storage size in GiB. |
100 |
| storagePerformanceLevel |
string |
No |
The performance level of the cloud disk. Only |
pl1 |
| diskNumber |
integer |
No |
The number of cloud disks. |
1 |
| residentNodeNumber |
integer |
No |
The number of nodes. |
3 |
| specType |
string |
No |
The specification type of the compute group. Only Standard ( |
standard |
| localStorageInstanceType |
string |
No |
The instance type for local SSDs. This parameter does not apply to FE node groups. |
null |
| zoneId |
string |
No |
The zone ID. |
cn-hangzhou-i |
| PromotionOptionNo |
string |
No |
The coupon ID. |
165445235634 |
| Encrypted |
boolean |
No |
Specifies whether to enable encryption. |
true |
| KmsKeyId |
string |
No |
The ID of the Key Management Service (KMS) key. |
fdsdf**** |
| GatewayType |
string |
No |
||
| AgentNodeGroup |
object |
No |
||
| cu |
integer |
No |
||
| AutoPay |
boolean |
No |
||
| LinkedRamUserName |
string |
No |
aliyun.test1 |
|
| DlfCatalogName |
string |
No |
paimon_test |
|
| DlfCatalogType |
string |
No |
paimon |
|
| PrincipalType |
string |
No |
RR |
|
| RamUserId |
string |
No |
123456 |
|
| EnableMultiAz |
boolean |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
B67D142D-D54E-184F-A306-22BDC01B2XXX |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrCode |
string |
The error code. |
InvalidParams |
| ErrMessage |
string |
The error message. |
Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]] |
| Data |
object |
The returned data. |
|
| OrderId |
integer |
The order ID. |
241526000650XXX |
| InstanceId |
string |
The instance ID. |
c-b25e21e243889XXX |
| AccessDeniedDetail |
string |
Details of the access denial. |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "B67D142D-D54E-184F-A306-22BDC01B2XXX",
"Success": true,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]]",
"Data": {
"OrderId": 0,
"InstanceId": "c-b25e21e243889XXX"
},
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.