Skip to main content
POST
/
v1
/
devboxes
/
{id}
/
snapshot_disk_async
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

const devboxSnapshotView = await client.devboxes.snapshotDiskAsync('id');

console.log(devboxSnapshotView.id);
{
  "id": "<string>",
  "name": "<string>",
  "create_time_ms": 123,
  "metadata": {},
  "source_devbox_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The Devbox ID.

Body

application/json
name
string | null

(Optional) A user specified name to give the snapshot

metadata
object | null

(Optional) Metadata used to describe the snapshot

Response

Snapshot operation started successfully.

id
string
required

The unique identifier of the snapshot.

create_time_ms
integer
required

Creation time of the Snapshot (Unix timestamp milliseconds).

metadata
object
required

User defined metadata associated with the snapshot.

source_devbox_id
string
required

The source Devbox ID this snapshot was created from.

name
string | null

(Optional) The custom name of the snapshot.

I