Skip to content

List templates for a reinstall

GET/servers/{server}/settings/template-groups

Overview

Lists operating system families and versions available for this server's reinstall. Versions are under templates. Filter group names with filter[name]. Images incompatible with this server are omitted.

Permissions

Requires the server.read (View servers) permission for the selected team. Resources outside that team return 404.

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/servers/{server}/settings/template-groups' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
[
  {
    "uuid": "01165628-cb36-4ad1-9824-e8c2b1e74903",
    "uuid_short": "Uuid short",
    "name": "Ubuntu",
    "hidden": 0,
    "icon_url": "/assets/icons/ubuntu.png",
    "order_column": 2,
    "templates": [
      {
        "uuid": "e28b39a8-059e-4a75-8048-c9a6e7231b9f",
        "name": "Ubuntu 24.04",
        "hidden": 0,
        "order_column": 1
      },
      {
        "uuid": "241eddfc-1ca4-4073-85a4-2563f8548020",
        "name": "Ubuntu 22.04",
        "hidden": 0,
        "order_column": 2
      }
    ]
  }
]

Authorization

Authorizationstringheaderrequired

Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

Send it as Bearer <token>.

Path parameters

serverstringrequired

The server uuid short

Query parameters

filter[name]string

Filter records by name.

Response 200

application/json

The whole set, as a JSON array. There is no envelope and no paging.

uuidstringrequired

The uuid UUID.

uuid_shortstringrequired

The value of uuid_short.

namestringrequired

The name shown to customers.

hiddenintegerrequired

Whether the template group is hidden, represented as 0 or 1.

icon_urlstring | nullrequired

Artwork for the template group, or null when no icon is configured.

order_columnintegerrequired

The value of order_column.

templatesobject[]required

The value of templates.

Show child attributes
uuidstringrequired

The uuid UUID.

uuid_shortstringrequired

The value of uuid_short.

namestringrequired

The name shown to customers.

hiddenintegerrequired

Whether the template is hidden, represented as 0 or 1.

order_columnintegerrequired

The value of order_column.

Errors

401
The key was missing, malformed, revoked, or belongs to an account that no longer exists.
403
Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
404
The resource was not found in the selected team. Resources in another account or team also return 404.
429
Too many requests. The Retry-After header says how many seconds to wait. Limits are per account, so several keys on one account share them.