maqpna session list
List sessions, filtered by namespace, agent, phase or user
Synopsis#
maqpna session list [-n NS | -A] [--agent A] [--phase P] [--user U]Description#
From the help of maqpna session:
Sessions are AgentSession objects: start creates one, the operator provisions its sandbox and token. describe merges the object, its sandbox and pods with the gateway's view (cost, taint, pending approvals). exec, files and liveview go through the gateway session API and are governed and audited like any tool call (scope tools:maqpna-exec, admin role).
exec exits with the remote command's exit code. wait exits 1 on timeout or when the session fails.
Flags#
| Flag | Type | Description | Default |
|---|---|---|---|
-A, --all-namespaces | switch | all namespaces | none |
--agent | string | only sessions of this agent | none |
-n, --namespace | string | namespace | default |
--phase | string | only sessions in this phase | none |
--user | string | only sessions on behalf of this user | none |
The global flags (--context, -o, --no-color, ...) work with every command.
Examples#
maqpna session list -n team-aWhat happens when you run it#
- Prints a table by default;
-o jsonor-o yamlprint the data, and--jq EXPRfilters the JSON.
Exit codes#
| Code | Meaning |
|---|---|
0 | success |
1 | error (the message says what failed, with a hint when there is one) |
2 | usage error: unknown flag, missing argument or bad value; the synopsis is printed |
3 | a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command) |
Related commands#
Terminal demo#
This command needs a Kubernetes cluster with MAQPNA installed, so the recording shows its help. Try it against a cluster from Install.