Create On-Demand Cluster (V2)
Public PreviewCreate an on-demand cluster in the current project.
The base URL for this API is in the following format:
https://api.cloud.zilliz.com
The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.
export BASE_URL="https://api.cloud.zilliz.com"
The authentication token should be an API key with appropriate privileges.
The ID of the project to create the cluster in.
The ID of the cloud region to create the cluster in.
The CU size to use for the cluster. The minimum CU size is 1.
The name of the cluster to create.
Description of the on-demand cluster.
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.
Optional keep-warm schedule saved right after the cluster is created. At least one schedule entry is required when present.
Whether the keep-warm schedule is enabled.
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.
Scheduled autoscaling target.
Cron expression defining when the schedule applies.
Target value applied when the schedule fires.
Timezone of the cron schedule.
Maximum CU count of query nodes. Must be at least 1.
Maximum number of query node replicas. Must be at least 1.
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."
}'
Returns information about the created cluster in detail.
An alternative response body returned by the operation, representing one possible outcome of the creation request.
Response code.
Response payload.
ID of the cluster created.
Prompt messages returned.
Returns an error message.
Response code.
Error message.
{
"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."
}
}