StaticlistList all snapshots, optionally filtered by devbox ID or metadata.
The Runloop client instance
Optionalparams: DevboxListDiskSnapshotsParamsOptional filter parameters
Optionaloptions: RequestOptions<unknown>Request options
Array of Snapshot instances
Get the complete snapshot data from the API.
Optionaloptions: RequestOptions<unknown>Request options
The snapshot data
Update the snapshot's name and/or metadata. This performs a complete replacement, not a patch.
Optionalparams: DiskSnapshotUpdateParamsNew name and/or metadata
Optionaloptions: RequestOptions<unknown>Request options
Promise that resolves when the update is complete
Delete this snapshot.
Optionaloptions: RequestOptions<unknown>Request options
The deletion result
Query the status of an asynchronous snapshot operation. Useful when the snapshot was created with snapshotDiskAsync().
Optionaloptions: RequestOptions<unknown>Request options
Async status information
Wait for the snapshot to be completed.
Optionaloptions: RequestOptions<unknown> & {Request options with optional polling configuration
Snapshot data
Create a new devbox from this snapshot. This is a convenience method that calls Devbox.create() with the snapshot ID and any additional parameters you want to layer on top.
Optionalparams: Omit<DevboxCreateParams, "blueprint_id" | "blueprint_name" | "snapshot_id">Additional devbox creation parameters (optional)
Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<DevboxView>> }Request options with optional polling configuration
A new Devbox instance created from this snapshot
Object-oriented interface for working with Disk Snapshots.
Remarks
Overview
The
Snapshotclass provides a high-level API for managing disk snapshots of devboxes. Snapshots capture the complete state of a devbox's disk and can be used to restore devboxes to a previous state or create new devboxes from saved states.Quickstart
Snapshots are typically created from devboxes: