---
title: "Read a Namespaced Virtual Machine Template"
method: GET
path: "/apis/harvesterhci.io/v1beta1/namespaces/{namespace}/virtualmachinetemplates/{name}"
tags: ["Virtual Machine Templates"]
---

# Read a Namespaced Virtual Machine Template

`GET /apis/harvesterhci.io/v1beta1/namespaces/{namespace}/virtualmachinetemplates/{name}`

Get a VirtualMachineTemplate object.

## Query parameters

- `exact` boolean
- `export` boolean

## Response `200`

OK

- HarvesterhciIoV1beta1VirtualMachineTemplate
  - `apiVersion` string, required
  - `kind` string, required
  - `metadata` K8sIoV1ObjectMeta
    - `name` string, required
    - `namespace` string
  - `spec` HarvesterhciIoV1beta1VirtualMachineTemplateSpec
    - `defaultVersionId` string
    - `description` string
  - `status` HarvesterhciIoV1beta1VirtualMachineTemplateStatus
    - `defaultVersion` integer
    - `latestVersion` integer

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/harvester/apis/harvester-apis.md) · [All operations](https://skmtc.net/harvester/apis/harvester-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/harvester/harvester-apis/revisions/f6634db14335/schema)
