curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/slos \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/slos"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/slos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/slos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/slos"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/slos")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/slos")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "ServiceLevelObjectiveList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "payment-availability",
"namespace": "production",
"service": "payment-service",
"sli": "availability",
"target": 99.9,
"window": "30d",
"currentValue": 99.95,
"errorBudgetTotal": 0.001,
"errorBudgetUsed": 0.0005,
"errorBudgetRemaining": 50,
"burnRate1h": 0.8,
"burnRate6h": 0.9,
"burnRate24h": 1.1,
"burnRate72h": 1,
"activeAlerts": 0,
"state": "Healthy",
"creationTimestamp": "2026-01-15T10:00:00Z"
},
{
"name": "api-gateway-latency",
"namespace": "production",
"service": "api-gateway",
"sli": "latency",
"target": 99,
"window": "7d",
"currentValue": 99.6,
"errorBudgetTotal": 0.01,
"errorBudgetUsed": 0.004,
"errorBudgetRemaining": 60,
"burnRate1h": 0.5,
"burnRate6h": 0.6,
"burnRate24h": 0.7,
"burnRate72h": 0.8,
"activeAlerts": 0,
"state": "Healthy",
"creationTimestamp": "2026-02-01T09:00:00Z"
}
]
}
List SLOs
Returns the list of ServiceLevelObjective resources
curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/slos \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/slos"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/slos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/slos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/slos"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/slos")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/slos")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "ServiceLevelObjectiveList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "payment-availability",
"namespace": "production",
"service": "payment-service",
"sli": "availability",
"target": 99.9,
"window": "30d",
"currentValue": 99.95,
"errorBudgetTotal": 0.001,
"errorBudgetUsed": 0.0005,
"errorBudgetRemaining": 50,
"burnRate1h": 0.8,
"burnRate6h": 0.9,
"burnRate24h": 1.1,
"burnRate72h": 1,
"activeAlerts": 0,
"state": "Healthy",
"creationTimestamp": "2026-01-15T10:00:00Z"
},
{
"name": "api-gateway-latency",
"namespace": "production",
"service": "api-gateway",
"sli": "latency",
"target": 99,
"window": "7d",
"currentValue": 99.6,
"errorBudgetTotal": 0.01,
"errorBudgetUsed": 0.004,
"errorBudgetRemaining": 60,
"burnRate1h": 0.5,
"burnRate6h": 0.6,
"burnRate24h": 0.7,
"burnRate72h": 0.8,
"activeAlerts": 0,
"state": "Healthy",
"creationTimestamp": "2026-02-01T09:00:00Z"
}
]
}
viewer. There are no service or status filters: the list is filtered only by namespace and paginated.
Field notes:
sliisspec.indicator.type(availability,latency,error_rateorthroughput);targetandwindowcome fromspec.target.percentageandspec.target.window.currentValueanderrorBudgetRemainingare converted to percent (the CRD stores them as fractions);errorBudgetTotalis returned as stored, a fraction (1 - target/100).errorBudgetUsedis the used part of the budget in the same unit aserrorBudgetTotal(errorBudgetTotal × status.errorBudgetConsumedPercentage / 100).burnRate1h,burnRate6h,burnRate24handburnRate72hare the controller’s multi-window burn rates (1.0= consuming the budget exactly on schedule);activeAlertsis the number of burn-rate alerts firing.stateis derived from the status the controller writes:Breachedwhen the target is missed or the error budget is gone,AtRiskwhile a burn-rate alert fires,Healthyotherwise. It is omitted before the controller’s first calculation.
{
"apiVersion": "v1",
"kind": "ServiceLevelObjectiveList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "payment-availability",
"namespace": "production",
"service": "payment-service",
"sli": "availability",
"target": 99.9,
"window": "30d",
"currentValue": 99.95,
"errorBudgetTotal": 0.001,
"errorBudgetUsed": 0.0005,
"errorBudgetRemaining": 50,
"burnRate1h": 0.8,
"burnRate6h": 0.9,
"burnRate24h": 1.1,
"burnRate72h": 1,
"activeAlerts": 0,
"state": "Healthy",
"creationTimestamp": "2026-01-15T10:00:00Z"
},
{
"name": "api-gateway-latency",
"namespace": "production",
"service": "api-gateway",
"sli": "latency",
"target": 99,
"window": "7d",
"currentValue": 99.6,
"errorBudgetTotal": 0.01,
"errorBudgetUsed": 0.004,
"errorBudgetRemaining": 60,
"burnRate1h": 0.5,
"burnRate6h": 0.6,
"burnRate24h": 0.7,
"burnRate72h": 0.8,
"activeAlerts": 0,
"state": "Healthy",
"creationTimestamp": "2026-02-01T09:00:00Z"
}
]
}
Authorizations
API key sent in the X-API-Key header. Keys are read from the Secret chatcli-operator-secrets, key api-keys (fallback: ConfigMap chatcli-operator-config, key api-keys) in the operator namespace, as a YAML list of {key, role, name, description} (name is the identity recorded on approval decisions); the operator chart creates it only with apiKeys.create: true. Roles: viewer < operator < admin — any other role string is denied everywhere. Changes are picked up within about 30 seconds; deleting both the Secret and the ConfigMap revokes every key. With no keys configured every /api/ call returns 401, unless CHATCLI_OPERATOR_DEV_MODE=true, which grants admin without a key (development only).
Query Parameters
Kubernetes namespace. Empty means all namespaces.
Page number (1-based). Invalid values fall back to 1.
x >= 1Items per page. Values above 100 are capped at 100.
1 <= x <= 100