Spaces method and path for this operation:
get /s/{space_id}/api/observability/slos/_definitions
Refer to Spaces for more information.
You must have the read privileges for the SLOs feature in the Observability section of the Kibana feature privileges.
[Required authorization] Route required privileges: slo_read.
Query parameters
-
Filters the SLOs by name
-
Indicates if the API returns only outdated SLO or all SLO definitions
Values are
trueorfalse. -
Indicates if the API returns SLO health data with definitions
Values are
trueorfalse. -
The page to use for pagination, must be greater or equal than 1
-
Number of SLOs returned by page
GET
/api/observability/slos/_definitions
curl \
--request GET 'https://<KIBANA_URL>/api/observability/slos/_definitions' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
Response examples (200)
{
"page": 1,
"perPage": 25,
"results": [
{
"budgetingMethod": "occurrences",
"createdAt": "2025-01-12T10:03:19.000Z",
"description": "Availability of my web service",
"enabled": true,
"groupBy": "*",
"id": "8853df00-ae2e-11ed-90af-09bb6422b258",
"indicator": {
"params": {
"filter": "field.environment : \"production\" and service.name : \"my-service\"",
"good": "request.status_code : \"2xx\"",
"index": "logs-*",
"timestampField": "@timestamp",
"total": "request.status_code : *"
},
"type": "sli.kql.custom"
},
"name": "My Service Availability",
"objective": {
"target": 0.99
},
"revision": 1,
"settings": {
"frequency": "5m",
"preventInitialBackfill": false,
"syncDelay": "5m"
},
"tags": [
"production"
],
"timeWindow": {
"duration": "30d",
"type": "rolling"
},
"updatedAt": "2025-01-12T10:03:19.000Z",
"version": 2
}
],
"total": 1
}
Response examples (400)
{
"error": "Bad Request",
"message": "Invalid value 'foo' supplied to: includeOutdatedOnly",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "security_exception: unable to authenticate user for REST request [/api/observability/slos/_definitions]",
"statusCode": 401
}
Response examples (403)
{
"error": "Forbidden",
"message": "security_exception: action [slo_read] is unauthorized for user",
"statusCode": 403
}