---
title: "Get a simple Virtual Machine by RID or ID"
method: GET
path: "/vm/simple/:id"
tags: ["VM"]
---

# Get a simple Virtual Machine by RID or ID

`GET /vm/simple/:id`

Retrieve a simple virtual machine object by its RID or ID

## Path parameters

- `id` string, required

## Query parameters

- `type` 'rid' | 'id'

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalInterfacesServicesLibvirtSimpleList
  - `data` GithubComAlchemillahqSylveInternalInterfacesServicesLibvirtSimpleList
    - `cpuPinning` GithubComAlchemillahqSylveInternalDbModelsVmVMCPUPinning[]
      - `hostCpu` integer[]
      - `hostSocket` integer
      - `id` integer
      - `vmId` integer
    - `id` integer
    - `name` string
    - `rid` integer
    - `state` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
    - `vncPort` integer
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

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