Skip to main content

Update Lake-Search Cluster (V2)

Update the name, description, or auto-suspend idle window of a Lake-Search Cluster.

PATCH/v2/clusters/onDemandClusters/{CLUSTER_ID}
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}}
OrgIdstringheaderrequired

The organization ID of the cluster.

Example Value: org-xxxxxxxxxxxxxxxxxxx
Acceptstringheader

Use application/json.

Example Value: application/json
CLUSTER_IDstringpathrequired

The ID of the Lake-Search cluster to update.

Example Value: inxx-xxxxxxxxxxxxxxx
Request Body
clusterNamestring

The new name of the cluster. The value cannot be an empty string.

descriptionstring

The new description of the cluster. The value can be an empty string.

autoSuspendstring

Auto-suspend idle window. The value must use the <number><s|m|h> format, such as 60s, 5m, or 1h, and must be at least 60 seconds.

Example Value: 5m
cuSizeinteger<int32>

New CU count of the Query Cluster. Must be a positive multiple of 8.

Value Range: ≥ 8
Example Value: 32
keepWarmobject

Optional keep-warm schedule replacement. Omit to leave the schedule unchanged; an empty schedules list removes it.

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.

bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"

curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"clusterName": "New Cluster Name",
"description": "This is the new description of the cluster.",
"autoSuspend": "5m"
}'
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"

curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"clusterName": "New Cluster Name"
}'
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"

curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"description": ""
}'
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"

curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"autoSuspend": "5m"
}'
Responses

Returns the ID of the modified cluster.

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

codeinteger<int32>

Response code.

dataobject

Response payload.

clusterIdstring

ID of the cluster that has been modified.

promptstring

Prompt message returned.

Returns an error message.

codeinteger

Response code.

messagestring

Error message.

Successjson
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"prompt": "successfully submitted. Cluster is being upgraded, which is expected to take several minutes. 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."
}
}