Get templates
Retrieve available OS templates for virtual machines. Use this endpoint to view operating system options before creating or recreating VPS instances.
Retrieve available OS templates for virtual machines.
Use this endpoint to view operating system options before creating or recreating VPS instances.
Authorizations
AuthorizationstringRequired
API Token authentication
Responses
200
Success response
application/json
Array of VPS.V1.Template.TemplateResource
idintegerOptionalExample:
Template ID
6523namestringOptionalExample:
Template name
Ubuntu 20.04 LTSdescriptionstringOptionalExample:
Template description
Ubuntu 20.04 LTSdocumentationstring · nullableOptionalExample:
Link to official OS documentation
https://docs.ubuntu.com401
Unauthenticated response
application/json
500
Error response
application/json
get/api/vps/v1/templates
GET /api/vps/v1/templates HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 6523,
"name": "Ubuntu 20.04 LTS",
"description": "Ubuntu 20.04 LTS",
"documentation": "https://docs.ubuntu.com"
}
]Last updated
Was this helpful?