Retrieve Template list

You can retrieve a list of configuration templates that are currently available. Instances have a fixed configuration of vCPU, RAM, and direct-attached storage size.

Endpoint

Use the following endpoint for templates: https://api.ionos.com/cloudapi/v6/templates/?depth=3

Request

Note: The following request contains sample values. Remember to replace them with the relevant information.

curl --location \
--request GET 'https://api.ionos.com/cloudapi/v6/templates/?depth=3' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJraWQiO' \
--header 'Content-Type: application/json'

To make authenticated requests to the API, the following fields are mandatory in the request header:

Name

Type

Description

v6

string

The API version.

templates

string

Template attributes: ID, metadata, and properties.

Response

A 200 message confirms that the templates list is fetched.

Last updated

Was this helpful?