get_secrets
Fetch Secret metadata. Returns: name, namespace, type, the list of data key names (NOT their decoded values), data key count, age, and for service-account token secrets only the bound ServiceAccount and a boolean indicating whether the token field is populated. Decoded secret values are never returned. A list needs namespace or all_namespaces=true and carries total, returned, truncated and scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Specific Secret name to fetch metadata for. | |
| namespace | No | Kubernetes namespace to list. A list needs either this or all_namespaces=true; a named read (name) needs neither. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| all_namespaces | No | Set true to list every namespace on the cluster deliberately. Omit it and pass namespace to list one namespace; a list with neither is refused (error_code scope_required). |