curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/remediations \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/remediations"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/remediations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/remediations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/remediations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/remediations")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/remediations")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "RemediationPlanList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "payment-service-oom-kill-1773933600-plan-1",
"namespace": "production",
"issueRef": "payment-service-oom-kill-1773933600",
"attempt": 1,
"strategy": "Attempt 1 via runbook 'oomkill-standard': Raise the memory limit and restart the Deployment",
"state": "Completed",
"startedAt": "2026-03-19T15:24:00Z",
"completedAt": "2026-03-19T15:27:00Z",
"result": "All actions completed successfully. Resource healthy after verification.",
"agenticMode": false,
"agenticStepCount": 0,
"actions": [
{
"type": "AdjustResources",
"params": {
"memory_limit": "1Gi"
}
},
{
"type": "RestartDeployment"
}
],
"creationTimestamp": "2026-03-19T15:23:00Z"
},
{
"name": "checkout-api-error-rate-1773932940-plan-1",
"namespace": "production",
"issueRef": "checkout-api-error-rate-1773932940",
"attempt": 1,
"strategy": "Agentic AI-driven remediation",
"state": "Executing",
"startedAt": "2026-03-19T15:10:00Z",
"agenticMode": true,
"agenticStepCount": 3,
"creationTimestamp": "2026-03-19T15:09:00Z"
}
]
}
Listar Remediações
Retorna todos os planos de remediação com estado de execução, ações e detalhes do modo agêntico
curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/remediations \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/remediations"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/remediations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/remediations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/remediations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/remediations")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/remediations")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "RemediationPlanList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "payment-service-oom-kill-1773933600-plan-1",
"namespace": "production",
"issueRef": "payment-service-oom-kill-1773933600",
"attempt": 1,
"strategy": "Attempt 1 via runbook 'oomkill-standard': Raise the memory limit and restart the Deployment",
"state": "Completed",
"startedAt": "2026-03-19T15:24:00Z",
"completedAt": "2026-03-19T15:27:00Z",
"result": "All actions completed successfully. Resource healthy after verification.",
"agenticMode": false,
"agenticStepCount": 0,
"actions": [
{
"type": "AdjustResources",
"params": {
"memory_limit": "1Gi"
}
},
{
"type": "RestartDeployment"
}
],
"creationTimestamp": "2026-03-19T15:23:00Z"
},
{
"name": "checkout-api-error-rate-1773932940-plan-1",
"namespace": "production",
"issueRef": "checkout-api-error-rate-1773932940",
"attempt": 1,
"strategy": "Agentic AI-driven remediation",
"state": "Executing",
"startedAt": "2026-03-19T15:10:00Z",
"agenticMode": true,
"agenticStepCount": 3,
"creationTimestamp": "2026-03-19T15:09:00Z"
}
]
}
Pending, WaitingApproval, Executing, Verifying, Completed, Failed, RolledBackpayment-service-oom-kill-1773933600)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
<issue>-plan-<tentativa>. Campos opcionais vazios (result, actions, startedAt, completedAt) são omitidos.
{
"apiVersion": "v1",
"kind": "RemediationPlanList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "payment-service-oom-kill-1773933600-plan-1",
"namespace": "production",
"issueRef": "payment-service-oom-kill-1773933600",
"attempt": 1,
"strategy": "Attempt 1 via runbook 'oomkill-standard': Raise the memory limit and restart the Deployment",
"state": "Completed",
"startedAt": "2026-03-19T15:24:00Z",
"completedAt": "2026-03-19T15:27:00Z",
"result": "All actions completed successfully. Resource healthy after verification.",
"agenticMode": false,
"agenticStepCount": 0,
"actions": [
{
"type": "AdjustResources",
"params": {
"memory_limit": "1Gi"
}
},
{
"type": "RestartDeployment"
}
],
"creationTimestamp": "2026-03-19T15:23:00Z"
},
{
"name": "checkout-api-error-rate-1773932940-plan-1",
"namespace": "production",
"issueRef": "checkout-api-error-rate-1773932940",
"attempt": 1,
"strategy": "Agentic AI-driven remediation",
"state": "Executing",
"startedAt": "2026-03-19T15:10:00Z",
"agenticMode": true,
"agenticStepCount": 3,
"creationTimestamp": "2026-03-19T15:09:00Z"
}
]
}
Autorizações
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 consulta
Kubernetes namespace. Empty means all namespaces.
Case-insensitive match on status.state.
Pending, WaitingApproval, Executing, Verifying, Completed, Failed, RolledBack Exact match on spec.issueRef.name.
Page number (1-based). Invalid values fall back to 1.
x >= 1Items per page. Values above 100 are capped at 100.
1 <= x <= 100