describe_resource
Get detailed YAML/JSON for a Kubernetes resource. Provide name to fetch a single resource: a status summary (per-container restarts and last termination), then the body minus managedFields, shaped to fit (omitted names what was left out; section reads it); omit name to list the kind as summary rows (name, namespace and the kind's status fields) with total, returned, truncated and scope. A list of a namespaced kind needs namespace or all_namespaces=true; cluster-scoped kinds need neither. The full body of any listed object is one named read away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Resource kind (e.g., 'Pod', 'Deployment', 'Service'). | |
| name | No | Resource name. Omit to list all instances of the kind. | |
| section | No | Read one member whole by dotted path from omitted, e.g. spec.containers.NAME. Needs name. | |
| namespace | No | Kubernetes namespace. A named read needs it only for namespaced kinds; a list of a namespaced kind needs it or all_namespaces=true (cluster-scoped kinds need neither). | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| api_version | No | API version (e.g., 'v1', 'apps/v1'). Omit it for well-known kinds - the API group is resolved from the kind (Deployment -> apps/v1, StorageClass -> storage.k8s.io/v1). Pass it explicitly for CRDs and for a non-default version. | |
| all_namespaces | No | Set true to list the kind across every namespace deliberately. Read only when name is omitted; a list of a namespaced kind with neither namespace nor this flag is refused (error_code scope_required). |