Skip to main content
PUT
string
obrigatório
Nome do runbook (ex.: oomkill-standard)
string
padrão:"default"
Namespace do runbook (outros namespaces não são pesquisados)
É uma substituição, não um patch: description, trigger e steps são sempre sobrescritos com o que você enviar (um campo omitido fica vazio, e um trigger vazio é rejeitado pelo CRD). Só maxAttempts (quando maior que 0) e labels (quando presente) são opcionais. name e namespace no corpo são ignorados.
string
Objetivo do runbook
object
obrigatório
Quando o runbook se aplica. Os três campos são obrigatórios no CRD.
object[]
obrigatório
Passos em ordem (substitui a lista inteira)
integer
padrão:"inalterado"
Novo número máximo de tentativas de remediação; ignorado quando 0 ou omitido
object
Substitui todos os labels quando informado; os labels atuais são mantidos quando omitido

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

Runbook name.

Exemplo:

"oom-standard"

Parâmetros de consulta

namespace
string
padrão:default

Namespace of the object. Defaults to default — pass it for objects in any other namespace.

Corpo

application/json
name
string
obrigatório

Required on create; ignored on update.

Exemplo:

"oom-standard"

namespace
string
padrão:default

Create only; ignored on update.

description
string
trigger
object
steps
object[]
maxAttempts
integer

Defaults to 3 on create; on update only values > 0 are applied.

labels
object

Resposta

Runbook updated

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"Runbook"

spec
object
resourceMeta
object