Skip to main content

Modify Cluster

Modify the configuration of a specified cluster. Currently, you can use this API to change the size of the CU associated with your cluster.


POST
https://controller.${CLOUD_REGION}.zillizcloud.com/v1/clusters/{CLUSTER_ID}/modify

Example

📘Notes
  • This API requires an API key as the authentication token.
  • This API requires applies only to dedicated clusters.
export CLOUD_REGION="gcp-us-west1"
export API_KEY=""

curl --location --request POST 'https://controller.api.${CLOUD_REGION}.cloud-uat3.zilliz.com/v1/clusters/inxx-xxxxxxxxxxxxxxx/modify' \
--header "Authorization: Bearer ${API_KEY}" \
--data-raw '{
"cuSize": 2
}'

Possible return is similar to the following.

{
"code": 200,
"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."
}
}

Request

Parameters

  • No query parameters required

  • Path parameters

    ParameterDescription
    CLUSTER_IDstring(required)
  • Header parameters

    ParameterDescription
    Authorizationstring

Request Body

{
"cuSize": "integer"
}
ParameterDescription
cuSizeinteger
The size of the CU to be associated to your cluster after the configuration.

Response

Returns the ID of the affected cluster.

Response Body

{
"code": "integer",
"data": {
"clusterId": "string",
"prompt": "string"
}
}
PropertyDescription
codeinteger
Indicates whether the request succeeds.
  • 0: The request succeeds.
  • Others: Some error occurs.
dataobject
data.clusterIdstring
The ID of a cluster.
data.promptstring
The statement indicating that the current operation succeeds.

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.