Resume Agent Sandbox
client.sandboxVMs.resume(stringsandboxVMID, RequestOptionsoptions?): Operation { id, created_at, details, 6 more }
POST/v1/sandbox_vms/{sandbox_vm_id}/resume
Resume a paused or powered-off Agent Sandbox, restarting its sandboxes. A resume sent while another change runs waits for it, and resuming a running Agent Sandbox changes nothing. Pausing doesn’t free quota and resuming doesn’t use any: a paused Agent Sandbox still counts toward the sandbox quota’s vms, and Agent Sandboxes don’t count toward its vcpu or memory_gb. A billing block returns 402.
Resume Agent Sandbox
import NirvanaLabs from '@nirvana-labs/nirvana';
const client = new NirvanaLabs({
apiKey: process.env['NIRVANA_LABS_API_KEY'], // This is the default and can be omitted
});
const operation = await client.sandboxVMs.resume('sandbox_vm_id');
console.log(operation.id);{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"details": {
"changes": {
"foo": {
"from": "string",
"to": "string"
}
}
},
"kind": "vm",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"type": "create",
"updated_at": "2025-01-01T00:00:00Z"
}Returns Examples
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"details": {
"changes": {
"foo": {
"from": "string",
"to": "string"
}
}
},
"kind": "vm",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"resource_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"type": "create",
"updated_at": "2025-01-01T00:00:00Z"
}