メインコンテンツまでスキップ

Delete Alert Rule

Deletes an existing alert rule by its ID. The current user should be a project admin.

DELETE
/v2/alertRules/{ALERT_RULE_ID}
Cluster Endpoint

The base URL for this API is in the following format:

https://${CLUSTER_ENDPOINT}

📘Notes
  • You need to fill in ${CLUSTER_ENDPOINT} with that of your Zilliz Cloud cluster.
  • To get the endpoint, use the Describe Cluster V2 API to extract the values from the responses.
export CLUSTER_ENDPOINT=""
Parameters
Authorizationstringheaderrequired

The authentication token should be an API key with appropriate privileges.

Example Value: Bearer {{TOKEN}}
ALERT_RULE_IDstringpathrequired

The ID of the alert rule to delete.

export TOKEN="db_admin:xxxxxxxxxxxxx"
export ALERT_RULE_ID="undefined"

curl --request DELETE \
--url "${CLUSTER_ENDPOINT}/v2/alertRules/${ALERT_RULE_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
Responses200 - application/json

Returns an empty response.

codeinteger

Response code.

Returns an error message.

codeinteger

Response code.

messagestring

Error message.

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