Creates a Serverless StarRocks instance.
Operation description
Before you call this operation, make sure that you understand the billing methods and billable items for 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 instance name. |
c1 |
| AdminPassword |
string |
Yes |
The password of the administrator account 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 is valid only if you set `PayType` to `PrePaid`. Default value: false. |
true |
| RunMode |
string |
Yes |
The run mode of the instance. Valid values:
|
shared_data |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| PackageType |
string |
Yes |
The edition of the instance. Valid values:
|
official |
| PayType |
string |
Yes |
The billing method. Valid values:
|
prePaid |
| VpcId |
string |
Yes |
The ID of the VPC. |
vpc-bp1fll2mci6d7pw8m**** |
| PricingCycle |
string |
No |
The unit of the subscription duration. This parameter is required only if you set `PayType` to `PrePaid`. Valid values:
|
Month |
| VSwitches |
array<object> |
No |
The vSwitches and zones. |
|
|
object |
No |
The vSwitch. |
||
| VswId |
string |
Yes |
The ID of the vSwitch. |
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 that is used to access OSS without a password. |
AliyunEMRStarRocksAccessingOSSRole |
| Duration |
integer |
No |
The subscription duration. This parameter is required only if you set `PayType` to `PrePaid`. |
1 |
| Tags |
array<object> |
No |
The tags of the instance. |
|
|
object |
No |
The tag. |
||
| 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 |
The client token that is used to ensure the idempotence of the request. Make sure that the token is unique for each request. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
123e4567-e89b-12d3-a456-426655440000 |
| ObserverNodeGroups |
array<object> |
No |
The observer compute groups. Specify this parameter only to enable multi-zone disaster recovery. The configurations of the observer compute groups must be the same as the specifications of the frontend (FE) node group. |
|
|
object |
No |
The observer compute group. |
||
| cu |
integer |
No |
The number of compute units (CUs). A CU is a basic unit of computing resources. One CU is equivalent to 1 CPU core and 4 GiB of memory. |
8 |
| storageSize |
integer |
No |
The storage capacity in GiB. |
100 |
| storagePerformanceLevel |
string |
No |
The performance level (PL) of the disk. Only PL1 is supported. A single PL1 disk provides up to 50,000 random read/write input/output operations per second (IOPS). |
pl1 |
| diskNumber |
integer |
No |
The number of disks. |
1 |
| residentNodeNumber |
integer |
No |
The number of nodes. |
3 |
| specType |
string |
No |
The specification type of the compute group. Only Standard Edition (`standard`) is supported. |
standard |
| localStorageInstanceType |
string |
No |
The instance type of the local SSD. You do not need to set this parameter for observer compute groups. |
null |
| zoneId |
string |
No |
The ID of the zone. |
cn-hangzhou-i |
| BackendNodeGroups |
array<object> |
No |
The backend (BE) or compute node (CN) compute groups. |
|
|
object |
No |
The BE or CN compute group. |
||
| cu |
integer |
No |
The number of CUs. A CU is a basic unit of computing resources. One CU is equivalent to 1 CPU core and 4 GiB of memory. If you set `SpecType` to `ramEnhanced`, one CU is equivalent to 1 CPU core and 8 GiB of memory. |
8 |
| storageSize |
integer |
No |
The storage capacity in GiB. |
100 |
| storagePerformanceLevel |
string |
No |
The PL of the disk. Valid values:
|
pl1 |
| diskNumber |
integer |
No |
The number of 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 of the local SSD for the compute group. This parameter is valid only for Elastic Compute Service (ECS)-based instances if you set `SpecType` to `localSSD` or `bigData`. |
local_ssd_4_4xlarge |
| zoneId |
string |
No |
The ID of the zone. |
cn-hangzhou-i |
| FrontendNodeGroups |
array<object> |
No |
The FE node group. |
|
|
object |
No |
|||
| cu |
integer |
No |
The number of CUs. A CU is a basic unit of computing resources. One CU is equivalent to 1 CPU core and 4 GiB of memory. |
8 |
| storageSize |
integer |
No |
The storage capacity in GiB. |
100 |
| storagePerformanceLevel |
string |
No |
The PL of the disk. Only PL1 is supported. A single PL1 disk provides up to 50,000 random read/write IOPS. |
pl1 |
| diskNumber |
integer |
No |
The number of disks. |
1 |
| residentNodeNumber |
integer |
No |
The number of nodes. |
3 |
| specType |
string |
No |
The specification type of the compute group. Only Standard Edition (`standard`) is supported. |
standard |
| localStorageInstanceType |
string |
No |
The instance type of the local SSD. You do not need to set this parameter for FE compute groups. |
null |
| zoneId |
string |
No |
The ID of the zone. |
cn-hangzhou-i |
| PromotionOptionNo |
string |
No |
The coupon ID. |
165445235634 |
| Encrypted |
boolean |
No |
Specifies whether to encrypt the data. |
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 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The ID of the request. |
B67D142D-D54E-184F-A306-22BDC01B2XXX |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrCode |
string |
The error code returned. |
InvalidParams |
| ErrMessage |
string |
The error message returned. |
Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]] |
| Data |
object |
The data returned. |
|
| OrderId |
integer |
The ID of the order. |
241526000650XXX |
| InstanceId |
string |
The ID of the instance. |
c-b25e21e243889XXX |
| AccessDeniedDetail |
string |
The details that are returned when the access is denied. |
{ "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.