Pular para o conteúdo principal
GET
/
remediations
List Remediations
curl --request GET \
  --url http://{host}:{port}/{basePath}/remediations \
  --header 'Authorization: <api-key>'
{
  "apiVersion": "v1",
  "kind": "RemediationPlanList",
  "metadata": {
    "totalCount": 3,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "remediation-inc-20260319-001-1",
      "namespace": "production",
      "issueRef": "INC-20260319-001",
      "attempt": 1,
      "strategy": "Runbook: oomkill-standard (Tier 1 match: oom_kill + critical + Deployment)",
      "state": "Completed",
      "startedAt": "2026-03-19T14:35:00Z",
      "completedAt": "2026-03-19T14:38:00Z",
      "result": "All actions completed successfully. Resource healthy after verification.",
      "agenticMode": false,
      "agenticStepCount": 0,
      "actions": [
        {"type": "AdjustResources", "params": {"memoryLimit": "1Gi"}},
        {"type": "RestartDeployment", "params": {"deployment": "payment-service"}}
      ],
      "creationTimestamp": "2026-03-19T14:34:00Z"
    },
    {
      "name": "remediation-inc-20260319-002-1",
      "namespace": "production",
      "issueRef": "INC-20260319-002",
      "attempt": 1,
      "strategy": "Agentic mode: no matching runbook found",
      "state": "Executing",
      "startedAt": "2026-03-19T15:10:00Z",
      "result": "",
      "agenticMode": true,
      "agenticStepCount": 3,
      "actions": [],
      "creationTimestamp": "2026-03-19T15:09:00Z"
    }
  ]
}
namespace
string
Filtrar por namespace Kubernetes
state
string
Filtrar por estado: Pending, Executing, Verifying, Completed, Failed, RolledBack
issue
string
Filtrar por nome do incidente (ex.: INC-20260319-001)
page
integer
padrão:"1"
Número da página para paginação
pageSize
integer
padrão:"20"
Itens por página (máximo 100)

Modos de Remediação

Cada plano opera em um dos dois modos:
  • Modo Runbook (agenticMode: false): Executa uma sequência pré-definida de ações a partir de um runbook correspondente
  • Modo Agêntico (agenticMode: true): Remediação passo a passo orientada por IA, onde o LLM propõe ações, observa resultados e decide os próximos passos
{
  "apiVersion": "v1",
  "kind": "RemediationPlanList",
  "metadata": {
    "totalCount": 3,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "remediation-inc-20260319-001-1",
      "namespace": "production",
      "issueRef": "INC-20260319-001",
      "attempt": 1,
      "strategy": "Runbook: oomkill-standard (Tier 1 match: oom_kill + critical + Deployment)",
      "state": "Completed",
      "startedAt": "2026-03-19T14:35:00Z",
      "completedAt": "2026-03-19T14:38:00Z",
      "result": "All actions completed successfully. Resource healthy after verification.",
      "agenticMode": false,
      "agenticStepCount": 0,
      "actions": [
        {"type": "AdjustResources", "params": {"memoryLimit": "1Gi"}},
        {"type": "RestartDeployment", "params": {"deployment": "payment-service"}}
      ],
      "creationTimestamp": "2026-03-19T14:34:00Z"
    },
    {
      "name": "remediation-inc-20260319-002-1",
      "namespace": "production",
      "issueRef": "INC-20260319-002",
      "attempt": 1,
      "strategy": "Agentic mode: no matching runbook found",
      "state": "Executing",
      "startedAt": "2026-03-19T15:10:00Z",
      "result": "",
      "agenticMode": true,
      "agenticStepCount": 3,
      "actions": [],
      "creationTimestamp": "2026-03-19T15:09:00Z"
    }
  ]
}

Autorizações

Authorization
string
header
obrigatório

Bearer token issued by the operator. Format: Authorization: Bearer <token>.

Parâmetros de consulta

namespace
string

Filter by Kubernetes namespace.

state
enum<string>

Filter by execution state.

Opções disponíveis:
Pending,
Executing,
Verifying,
Completed,
Failed,
RolledBack
issue
string

Filter by incident name.

page
integer
padrão:1

Page number.

pageSize
integer
padrão:20

Items per page (max 100).

Intervalo obrigatório: x <= 100

Resposta

Paginated list of remediation plans

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"RemediationPlanList"

metadata
object
items
object[]