Create Agent Sandbox
POST/v1/sandbox_vms
Create an Agent Sandbox to run sandboxes on. An Agent Sandbox can be paused and resumed, and is billed for compute only while it is running.
Create Agent Sandbox
curl https://api.nirvanalabs.io/v1/sandbox_vms \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $NIRVANA_LABS_API_KEY" \
-d '{
"name": "my-sandboxes",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"region": "us-sva-2",
"instance_type": "n1-highcpu-2",
"tags": [
"production",
"agents"
],
"vpc_id": "123e4567-e89b-12d3-a456-426614174000"
}'{
"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"
}