跳到主要内容

删除全球集群成员集群 (V2)

从全球集群中删除成员集群。从集群可直接删除;主集群只有在同一全球集群中的所有从集群均已删除后才能删除。

DELETE/v2/globalClusters/{globalClusterId}/clusters/{clusterId}
连接端点

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com

📘说明

控制面接口速率限制为单用户单接口每秒最多 20 个请求。

shell
export BASE_URL="https://api.cloud.zilliz.com"
参数
Authorizationstringheader必填项

认证令牌,应为具备适当权限的 API 密钥。

示例值:Bearer {{TOKEN}}
globalClusterIdstringpath必填项

全球集群 ID。

示例值:glo-xxxxxxxxxxxxxxx
clusterIdstringpath必填项

要删除的成员集群 ID,可以是主集群或从集群 ID。

示例值:in01-xxxxxxxxxxxxxxx
bash
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
export clusterId="in01-xxxxxxxxxxxxxxx"

curl --request DELETE \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/clusters/${clusterId}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
响应

返回已删除成员集群的信息。

globalClusterIdstring

全球集群 ID。

示例值:glo-xxxxxxxxxxxxxxx
clusterIdstring

已删除成员集群 ID。

示例值:in01-xxxxxxxxxxxxxxx
promptstring

展示给用户的删除提示。

示例值: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.

返回错误消息。

codeinteger

响应码。

示例值:400
messagestring

错误描述。

示例值:Invalid request parameters.
Successjson
{
"globalClusterId": "glo-xxxxxxxxxxxxxxx",
"clusterId": "in01-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."
}
Ctrl I