Batch delete rollup and summary data Beta

POST /s/{spaceId}/api/observability/slos/_delete_instances

The deletion occurs for the specified list of sloId and instanceId. You must have all privileges for the SLOs feature in the Observability section of the Kibana feature privileges.

Headers

  • kbn-xsrf string Required

    Cross-site request forgery protection

Path parameters

  • spaceId string Required

    An identifier for the space. If /s/ and the identifier are omitted from the path, the default space is used.

application/json; Elastic-Api-Version=2023-10-31

Body Required

  • list array[object] Required

    An array of slo id and instance id

    Hide list attributes Show list attributes object
    • instanceId string Required

      The SLO instance identifier

    • sloId string Required

      The SLO unique identifier

Responses

  • Successful request

  • 400 application/json; Elastic-Api-Version=2023-10-31

    Bad request

    Hide response attributes Show response attributes object
  • 401 application/json; Elastic-Api-Version=2023-10-31

    Unauthorized response

    Hide response attributes Show response attributes object
  • 403 application/json; Elastic-Api-Version=2023-10-31

    Unauthorized response

    Hide response attributes Show response attributes object
POST /s/{spaceId}/api/observability/slos/_delete_instances
curl \
 -X POST https://<KIBANA_URL>/s/default/api/observability/slos/_delete_instances \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31" \
 -H "kbn-xsrf: string"
Request examples
# Headers
kbn-xsrf: string

# Payload
{
  "list": [
    {
      "instanceId": "8853df00-ae2e-11ed-90af-09bb6422b258",
      "sloId": "8853df00-ae2e-11ed-90af-09bb6422b258"
    }
  ]
}
Response examples (400)
{
  "error": "Bad Request",
  "message": "Invalid value 'foo' supplied to: [...]",
  "statusCode": 400
}
Response examples (401)
{
  "error": "Unauthorized",
  "message": "[security_exception\n\tRoot causes:\n\t\tsecurity_exception: unable to authenticate user [elastics] for REST request [/_security/_authenticate]]: unable to authenticate user [elastics] for REST request [/_security/_authenticate]",
  "statusCode": 401
}
Response examples (403)
{
  "error": "Unauthorized",
  "message": "[security_exception\n\tRoot causes:\n\t\tsecurity_exception: unable to authenticate user [elastics] for REST request [/_security/_authenticate]]: unable to authenticate user [elastics] for REST request [/_security/_authenticate]",
  "statusCode": 403
}