Skip to main content

Create On-Demand Cluster (V2)

Public Preview

Create an on-demand cluster in the current project.

POST/v2/clusters/createOnDemandCluster
Connection Endpoint

The base URL for this API is in the following format:

https://api.cloud.zilliz.com

📘Notes

The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.

shell
export BASE_URL="https://api.cloud.zilliz.com"
Parameters
Authorizationstringheaderrequired

The authentication token should be an API key with appropriate privileges.

Example Value: Bearer {{TOKEN}}
Request Body
projectIdstringrequired

The ID of the project to create the cluster in.

regionIdstringrequired

The ID of the cloud region to create the cluster in.

cuSizeinteger<int32>required

The CU size to use for the cluster. The minimum CU size is 1.

Value Range: ≥ 8
clusterNamestringrequired

The name of the cluster to create.

descriptionstring

Description of the on-demand cluster.

Example Value: Ad hoc analytics query cluster
autoSuspendstring

Auto-suspend idle window. The cluster will be automatically suspended if there is no request within the specified period. The value should be an integer representing the number of seconds. For example, 300 means 5 minutes.

Default Value: 60s
Example Value: 60s
keepWarmobject

Optional keep-warm schedule saved right after the cluster is created. At least one schedule entry is required when present.

enabledbooleanrequired

Whether the keep-warm schedule is enabled.

schedulesarrayrequired

Complete replacement set of weekly keep-warm windows in the organization System Time Zone, at most 10 entries. An empty list removes the schedule on update.

[]schedulesobjectrequired

Scheduled autoscaling target.

cronstring

Cron expression defining when the schedule applies.

targetinteger<int64>

Target value applied when the schedule fires.

timezonestring

Timezone of the cron schedule.

maxQueryNodeCUinteger<int32>

Maximum CU count of query nodes. Must be at least 1.

Value Range: ≥ 1
maxQueryNodeReplicasinteger<int32>

Maximum number of query node replicas. Must be at least 1.

Value Range: ≥ 1
Examplebash
export TOKEN="YOUR_API_KEY"

curl --request POST \
--url "${BASE_URL}/v2/clusters/createOnDemandCluster" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"projectId": "proj-xxxxxxxxxxxxxxxxxxx",
"regionId": "aws-us-west-2",
"clusterName": "my-on-demand",
"cuSize": 8,
"autoSuspend": 60,
"description": "A cluster for vector search workloads."
}'
Responses

Returns information about the created cluster in detail.

An alternative response body returned by the operation, representing one possible outcome of the creation request.

codeinteger<int32>

Response code.

dataobject

Response payload.

clusterIdstring

ID of the cluster created.

promptstring

Prompt messages returned.

Returns an error message.

codeinteger

Response code.

messagestring

Error message.

Successjson
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"prompt": "Successfully submitted. The on-demand cluster is being created. Use the Describe On-Demand Cluster API to check its creation progress and status. Once the cluster status is RUNNING, use your API key to access the on-demand cluster."
}
}