v2
latestOpenAPI 3.0.02026-08-0688139156.5 KBRestores (Virtual Machine)
Create virtual machine
post/v1/restore/virt
Request body
Example request
{
"cpu_count": 2,
"device_id": "d_0123456789ab",
"disk_bus": "virtio",
"memory_in_mb": 4096,
"network_model": "virtio",
"network_source": "net_012345",
"network_type": "bridge",
"passphrase": "Super Secret Passphrase",
"purpose": "disaster",
"snapshot_id": "s_0123456789ab"
}Response
Created
Example response
{
"agent_id": "a_0123456789ab",
"cpu_count": 2,
"created_at": "2024-08-23T01:25:08Z",
"device_id": "d_0123456789ab",
"disk_bus": "virtio",
"expires_at": "2024-08-23T01:25:08Z",
"memory_in_mb": 4096,
"network_model": "virtio",
"network_source": "net_012345",
"network_type": "bridge",
"purpose": "disaster",
"snapshot_id": "s_0123456789ab",
"state": "running",
"virt_id": "virt_0123456789ab",
"vnc": [
{
"host": "192.168.1.53",
"port": 12345,
"websocket_uri": "wss://example.com"
}
]
}