Skip to main content
POST
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
kubernetes
/
chat
Stream chat responses for cluster troubleshooting
import requests

url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat"

payload = {
    "query": "<string>",
    "addon_name": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Path Parameters

cluster_id
string<uuid4>
required

Body

application/json
query
string
required
namespace
string | null
addon_name
string | null
resource_name
string | null
resource_type
string | null
include_logs
boolean
default:true
max_log_lines
integer
default:50
current_values
Current Values · object
default_values
Default Values · object
is_config_page
boolean
default:false
conversation_history
ConversationMessage · object[] | null
page_context
PageContext · object
draft_id
string | null
chart_name
string | null
chart_version
string | null
repository_name
string | null
rag_context
RAGContext · object
conversation_id
string | null

Response

Streaming chat response