List Agent Sandboxes
client.SandboxVMs.List(ctx, query) (*Cursor[SandboxVM], error)
GET/v1/sandbox_vms
List Agent Sandboxes
package main
import (
"context"
"fmt"
"github.com/nirvana-labs/nirvana-go"
"github.com/nirvana-labs/nirvana-go/option"
"github.com/nirvana-labs/nirvana-go/sandbox_vms"
)
func main() {
client := nirvana.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.SandboxVMs.List(context.TODO(), sandbox_vms.SandboxVMListParams{
ProjectID: "project_id",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"endpoint_hostname": "0123456789ab.sandboxes.example.com",
"image_version": "2026.11.1",
"instance_type": "n1-highcpu-2",
"name": "my-sandboxes",
"opensandbox_version": "1.2.0",
"paused_at": "2025-01-01T00:00:00Z",
"power_state": "running",
"powers_off_at": "2025-01-01T01:00:00Z",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"region": "us-sva-2",
"status": "ready",
"tags": [
"production",
"agents"
],
"updated_at": "2025-01-01T00:00:00Z",
"vpc_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"pagination": {
"next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
"previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
"total_count": 125
}
}Returns Examples
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"endpoint_hostname": "0123456789ab.sandboxes.example.com",
"image_version": "2026.11.1",
"instance_type": "n1-highcpu-2",
"name": "my-sandboxes",
"opensandbox_version": "1.2.0",
"paused_at": "2025-01-01T00:00:00Z",
"power_state": "running",
"powers_off_at": "2025-01-01T01:00:00Z",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"region": "us-sva-2",
"status": "ready",
"tags": [
"production",
"agents"
],
"updated_at": "2025-01-01T00:00:00Z",
"vpc_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"pagination": {
"next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
"previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
"total_count": 125
}
}