This API is used to create a Serverless StarRocks instance.
Operation description
Before using this API, make sure you fully 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 |
Request body. |
|
| InstanceName |
string |
Yes |
Instance name. |
c1 |
| AdminPassword |
string |
Yes |
Instance administrator password. |
password_example |
| Version |
string |
Yes |
Instance major version. |
3 |
| AutoRenew |
boolean |
No |
Whether to enable auto-renewal. This parameter is valid only when payType is PrePaid. Disabled by default. |
true |
| RunMode |
string |
Yes |
The running mode of the cluster:
|
shared_data |
| RegionId |
string |
Yes |
Region ID. |
cn-hangzhou |
| PackageType |
string |
Yes |
Instance edition:
|
official |
| PayType |
string |
Yes |
Billing method:
|
prePaid |
| VpcId |
string |
Yes |
VPC ID. |
vpc-bp1fll2mci6d7pw8m**** |
| PricingCycle |
string |
No |
Duration unit:
|
Month |
| VSwitches |
array<object> |
No |
VSwitch and zone information. |
|
|
object |
No |
VSwitch information. |
||
| VswId |
string |
Yes |
VSwitch ID. |
vsw-bp19mlh98tm9teyyd**** |
| ZoneId |
string |
No |
Zone ID of the VSwitch. |
cn-hangzhou-i |
| ZoneId |
string |
Yes |
Primary zone ID. |
cn-hangzhou-i |
| OssAccessingRoleName |
string |
No |
The name of the role used for password-free access to OSS. |
AliyunEMRStarRocksAccessingOSSRole |
| Duration |
integer |
No |
Subscription duration. This parameter is valid only when payType is PrePaid. |
1 |
| Tags |
array<object> |
No |
Instance tags. |
|
|
object |
No |
Tag structure. |
||
| Key |
string |
No |
Tag key. |
k1 |
| Value |
string |
No |
Tag value. |
v1 |
| ResourceGroupId |
string |
No |
Resource group ID. |
rg-aekzllkih7jqxxx |
| ClientToken |
string |
No |
Ensures the idempotency of the request. Generate a parameter value from your client to ensure that the value is unique across different requests. ClientToken supports only ASCII characters and cannot exceed 64 characters. |
123e4567-e89b-12d3-a456-426655440000 |
| ObserverNodeGroups |
array<object> |
No |
Observer node group information. Specify this field only when you need to enable multi-zone disaster recovery. The Observer configuration must be consistent with the FE node group specifications. |
|
|
object |
No |
Observer node group information. |
||
| cu |
integer |
No |
Number of CUs. CU (Compute Unit) is the basic billing unit of the service. 1 CU = 1 CPU core + 4 GiB memory. |
8 |
| storageSize |
integer |
No |
Storage size. Unit: GiB. |
100 |
| storagePerformanceLevel |
string |
No |
Performance level of the cloud disk. Only pl1 is supported, with a maximum random read/write IOPS of 50,000 per disk. |
pl1 |
| diskNumber |
integer |
No |
Number of disks. |
1 |
| residentNodeNumber |
integer |
No |
Number of nodes. |
3 |
| specType |
string |
No |
Node group specification type. Only standard is supported. |
standard |
| localStorageInstanceType |
string |
No |
Local SSD instance type. This field does not need to be set for the Observer node group. |
null |
| zoneId |
string |
No |
Zone ID. |
cn-hangzhou-i |
| BackendNodeGroups |
array<object> |
No |
BE or CN node group information. |
|
|
object |
No |
BE or CN node group information. |
||
| cu |
integer |
No |
Number of CUs. CU (Compute Unit) is the basic billing unit of the service. 1 CU = 1 CPU core + 4 GiB memory. When SpecType is ramEnhanced, 1 CU = 1 CPU core + 8 GiB memory. |
8 |
| storageSize |
integer |
No |
Storage size. Unit: GiB. |
100 |
| storagePerformanceLevel |
string |
No |
Performance level of the cloud disk. Valid values:
|
pl1 |
| diskNumber |
integer |
No |
Number of disks. |
1 |
| residentNodeNumber |
integer |
No |
Number of nodes. |
3 |
| specType |
string |
No |
Node group specification type. Valid values:
|
standard |
| localStorageInstanceType |
string |
No |
Local SSD instance type of the node group. This parameter is valid only for ECS-based instances when SpecType is localSSD or bigData. |
local_ssd_4_4xlarge |
| zoneId |
string |
No |
Zone ID. |
cn-hangzhou-i |
| FrontendNodeGroups |
array<object> |
No |
FE node group information. |
|
|
object |
No |
|||
| cu |
integer |
No |
Number of CUs. CU (Compute Unit) is the basic billing unit of the service. 1 CU = 1 CPU core + 4 GiB memory. |
8 |
| storageSize |
integer |
No |
Storage size. Unit: GiB. |
100 |
| storagePerformanceLevel |
string |
No |
Performance level of the cloud disk. Only pl1 is supported, with a maximum random read/write IOPS of 50,000 per disk. |
pl1 |
| diskNumber |
integer |
No |
Number of disks. |
1 |
| residentNodeNumber |
integer |
No |
Number of nodes. |
3 |
| specType |
string |
No |
Node group specification type. Only standard is supported. |
standard |
| localStorageInstanceType |
string |
No |
Local SSD instance type. This field does not need to be set for the FE node group. |
null |
| zoneId |
string |
No |
Zone ID. |
cn-hangzhou-i |
| PromotionOptionNo |
string |
No |
Coupon ID. |
165445235634 |
| Encrypted |
boolean |
No |
Whether to enable encryption. |
true |
| KmsKeyId |
string |
No |
KMS key ID. |
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 |
HTTP status code. |
200 |
| RequestId |
string |
Request ID. |
B67D142D-D54E-184F-A306-22BDC01B2XXX |
| Success |
boolean |
Whether the request is successful. |
true |
| ErrCode |
string |
Error code. |
InvalidParams |
| ErrMessage |
string |
Error message. |
Invalid params: [Region id should be select from set [cn-beijing, cn-hangzhou]] |
| Data |
object |
Response data. |
|
| OrderId |
integer |
Order ID. |
241526000650XXX |
| InstanceId |
string |
Instance ID. |
c-b25e21e243889XXX |
| AccessDeniedDetail |
string |
Details of the permission verification failure. |
{ "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.