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.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string retryAfter string requestId string https://cloud.hostup.se/api/vm/{vmid}/templates curl -X GET "https://cloud.hostup.se/api/vm/10276/templates" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"templates": [
{
"id": "string",
"selected": true,
"name": "string",
"group": "string"
}
]
}
}