Execute command in pod
Clusters
Execute command in pod
Runs a command in a pod container and returns stdout, stderr, and exit code. Non-interactive (no TTY, no stdin). Timeout: 30 seconds.
POST
Execute command in pod
Documentation Index
Fetch the complete documentation index at: https://docs.cnap.tech/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens
Path Parameters
Cluster ID
Body
application/json
Kubernetes namespace
Required string length:
1 - 253Example:
"default"
Pod name
Required string length:
1 - 253Example:
"postgres-0"
Container name within the pod
Required string length:
1 - 253Example:
"postgresql"
Command and arguments
Minimum array length:
1Example:
["cat", "/etc/hostname"]