List instances
/instances
List instances
Returns
id: string
Auto-generated unique identifier (CUID2 format)
created_at: string
Creation timestamp (RFC3339)
formatdate-time
image: string
OCI image reference
name: string
Human-readable name
env: optional map[string]
Environment variables
has_snapshot: optional boolean
Whether a snapshot exists for this instance
hotplug_size: optional string
Hotplug memory size (human-readable)
overlay_size: optional string
Writable overlay disk size (human-readable)
size: optional string
Base memory size (human-readable)
started_at: optional string
Start timestamp (RFC3339)
formatdate-time
state_error: optional string
Error message if state couldn't be determined (only set when state is Unknown)
stopped_at: optional string
Stop timestamp (RFC3339)
formatdate-time
vcpus: optional number
Number of virtual CPUs
List instances
curl http://localhost:8080/instances \
-H "Authorization: Bearer $HYPEMAN_API_KEY"
[
{
"id": "tz4a98xxat96iws9zmbrgj3a",
"created_at": "2025-01-15T10:30:00Z",
"image": "docker.io/library/alpine:latest",
"name": "my-workload-1",
"state": "Created",
"env": {
"foo": "string"
},
"has_snapshot": false,
"hotplug_size": "2GB",
"network": {
"enabled": true,
"ip": "192.168.100.10",
"mac": "02:00:00:ab:cd:ef",
"name": "default"
},
"overlay_size": "10GB",
"size": "2GB",
"started_at": "2025-01-15T10:30:05Z",
"state_error": "failed to query VMM: connection refused",
"stopped_at": "2025-01-15T12:30:00Z",
"vcpus": 2,
"volumes": [
{
"mount_path": "/mnt/data",
"volume_id": "vol-abc123",
"overlay": true,
"overlay_size": "1GB",
"readonly": true
}
]
}
]
Returns Examples
[
{
"id": "tz4a98xxat96iws9zmbrgj3a",
"created_at": "2025-01-15T10:30:00Z",
"image": "docker.io/library/alpine:latest",
"name": "my-workload-1",
"state": "Created",
"env": {
"foo": "string"
},
"has_snapshot": false,
"hotplug_size": "2GB",
"network": {
"enabled": true,
"ip": "192.168.100.10",
"mac": "02:00:00:ab:cd:ef",
"name": "default"
},
"overlay_size": "10GB",
"size": "2GB",
"started_at": "2025-01-15T10:30:05Z",
"state_error": "failed to query VMM: connection refused",
"stopped_at": "2025-01-15T12:30:00Z",
"vcpus": 2,
"volumes": [
{
"mount_path": "/mnt/data",
"volume_id": "vol-abc123",
"overlay": true,
"overlay_size": "1GB",
"readonly": true
}
]
}
]