删除集群
Deletes a cluster. This operation moves your cluster to the recycle bin. All clusters in the recycle bin are pending permanent deletion in 30 days.
DELETE
/v1/clusters/{CLUSTER_ID}/drop该 API 的 Base URL 格式如下:
https://controller.api.${CLOUD_REGION}.zilliz.com.cn
📘说明
- 你需要将
${CLOUD_REGION}
替换为您的集群所在区域。 - 获取云区域 ID 请参考 Zilliz Cloud 控制台 或使用查看云区域接口。
export CLOUD_REGION="ali-cn-hangzhou"
export BASE_URL="https://controller.api.${CLOUD_REGION}.zilliz.com.cn"
参数
Authorizationstringheaderrequired
认证令牌,应为具备适当权限的 API 密钥。
示例值:Bearer {{TOKEN}}
CLUSTER_IDstringpathrequired
The ID of the cluster to drop.
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="undefined"
curl --request DELETE \
--url "${BASE_URL}/v1/clusters/${CLUSTER_ID}/drop" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
响应200 - application/json
A success response.
codeinteger
响应码。
dataobject
响应载荷,包含已操作集群的 ID。
clusterIdstring
集群 ID。
promptstring
提示信息,表示当前操作成功。
Returns an error message.
codeinteger
响应码。
messagestring
错误描述。
{
"code": 200,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"prompt": "The cluster has been deleted. If you consider this action to be an error, you have the option to restore the deleted cluster from the recycle bin within a 30-day period. Kindly note, this recovery feature does not apply to free clusters."
}
}