CreateInstance
Creates a cluster instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
milvus:CreateInstance |
create |
*Instance
|
None | None |
Request syntax
POST /webapi/instance/create HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
| DryRun |
boolean |
No |
Specifies whether to only validate the creation request. If you set this parameter to true, only the creation parameters and purchasing conditions are validated. If the validation succeeds, the system returns HTTP 200 and success is set to true. No instance or order is created, and the ClientToken is not consumed. If you set this parameter to false or do not specify this parameter, the instance is created normally. |
true |
| body |
object |
No |
The request body. |
|
| zoneId |
string |
Yes |
The primary zone. |
cn-beijing-g |
| instanceName |
string |
No |
The instance name. |
milvus-test |
| dbVersion |
string |
Yes |
The Milvus version. |
2.4 |
| resourceGroupId |
string |
No |
The resource group ID. |
rg-xxx |
| vpcId |
string |
Yes |
The VPC ID. |
vpc-123xxx |
| paymentType |
string |
Yes |
The billing method. Valid values:
|
PayAsYouGo |
| paymentDuration |
integer |
No |
The subscription duration. |
1 |
| paymentDurationUnit |
string |
No |
The billing unit. Valid values:
|
month |
| ha |
boolean |
No |
Specifies whether to enable high availability. |
true |
| dbAdminPassword |
string |
No |
The database password. |
test12 |
| autoBackup |
boolean |
No |
Specifies whether to enable automatic backup. |
true |
| multiZoneMode |
string |
No |
The zone configuration. Valid values:
|
Single |
| encrypted |
boolean |
No |
Specifies whether to enable OSS encryption. |
false |
| kmsKeyId |
string |
No |
The ID of the KMS key used for encryption. |
key-xxx |
| configuration |
string |
No |
The configuration item. |
rootCoord: maxDatabaseNum: 64 # Maximum number of database maxPartitionNum: 4096 |
| promotionNo |
string |
No |
The coupon code. |
22120151**** |
| loadReplicas |
integer |
No |
The number of loaded replicas. |
2 |
| isMultiAzStorage |
boolean |
No |
Specifies whether to enable multi-zone storage. |
|
| autoPay |
boolean |
No |
Specifies whether to enable automatic payment. Default value: true. Valid values:
|
true |
| autoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. This parameter takes effect only when the billing method of the instance is set to Subscription. |
true |
| backupRestoreInfo |
object |
No |
The backup and restoration information. |
|
| sourceClusterId |
string |
No |
The source cluster ID. |
c-xxxxxxx |
| backupName |
string |
No |
The backup name. |
Backup 1 |
| backupId |
string |
No |
The backup ID. |
bt-xxxxx |
| aiFunction |
boolean |
No |
Specifies whether to enable the AI function. |
|
| nodeType |
string |
No |
The QueryNode type. |
perf |
| vSwitchIds |
array<object> |
No |
The vSwitches. |
["vsw-123xxx"] |
|
object |
No |
The vSwitch ID. |
||
| zoneId |
string |
No |
The zone. |
cn-shanghai-a |
| vswId |
string |
No |
The ID of the vSwitch in the zone. |
vsw-xxx |
| components |
array<object> |
No |
The component information. |
|
|
array<object> |
No |
The list of specifications for the instance. |
||
| type |
string |
Yes |
The component type. Valid values:
|
standalone |
| replica |
integer |
Yes |
The number of replicas. |
1 |
| cuNum |
integer |
Yes |
The number of CUs. |
8 |
| cuType |
string |
No |
The CU type. |
general |
| diskSizeType |
string |
No |
The QueryNode configuration. Set to Large for storage-optimized configurations and Normal for other configurations. Valid values:
|
Normal |
| dataDisk |
object |
No |
The QueryNode data disk configuration. This parameter is supported only when type is set to query. |
|
| enabled |
boolean |
No |
Specifies whether to enable the QueryNode data disk. |
true |
| storageClass |
string |
No |
The storage class of the data disk. Valid values: alicloud-disk-essd-pl0, alicloud-disk-essd-pl1, alicloud-disk-essd-pl2, and alicloud-disk-essd-pl3. |
alicloud-disk-essd-pl1 |
| size |
integer |
No |
The size of the data disk. Unit: GiB. |
100 |
| performanceLevel |
string |
No |
The performance level (PL) of the ESSD. Valid values: PL0, PL1, PL2, and PL3. If StorageClass is not specified, this field is parsed. |
PL1 |
| tags |
array<object> |
No |
The instance tags. |
|
|
object |
No |
The unique identifier of the tag. This is the tag ID. |
||
| key |
string |
No |
The key of the resource tag. |
key |
| value |
string |
No |
The value of the resource tag. |
value |
| clientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. The client generates the token and ensures that it is unique across different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
7f3a2c18-6c47-4eb7-a6bb-8432a394a620 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique request ID. |
ABCD-1234-5678-EFGH |
| success |
boolean |
Indicates whether the request is successful. |
true |
| data |
object |
The returned result. |
|
| instanceId |
string |
The instance ID. |
c-xxx |
| orderId |
string |
The order ID. |
270000000000001 |
Examples
Success response
JSON format
{
"RequestId": "ABCD-1234-5678-EFGH",
"success": true,
"data": {
"instanceId": "c-xxx",
"orderId": "270000000000001"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.