v2
latestOpenAPI 3.0.02026-08-0688139156.5 KBRestores (Virtual Machine)
Update virtual machine
patch/v1/restore/virt/{virt_id}
Path parameters
virt_idstring required
ID of a virtual machine
Example:virt_0123456789ab
Request body
Example request
{
"cpu_count": 2,
"expires_at": "2024-08-23T01:25:08Z",
"memory_in_mb": 4096,
"network_model": "virtio",
"network_source": "net_012345",
"network_type": "bridge",
"purpose": "disaster",
"state": "running"
}Response
Accepted
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"
}
]
}