runtime_snapshots
Kept copies of a paused sandbox's files, memory and processes, to start copies from. create(sandboxId, mode?, name?, retentionDays?): Keep a running or paused sandbox, also copied off its host: a running one is paused for the moment it takes and woken again. A sandbox with volumes cannot be snapshotted; an image, not a snapshot, is the way to preinstall dependencies. fork_unavailable means snapshots are switched off; do not retry it. list(cursor?, limit?, state?, name?, sandboxId?): Your snapshots, newest first, each as get gives it; sandboxId gives one sandbox's. Pass nextCursor back as cursor. get(id): Its state, shape, stored bytes and expiry. update(id, name?, labels?, ifLabels?): Replace the supplied labels or change the name; omitted fields stay unchanged. Null clears the name. Captured bytes and billing are unchanged. delete(id): Delete it and free its storage; sandboxes started from it keep running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| mode | No | memory (default) saves the whole machine; disk saves files for a fresh boot, without old processes. | |
| name | No | Your own handle for the resource. Letters, digits, dot, dash, underscore. | |
| limit | No | Page size, 1 to 100. | |
| state | No | ||
| action | Yes | ||
| cursor | No | ||
| labels | No | Your own key/value tags, at most 32. Filter lists with label=key:value. | |
| ifLabels | No | Only update if the current complete labels equal these; otherwise snapshot_metadata_changed. Omit for an unconditional update. | |
| sandboxId | No | ||
| retentionDays | No | Days to keep it, 1 to 365, never past a year from when it was taken. Omit it to keep the snapshot while your account has credit, up to a year from when it was taken (seven days without credit). | |
| 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. |