Pular para o conteúdo principal
GET
Get Policy
string
obrigatório
approval, notification, escalation ou sla
string
obrigatório
Nome da política
string
Namespace da política. Se omitido, todos os namespaces são pesquisados e a primeira política com esse nome é retornada.
Role mínima: viewer. Somente leitura: qualquer método diferente de GET retorna 405. spec e status são os campos do CRD sem alteração; resourceMeta traz nome, namespace, UID, horário de criação, labels e annotations.

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

kind
enum<string>
obrigatório

approval, notification, escalation or sla.

Opções disponíveis:
approval,
notification,
escalation,
sla
name
string
obrigatório

Policy name.

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

Policy

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"ApprovalPolicy"

spec
object
status
object
resourceMeta
object