Get available templates for a virtual server.

This endpoint retrieves a list of all available operating system templates that can be used to install or reinstall a virtual server (VM). The returned information includes the template ID and name, which may be necessary for subsequent actions related to server configuration or provisioning. The VM ID used in the call is typically obtained from the status or detail views of a specific VM.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
401
error string
message string
code string
timestamp string
requestId string
429
error string
message string
retryAfter string
requestId string
GET https://cloud.hostup.se/api/vm/{vmid}/templates
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/vm/10276/templates" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "templates": [
      {
        "id": "string",
        "selected": true,
        "name": "string",
        "group": "string"
      }
    ]
  }
}