Pular para o conteúdo principal
GET
List Policies
string
obrigatório
approval, notification, escalation ou sla
string
Filtrar por namespace. Vazio lista todos os namespaces.
integer
padrão:"1"
Número da página
integer
padrão:"20"
Itens por página (máximo 100)
As políticas são escritas via kubectl ou GitOps, onde são revisadas; a API e a aba Políticas do dashboard só as leem. Cada item carrega o spec e o status do CRD sem alteração, então os campos seguem as definições de ApprovalPolicy, NotificationPolicy e EscalationPolicy e IncidentSLA. Role mínima: viewer. Qualquer método diferente de GET retorna 405; um kind desconhecido retorna 404. Os itens não são filtrados por status nem ordenados.

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

Parâmetros de consulta

namespace
string

Filter by namespace; empty lists every namespace.

page
integer
padrão:1

Page number (1-based). Invalid values fall back to 1.

Intervalo obrigatório: x >= 1
pageSize
integer
padrão:20

Items per page. Values above 100 are capped at 100.

Intervalo obrigatório: 1 <= x <= 100

Resposta

Policy list (kind ApprovalPolicyList, NotificationPolicyList, EscalationPolicyList or IncidentSLAList)

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"ApprovalPolicyList"

metadata
object
items
object[]