Skip to main content

List Clusters

Lists all clusters in the specified cloud region.


GET
https://controller.${CLOUD_REGION}.zillizcloud.com/v1/clusters

Example

📘Notes

This API requires an API key as the authentication token.

export CLOUD_REGION="gcp-us-west1"
export API_KEY=""

curl --location --request GET "https://controller.api.${CLOUD_REGION}.zillizcloud.com/v1/clusters?pageSize=10&current=1" \
--header "Authorization: Bearer ${API_KEY}"

Possible response is similar to the following.

{
"code": 200,
"data": {
"count": 1,
"currentPage": 1,
"pageSize": 10,
"clusters": [
{
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"clusterName": "Cluster-01",
"description": "",
"regionId": "gcp-us-west1",
"clusterType": "Cost-optimized",
"plan": "Free",
"cuSize": 0,
"status": "RUNNING",
"connectAddress": "https://inxx-xxxxxxxxxxxxxxx.api.gcp-us-west1.zillizcloud.com",
"privateLinkAddress": "",
"projectId": "proj-xxxxxxxxxxxxxxxxxxxxxx",
"createTime": "2024-04-01T06:42:31Z"
}
]
}
}

Request

Parameters

  • Query parameters

    ParameterDescription
    pageSizeinteger
    The number of records to return on each page.
    currentinteger
    The current page number.
  • No path parameters required

  • Header parameters

    ParameterDescription
    Authorizationstring

Request Body

No request body required

Response

Returns a list of your clusters.

Response Body

{
"code": "integer",
"data": {
"count": "integer",
"currentPage": "integer",
"pageSize": "integer",
"clusters": [
{
"clusterId": "string",
"clusterName": "string",
"description": "string",
"regionId": "string",
"clusterType": "string",
"cuSize": "integer",
"status": "string",
"connectAddress": "string",
"privateLinkAddress": "string",
"createTime": "string"
}
]
}
}
PropertyDescription
codeinteger
Indicates whether the request succeeds.
  • 0: The request succeeds.
  • Others: Some error occurs.
dataobject
data.countinteger
The total number of clusters returned.
data.currentPageinteger
The current page in the results.
data.pageSizeinteger
The number of clusters per page in the results.
data[].clustersarray
An array of clusters in detail.
data[].clusters[]object
data[].clusters[].clusterIdstring
The ID of the cluster.
data[].clusters[].clusterNamestring
The name of the cluster.
data[].clusters[].descriptionstring
An optional description about the cluster.
data[].clusters[].regionIdstring
The ID of the region where the cluster exists.
data[].clusters[].clusterTypestring
The type of CU associated with the cluster. Possible values are Performance-optimized and Capacity-optimized.
data[].clusters[].cuSizeinteger
The size of the CU associated with the cluster.
data[].clusters[].statusstring
The current status of the cluster. Possible values are INITIALIZING, RUNNING, SUSPENDING, and RESUMING.
data[].clusters[].connectAddressstring
The public endpoint of the cluster. You can connect to the cluster using this endpoint from the public network.
data[].clusters[].privateLinkAddressstring
The private endpoint of the cluster. You can set up a private link to allow your VPS in the same cloud region to access your cluster.
data[].clusters[].createTimestring
The time at which the cluster has been created.

Error Response

{
"code": integer,
"message": string
}
PropertyDescription
codeinteger
Indicates whether the request succeeds.
  • 0: The request succeeds.
  • Others: Some error occurs.
messagestring
Indicates the possible reason for the reported error.