Declaw icon

Declaw

Run code securely in Firecracker microVM sandboxes — create sandboxes, execute commands, manage files

Snapshot → Create

AI-generated

Summary

Creates a snapshot of an existing Declaw sandbox's current state by sending a POST to the Declaw API's snapshot endpoint for the given sandbox ID.

Inputs

  • sandboxId (required) — ID of the sandbox to snapshot (e.g. sbx-a1b2c3d4). It is inserted into the request path /sandboxes/{sandboxId}/snapshot.

Output shape

One JSON item per input item, containing the Declaw API's response to the snapshot request.

The source doesn't show the response fields. It likely includes a snapshot identifier, which you could pass to the Restore or Delete operations, but this is not confirmed. If the request fails, the node throws an error, or emits an item with an error message when Continue On Fail is enabled. The snapshot has no name or other options.

Examples

Example 1: Checkpoint a sandbox before running risky commands so it can be rolled back.

Resource: Snapshot, Operation: Create, Sandbox ID: {{ $json.sandbox_id }} from a previous Sandbox Create node.

Example 2: Snapshot a known long-lived sandbox on a schedule.

Resource: Snapshot, Operation: Create, Sandbox ID: sbx-a1b2c3d4, triggered by a Schedule Trigger.

Links

Discussion