Update the global SLO settings

Base URL
https://{kibana_url}
  • PUT /api/observability/slo_settings/global
  • PUT /s/{space_id}/api/observability/slo_settings/global
Auth

Global SLO settings apply to all spaces. You must have all privileges for the SLOs feature in the Observability section of the Kibana feature privileges in all spaces. You must also have the delete_index index privilege on .slo-observability.sli-*, because the SLI retention deletes SLI data for SLOs in all spaces. Each settings block is replaced as a whole. When xpack.slo.sliRetention is set in kibana.yml, the request still saves the value, and the kibana.yml value stays effective until it is removed.

Required privileges

slo_write

Path parameters

space_id string optional

An identifier for the space. If space_id is not provided in the URL, the default space is used. Refer to Spaces for more information.

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

sliRetention object required

The SLI retention settings. The request replaces the whole block.

enabled boolean required

Indicates if dated SLI indices older than the retention period are deleted

periodDays integer · min: 180 · max: 3650 required

The number of days of SLI data kept when SLI retention is enabled

Responses

Successful request

application/json
sliRetention object required

enabled and periodDays hold the saved values, or the defaults when nothing was saved.

effective object required
enabled boolean required

Indicates if SLI retention is enabled

periodDays integer · min: 1 · max: 9007199254740991 required

The number of days of SLI data to keep

source enum required

Where the resolved value comes from: default is the built-in value, settings is the saved value, and config is the xpack.slo.sliRetention setting in kibana.yml

Values: default settings config
enabled boolean required

Indicates if dated SLI indices older than the retention period are deleted

periodDays integer · min: 1 · max: 9007199254740991 required

The number of days of SLI data kept when SLI retention is enabled

updatedAt string · format: date-time · max length: 128 required nullable

When the SLI retention was last saved, or null when it was never saved

Base URL
https://{kibana_url}