Skip to main content
GET
Get SLO
string
obrigatório
Nome do SLO (ex.: payment-availability)
string
Namespace do SLO. Se omitido, todos os namespaces são pesquisados e o primeiro SLO com esse nome é retornado.
Role mínima: viewer. spec e status trazem o mesmo objeto achatado (os campos descritos em Listar SLOs); o CRD bruto não é retornado. currentValue e errorBudgetRemaining são percentuais, errorBudgetTotal e errorBudgetUsed são frações. state (Healthy, AtRisk ou Breached) fica de fora antes do primeiro cálculo do controller.

Autorizações

X-API-Key
string
header
obrigatório

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).

Parâmetros de caminho

name
string
obrigatório

ServiceLevelObjective name.

Exemplo:

"payment-availability"

Parâmetros de consulta

namespace
string

Namespace of the object. When omitted, all namespaces are searched and the first object with this name is used.

Resposta

SLO details

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"ServiceLevelObjective"

spec
object
status
object
resourceMeta
object