Skip to main content
GET
Get Approval
string
obrigatório
Nome da solicitação de aprovação (ex.: approval-payment-service-oom-kill-1773933600-plan-1)
string
Namespace do Kubernetes. Se omitido, todos os namespaces são pesquisados e a primeira solicitação com esse nome é retornada.
spec e status trazem o mesmo item plano de aprovação descrito em Listar Aprovações; resourceMeta traz os metadados do Kubernetes. O item inclui requiredApprovers e as decisions registradas. O item também traz as annotations da solicitação, onde fica a previsão de blast radius (platform.chatcli.io/blast-radius, platform.chatcli.io/blast-risk-level). As evidências da IA e timeoutMinutes não são expostas aqui — use kubectl get approvalrequest <name> -o yaml.

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

ApprovalRequest name.

Exemplo:

"payment-oom-plan-1-approval"

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

Approval details

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"ApprovalRequest"

spec
object
status
object

The same approval object as spec.

resourceMeta
object