> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Kubernetes SDK

> Reference for the Tracecat Kubernetes SDK integration: registered actions, required secrets, expected inputs, and example workflow usage.

## Call API

Action ID: `tools.kubernetes_sdk.call_api`

Instantiate an isolated Kubernetes SDK client and call an API method.

Reference: [https://github.com/kubernetes-client/python](https://github.com/kubernetes-client/python)

### Secrets

Required secrets:

* `kubernetes`: required values `KUBECONFIG`; optional values `KUBECONFIG_CONTEXT`.

### Input fields

<ParamField path="api_class" type="string" required>
  Kubernetes API class, e.g. `CoreV1Api`.
</ParamField>

<ParamField path="method_name" type="string" required>
  Kubernetes API method, e.g. `list_namespaced_pod`.
</ParamField>

<ParamField path="params" type="object | null">
  Parameters for the Kubernetes API method.

  Default: `null`.
</ParamField>
