跳到主要内容

删除告警规则

本接口通过 ID 删除现有的告警规则。当前用户须为项目管理员。
DELETE
/v2/alertRules/{ALERT_RULE_ID}
Base URL

该 API 的 Base URL 格式如下:

https://api.cloud.zilliz.com.cn

📘说明

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

当前接口为公测版。如果您在使用该接口过程中遇到任何问题,欢迎您联系 Zilliz Cloud 技术支持

export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheaderrequired

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

示例值:Bearer {{TOKEN}}
ALERT_RULE_IDstringpathrequired

The ID of the alert rule to delete.

export TOKEN="YOUR_API_KEY"
export ALERT_RULE_ID="undefined"

curl --request DELETE \
--url "${BASE_URL}/v2/alertRules/${ALERT_RULE_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
响应200 - application/json

Returns an empty response.

codeinteger

响应码。

Returns an error message.

codeinteger

响应码。

messagestring

错误描述。

{
"code": 0,
"data": {}
}