Skip to main content

List On-Demand Clusters (V2)

Public Preview

List all on-demand clusters in the current project.

GET/v2/clusters/onDemandClusters
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}}
Acceptstringheader

Use application/json.

Example Value: application/json
projectIdstringqueryrequired

The ID of the project to list clusters in. If not specified, the clusters in the default project will be listed.

Example Value: proj-xxxxxxxxxxxxxxxxxxxx
regionIdstringqueryrequired

The ID of the cloud region to list clusters in. If not specified, the clusters in all regions will be listed.

Example Value: aws-us-west-2
bash
export TOKEN="YOUR_API_KEY"

curl --request GET \
--url "${BASE_URL}/v2/clusters/onDemandClusters?projectId=proj-xxxxxxxxxxxxxxxxxxxx&regionId=aws-us-west-2" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
Responses

Returns a list of on-demand clusters.

codeinteger<int32>

Response code.

dataobject

Response payload containing the on-demand Cluster records returned by the listing operation.

onDemandClustersarray

List of on-demand clusters.

[]onDemandClustersobject

An on-demand cluster.

clusterIdstring

ID of the cluster.

Example Value: inxx-xxxxxxxxxxxxxxx
clusterNamestring

Name of the cluster.

descriptionstring

Description of the on-demand cluster.

regionIdstring

Cloud region where the cluster is located.

Example Value: aws-us-west-2
projectIdstring

ID of the project to which the cluster belongs.

Example Value: proj-xxxxxxxxxxxxxxx
cuSizeinteger<int32>

CU size of the cluster

statusstring

Current cluster status

Example Value: SUSPENDED
endpointstring

Cluster public endpoint. For an on-demand cluster, the endpoint is an on-demand compute endpoint, which is shared among all on-demand clusters in the project. Use that with the target cluster ID for searches and queries.

Example Value: https://proj-xxxxxxxxxxxxxxx.aws-us-west-2.zillizcloud.com
privateLinkstring

Cluster private endpoint. This is an empty string if private link is not enabled.

createdBystring

Email address of the user who create the cluster.

createTimestring

Time at which the cluster is created in UTC ISO-8601 format.

autoSuspendinteger<int32>

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

keepWarmActiveboolean

Whether a keep-warm window is currently active.

keepWarmobject

Keep-warm schedule configuration; null when no schedule is configured.

enabledboolean

Whether the keep-warm schedule is enabled.

systemTimezonestring

Organization system time zone (IANA) in which the schedules are interpreted.

Example Value: Asia/Shanghai
schedulesarray

Keep-warm schedule windows.

[]schedulesobject

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.

nextTransitionAtstring

Next planned window boundary in RFC 3339 UTC; null when there is none.

nextTransitionTypestring

Meaning of nextTransitionAt: START or END of a keep-warm window; null when there is no next transition.

countinteger<int32>

The total number of on-demand clusters.

json
{
"code": 0,
"data": {
"count": 2,
"onDemandClusters": [
{
"projectId": "proj-xxxxxxxxxxxxxxx",
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"clusterName": "Cluster-01",
"regionId": "aws-us-west-2",
"cuSize": 8,
"status": "RUNNING",
"endpoint": "https://proj-xxxxxxxxxxxxxxx.aws-us-west-2.api.zillizcloud.com",
"privateLink": "",
"createdBy": "john.doe@zilliz.com",
"createTime": "2024-04-21T10:15:15Z",
"autoSuspend": 60,
"description": "An on-demand cluster for vector search workloads."
},
{
"projectId": "proj-xxxxxxxxxxxxxxx",
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"clusterName": "Cluster-02",
"regionId": "aws-us-west-2",
"status": "RUNNING",
"cuSize": 8,
"endpoint": "https://proj-xxxxxxxxxxxxxxx.aws-us-west-2.api.zillizcloud.com",
"privateLink": "",
"createdBy": "john.doe@zilliz.com",
"createTime": "2024-04-21T10:15:16Z",
"autoSuspend": 60,
"description": "An on-demand cluster for vector search workloads."
}
]
}
}
json
{
"code": 21119,
"message": "The apikey is illegal."
}