Spaces method and path for this operation:
Refer to Spaces for more information.
Create an action for a specific alert episode.
[Required authorization] Route required privileges: manage_alerting-v2-alerts.
Path parameters
-
Identifier of the alert to apply the action to.
Minimum length is
1, maximum length is150.
Responses
-
Indicates the action was created.
-
Indicates an invalid schema or parameters.
-
Indicates the request was not authenticated.
-
Indicates the user does not have the required privileges to perform the request.
-
Indicates the alert episode was not found.
-
Indicates the alert episode has been superseded by a newer episode of its series, or is already in the requested state.
-
Indicates an unexpected server-side error.
-
Indicates the alerting engine is disabled by the
alerting:v2:enabledadvanced setting.
curl \
--request POST 'https://localhost:5601/api/alerting/v2/alerts/{id}/_deactivate' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{
"reason": "False positive confirmed by on-call."
}'
{
"reason": "False positive confirmed by on-call."
}
{
"code": "BAD_REQUEST",
"details": {
"errors": {
"id": [
"Required"
]
}
},
"error": "Bad Request",
"message": "id: Required"
}
{
"code": "UNAUTHORIZED",
"error": "Unauthorized",
"message": "Authentication required to access this API."
}
{
"code": "FORBIDDEN",
"error": "Forbidden",
"message": "The current user does not have the required privileges for this request."
}
{
"code": "ALERT_NOT_FOUND",
"details": {
"alert_id": "episode-1"
},
"error": "Not Found",
"message": "Alert with alert_id [episode-1] not found"
}
{
"code": "ALERT_NOT_LATEST",
"details": {
"alert_id": "episode-1",
"group_hash": "98058cb569017ecb6b08b554ecbcb2524ff7dd8971828f4f2e5939c1e6667e56"
},
"error": "Conflict",
"message": "Alert [episode-1] is not the latest alert for group [98058cb569017ecb6b08b554ecbcb2524ff7dd8971828f4f2e5939c1e6667e56]"
}
{
"code": "INTERNAL_SERVER_ERROR",
"error": "Internal Server Error",
"message": "An unexpected error occurred."
}
{
"code": "ALERTING_DISABLED",
"error": "Service Unavailable",
"message": "Alerting is disabled."
}