runtime_sandboxes_manage
stop: end it and its compute charges, keeping its disk (billed as paused storage) for restart. delete: stop it, delete its disk and paused memory, revoke its previews and ports, and remove it from lists for good (its snapshots stay). pause: keep memory and disk, stop compute charges. wake: continue a paused one (seconds: its new time limit, if it has one; no_capacity means retry); a paused one with autoWake also wakes by itself on the next exec, file, terminal or preview request. extend: seconds more for one with a time limit (one without needs none). retention: days (1 to 365) a paused or stopped one is kept; null, the default, keeps it while your account has credit. persist: policy {persistent, maxTotalCostMicros?} keeps it running until stopped, never idle-paused. restart: start a stopped one from its disk. switch-image: move it to image, keeping only /workspace (its home), volumes, env, name and previews; processes restart and everything else on its disk is lost (snapshot first to keep everything); undone if anything fails. update: change name, labels, env (a value sets a variable, null removes it; values are never shown again), autoWake or idlePauseSeconds (0 never; otherwise 10 to 86400, counted from the last activity). Waits until done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| env | No | update: environment for every later command; a value sets a variable, null removes it. | |
| days | No | retention: days to keep a paused sandbox, or null to keep it while your account has credit. | |
| keep | No | switch-image: optional, only "workspace", the only thing a switch keeps; older clients send it. | |
| name | No | update: a new name, unique in the account. | |
| wait | No | Wait until the change is done (default). | |
| image | No | switch-image: the image to move to: id, name, name:tag or name@version. | |
| action | Yes | ||
| labels | No | Your own key/value tags, at most 32. Filter lists with label=key:value. | |
| policy | No | ||
| seconds | No | extend: move its time limit this many seconds later. wake: its new time limit, for a sandbox that has one. | |
| autoWake | No | update: whether a request wakes it when paused. | |
| idempotencyKey | No | Optional: left out, one is made and returned as idempotencyKey. Send it back only to retry this exact call after a temporary error. | |
| idlePauseSeconds | No | update: pause after this many idle seconds, 10 to 86400; 0 never. |