---
title: "Get virtual machine"
method: GET
path: "/v1/restore/virt/{virt_id}"
tags: ["Restores (Virtual Machine)"]
---

# Get virtual machine

`GET /v1/restore/virt/{virt_id}`

## Path parameters

- `virt_id` string, required — ID of a virtual machine

## Response `200`

OK

- VirtualMachine — Virtual machine object that represents a virtual machine that has been created from a snapshot.
  - `agent_id` string, required — ID of an agent
  - `cpu_count` integer, nullable, required — Number of CPUs
  - `created_at` string, date-time, required — Creation timestamp
  - `device_id` string, required — ID of a device
  - `disk_bus` 'sata' | 'virtio', required — Disk bus of the virtual machine
  - `expires_at` string, date-time — Expiration timestamp
  - `force_boot_menu` boolean — Whether to force the VM to boot to the menu
  - `ip_address` string — IP address
  - `mac_address` string, required — MAC address
  - `memory_in_mb` integer, nullable, required — Memory in MB
  - `network_model` 'hypervisor_default' | 'e1000' | 'rtl8139' | 'virtio', required — Network model of the virtual machine
  - `network_source` string — ID of an network
  - `network_type` 'network-none' | 'network-nat-shared' | 'network-nat-isolated' | 'network-hostonly' | 'bridge' | 'network-id' — Network type of the virtual machine. If this field is not present, the virtual machine does not have networking.
  - `purpose` 'test' | 'disaster', required — Purpose for creating the virtual machine or file restore. If this is set to disaster, Slide Support will recieve a notification that you are in a disaster. File restores not created by the slide box for file system verification will have this field set to disaster.
  - `rdp_endpoint` string — RDP endpoint
  - `snapshot_id` string, required — ID of a snapshot
  - `state` 'running' | 'stopped' | 'paused', required — State of the virtual machine
  - `virt_id` string, required — ID of a virtual machine
  - `vnc` VNC[], required — List of VNC connection info
    - `host` string — Host of the VNC server
    - `port` integer — Port of the VNC server
    - `type` 'local' | 'cloud', required — Type of the location
    - `websocket_uri` string — Websocket URI of the VNC server
  - `vnc_enabled` boolean, nullable, required — Whether VNC access is enabled
  - `vnc_password` string, password, required — VNC password

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/slide/apis/slide-api.md) · [All operations](https://skmtc.net/slide/apis/slide-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slide/slide-api/versions/c63e4b604dd1/schema)
