CreateInstance

Updated at:
Copy as MD

Creates a cluster instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

milvus:CreateInstance

create

*Instance

acs:milvus:{#regionId}:{#accountId}: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 :

    Pay-as-you-go.

  • Subscription :

    Subscription.

PayAsYouGo

paymentDuration

integer

No

The subscription duration.

1

paymentDurationUnit

string

No

The billing unit.

Valid values:

  • Month :

    Month.

  • Year :

    Year.

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 :

    Single zone.

  • Two_ha :

    Dual-zone high availability edition

  • Two :

    Dual zones

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: Automatic payment.

  • false: Only generates an order without payment.

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:

  • proxy :

    Proxy

  • streaming :

    Streaming node (for Milvus 2.6)

  • mix_coordinator :

    mix_coordinator metadata service.

  • data :

    Data Node

  • query :

    Query Node

  • standalone :

    Standalone.

  • index :

    Index node (for Milvus 2.4/2.5)

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:

  • Large :

    Storage-optimized.

  • Normal :

    Compute-optimized.

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.