Create Cluster
Creates a new cluster.
The base URL for this API is in the following format:
https://controller.api.${CLOUD_REGION}.zillizcloud.com
- You need to replace
${CLOUD_REGION}
with the appropriate region for your deployment. - To get the cloud region ID, refer to Zilliz Cloud Console or List Cloud Regions.
export CLOUD_REGION="gcp-us-west1"
export BASE_URL="https://controller.api.${CLOUD_REGION}.zillizcloud.com"
The authentication token should be an API key with appropriate privileges.
The subscription plan of the cluster to be created.
The name of the cluster to create.
The size of CU used for the cluster.
The type of CU used for the cluster.
The ID of the project where the cluster is to be created.
export TOKEN="YOUR_API_KEY"
curl --request POST \
--url "${BASE_URL}/v1/clusters/create" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"cuSize": 1,
"clusterName": "Cluster-02",
"projectId": "proj-xxxxxxxxxxxxxxxxxxxxxx",
"plan": "Standard",
"cuType": "Performance-optimized"
}'
A success response.
Response code.
Response payload which is an object containing information about the created dedicated cluster.
The ID of the cluster affected by this operation.
The name of the cluster user generated by default.
The password of the cluster user generated by default. It will not be displayed again, so note it down and securely store it.
The statement indicating that this operation succeeds.
Returns an error message.
Response code.
Error message.
{
"code": 200,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"username": "db_admin",
"password": "xxxxxxxxxxxxxxxx",
"prompt": "successfully submitted, cluster is being created. You can access data about the creation progress and status of your cluster by DescribeCluster API. Once the cluster status is RUNNING, you may access your vector database using the SDK with the admin account and the initial password you specified."
}
}