修改集群配置
Modify a dedicated cluster. Currently support upgrading dedicated clusters CU size.
POST
/v2/clusters/{CLUSTER_ID}/modify该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com.cn
export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheaderrequired
认证令牌,应为具备适当权限的 API 密钥。
示例值:Bearer {{TOKEN}}
Acceptstringheader
Use application/json
.
示例值:application/json
CLUSTER_IDstringpathrequired
ID of the cluster to modify.
示例值:inxx-xxxxxxxxxxxxxxx
请求体application/json
cuSizeinteger必填项
Number of CUs allocated to this cluster after the modification.
取值范围:> 1≤ 256
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/modify" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
-d '{
"cuSize": 2
}'
响应200 - application/json
codeinteger
Response code.
dataobject
Response payload.
clusterIdstring
ID of the cluster that has been modified.
promptstring
Prompt message returned.
Returns an error message.
codeinteger
响应码。
messagestring
错误描述。
{
"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."
}
}