Bulk delete SLO definitions and their associated summary and rollup data. This endpoint initiates a bulk deletion operation for SLOs, which may take some time to complete. The status of the operation can be checked using the GET /api/slo/_bulk_delete/{taskId} endpoint.
Path parameters
-
An identifier for the space. If
/s/and the identifier are omitted from the path, the default space is used.
POST
/s/{spaceId}/api/observability/slos/_bulk_delete
curl \
--request POST 'https://<KIBANA_URL>/s/default/api/observability/slos/_bulk_delete' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '{"list":["8853df00-ae2e-11ed-90af-09bb6422b258","d077e940-1515-11ee-9c50-9d096392f520"]}'
Request example
{
"list": [
"8853df00-ae2e-11ed-90af-09bb6422b258",
"d077e940-1515-11ee-9c50-9d096392f520"
]
}
Response examples (200)
{
"taskId": "d08506b7-f0e8-4f8b-a06a-a83940f4db91"
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid value 'foo' supplied to: list",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "security_exception: unable to authenticate user for REST request [/api/observability/slos]",
"statusCode": 401
}
Response examples (403)
{
"error": "Forbidden",
"message": "security_exception: action [slo_write] is unauthorized for user",
"statusCode": 403
}