---
title: "Get a VM template"
method: GET
path: "/vm/templates/{templateId}"
tags: ["VM"]
---

# Get a VM template

`GET /vm/templates/{templateId}`

Retrieve a VM template by its template ID

## Path parameters

- `templateId` integer, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalDbModelsVmVMTemplate
  - `data` GithubComAlchemillahqSylveInternalDbModelsVmVMTemplate
    - `acpi` boolean
    - `apic` boolean
    - `bootRom` 'uefi' | 'uboot' | 'none'
    - `cloudInitData` string
    - `cloudInitMetaData` string
    - `cloudInitNetworkConfig` string
    - `cpuCores` integer
    - `cpuSockets` integer
    - `cpuThreads` integer
    - `createdAt` string
    - `description` string
    - `extraBhyveOptions` string[]
    - `id` integer
    - `ignoreUMSR` boolean
    - `name` string
    - `networks` GithubComAlchemillahqSylveInternalDbModelsVmVMTemplateNetwork[]
      - `emulation` string
      - `name` string
      - `switchName` string
      - `switchType` string
    - `qemuGuestAgent` boolean
    - `ram` integer
    - `serial` boolean
    - `shutdownWaitTime` integer
    - `sourceVmName` string
    - `sourceVmRid` integer
    - `startAtBoot` boolean
    - `startOrder` integer
    - `storages` GithubComAlchemillahqSylveInternalDbModelsVmVMTemplateStorage[]
      - `bootOrder` integer
      - `emulation` 'virtio-blk' | 'virtio-9p' | 'ahci-hd' | 'ahci-cd' | 'nvme'
      - `enable` boolean
      - `estimatedBytes` integer
      - `pool` string
      - `recordSize` integer
      - `size` integer
      - `sourceStorageId` integer
      - `templateDataset` string
      - `type` 'raw' | 'zvol' | 'image' | 'filesystem'
      - `volBlockSize` integer
    - `timeOffset` 'utc' | 'localtime'
    - `tpmEmulation` boolean
    - `updatedAt` string
    - `vncBind` string
    - `vncEnabled` boolean
    - `vncResolution` string
    - `vncWait` boolean
    - `wol` boolean
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `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/revisions/7a7bea85004e/schema)
