import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const devboxSnapshotAsyncStatusView = await client.devboxes.diskSnapshots.queryStatus('id');
console.log(devboxSnapshotAsyncStatusView.status);{
"status": "in_progress",
"snapshot": {
"id": "<string>",
"create_time_ms": 123,
"metadata": {},
"source_devbox_id": "<string>",
"name": "<string>",
"source_blueprint_id": "<string>",
"commit_message": "<string>",
"size_bytes": 123
},
"error_message": "<string>"
}Get the current status of an asynchronous disk snapshot operation, including whether it is still in progress and any error messages if it failed.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const devboxSnapshotAsyncStatusView = await client.devboxes.diskSnapshots.queryStatus('id');
console.log(devboxSnapshotAsyncStatusView.status);{
"status": "in_progress",
"snapshot": {
"id": "<string>",
"create_time_ms": 123,
"metadata": {},
"source_devbox_id": "<string>",
"name": "<string>",
"source_blueprint_id": "<string>",
"commit_message": "<string>",
"size_bytes": 123
},
"error_message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Snapshot ID.
Snapshot status retrieved successfully.
Was this page helpful?