podman_pod
The podman_pod domain has 8 actions. On the meta surface they are all reached through arcane_podman_pod; on the individual surface each one is its own tool; on the dynamic surface run them with arcane_execute_action and the canonical ID.
Summary
Section titled “Summary”| Action | Title | Kind |
|---|---|---|
podman_pod.create | Create pod | write |
podman_pod.delete | Remove pod | destructive |
podman_pod.get | Inspect pod | read |
podman_pod.lifecycle | Run pod lifecycle action | destructive |
podman_pod.list | List pods | read |
podman_pod.prune | Prune pods | destructive |
podman_pod.stats | Get pod stats | read |
podman_pod.top | List pod processes | read |
Actions
Section titled “Actions”podman_pod.create
Section titled “podman_pod.create”Create pod
- Kind: write
- Required parameters:
name - Meta tool:
arcane_podman_podwith"action": "create" - Individual tool:
arcane_podman_pod_create - Arcane route:
POST /api/environments/{id}/podman/pods - Operation ID:
create-podman-pod - Since: Arcane v2.17.0
- Usage: Creates an empty pod (name required, and it gets an infra container unless noInfra=true) to which containers are added later: hostname, labels, portMappings, networks or networkMode, DNS settings, shared namespaces, restartPolicy, resource limits and the infra container’s image/command. Nothing runs until podman_pod.lifecycle start. Returns the new id. For a pod with its containers in one step use podman.kube_play. Needs podman:pods.
- Related actions:
podman_pod.lifecycle,podman_pod.get,podman.kube_play
podman_pod.delete
Section titled “podman_pod.delete”Remove pod
- Kind: destructive — requires
confirm: true - Required parameters:
podId - Meta tool:
arcane_podman_podwith"action": "delete" - Individual tool:
arcane_podman_pod_delete - Arcane route:
DELETE /api/environments/{id}/podman/pods/{podId} - Operation ID:
delete-podman-pod - Since: Arcane v2.17.0
- Usage: Removes a pod and its containers (podId from podman_pod.list). A pod with running containers is refused unless force=true, which stops them first. Volumes are kept. Needs podman:pods.
- Related actions:
podman_pod.list,podman_pod.prune,podman.kube_down
podman_pod.get
Section titled “podman_pod.get”Inspect pod
- Kind: read
- Required parameters:
podId - Meta tool:
arcane_podman_podwith"action": "get" - Individual tool:
arcane_podman_pod_get - Arcane route:
GET /api/environments/{id}/podman/pods/{podId} - Operation ID:
get-podman-pod - Since: Arcane v2.17.0
- Usage: Inspects one pod (podId: name or ID from podman_pod.list): state, infra container and its config (ports, networks, DNS), shared namespaces, cgroup, resource limits, mounts and member containers. Not found fails with an error. Needs podman:read.
- Related actions:
podman_pod.list,podman_pod.top,podman_pod.stats,podman_pod.lifecycle
podman_pod.lifecycle
Section titled “podman_pod.lifecycle”Run pod lifecycle action
Start, stop, restart, pause, unpause, or kill a pod
- Kind: destructive — only when
action is kill; those calls requireconfirm: true, the others do not - Required parameters:
podId,action - Meta tool:
arcane_podman_podwith"action": "lifecycle" - Individual tool:
arcane_podman_pod_lifecycle - Arcane route:
POST /api/environments/{id}/podman/pods/{podId}/{action} - Operation ID:
podman-pod-action - Since: Arcane v2.17.0
- Usage: Runs one lifecycle action on every container of a pod (podId from podman_pod.list): action is start, stop, restart, pause, unpause or kill. timeout (seconds) bounds a stop before Podman kills, signal picks kill’s signal (default SIGKILL). Only kill needs confirm=true (it ends the processes with no chance to shut down, as container.kill), while start, stop, restart, pause and unpause run without it, as their container.* counterparts do. The pod and its containers stay either way (podman_pod.delete removes them), except containers created with —rm (autoRemove, or those of a quadlet .pod unit), which Podman removes when they stop, also through stop or restart here. Returns a message. Needs podman:pods.
- Related actions:
podman_pod.get,podman_pod.delete,podman_pod.top
podman_pod.list
Section titled “podman_pod.list”List pods
List Podman pods with their member containers
- Kind: read
- Required parameters: none
- Meta tool:
arcane_podman_podwith"action": "list" - Individual tool:
arcane_podman_pod_list - Arcane route:
GET /api/environments/{id}/podman/pods - Operation ID:
list-podman-pods - Since: Arcane v2.17.0
- Usage: A page of the environment’s Podman pods (id, name, status, created, infraId, labels, networks and member containers with their state). search matches name, ID, status or network. sort by name, status or created with order asc or desc. start and limit (default 20) page. Only on a Podman environment (podman.status), else 400. Needs podman:read.
- Related actions:
podman_pod.get,podman_pod.create,podman_pod.stats,podman.kube_play
podman_pod.prune
Section titled “podman_pod.prune”Prune pods
Remove every stopped pod
- Kind: destructive — requires
confirm: true - Required parameters: none
- Meta tool:
arcane_podman_podwith"action": "prune" - Individual tool:
arcane_podman_pod_prune - Arcane route:
POST /api/environments/{id}/podman/pods/prune - Operation ID:
prune-podman-pods - Since: Arcane v2.17.0
- Usage: Removes every stopped pod of the environment (pods whose containers all exited, killed ones included) and returns the removed pod IDs. Running pods are untouched. Needs podman:pods.
- Related actions:
podman_pod.list,podman_pod.delete
podman_pod.stats
Section titled “podman_pod.stats”Get pod stats
- Kind: read
- Required parameters: none
- Meta tool:
arcane_podman_podwith"action": "stats" - Individual tool:
arcane_podman_pod_stats - Arcane route:
GET /api/environments/{id}/podman/pods/stats - Operation ID:
get-podman-pod-stats - Since: Arcane v2.17.0
- Usage: One snapshot of CPU, memory, network, block I/O and PID usage per container of the pods named in names (names or IDs, empty means every pod), as
podman pod stats --no-stream, and values are Podman’s formatted strings. Needs podman:read. - Related actions:
podman_pod.top,podman_pod.list
podman_pod.top
Section titled “podman_pod.top”List pod processes
- Kind: read
- Required parameters:
podId - Meta tool:
arcane_podman_podwith"action": "top" - Individual tool:
arcane_podman_pod_top - Arcane route:
GET /api/environments/{id}/podman/pods/{podId}/top - Operation ID:
get-podman-pod-top - Since: Arcane v2.17.0
- Usage: The processes running in a pod’s containers (podId from podman_pod.list) as titles and processes rows, like
podman pod top, and psArgs passes ps format descriptors. Needs podman:read. - Related actions:
podman_pod.stats,podman_pod.get