Create Serverless Cluster
Creates a serverless 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 On 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 be created. It is a string of no more than 32 characters.
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/createServerless" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"plan": "Free",
"clusterName": "free_01",
"projectId": "proj-xxxxxxxxxxxxxxxxxxxx"
}'
Returns information about the created serverless cluster.
Response code.
Response payload which is an object containing information about the created serverless 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_xxxxxxxxxxxxxxx",
"password": "xxxxxxxxxxxxxxxxx",
"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."
}
}