POST
/
v1
/
devboxes
/
{id}
/
snapshot_disk
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const devboxSnapshotView = await client.devboxes.snapshotDisk('id');

  console.log(devboxSnapshotView.id);
}

main();
{
  "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

200
application/json
Snapshot created 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.