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 The depth parameter will expand the response payload so you can process the payload across all templates and identify the needed templates for your use case.
Note: The list contains templates for Cubes as well as GPU instances. We recommend checking the naming convention to confirm the instance type the template is intended for.
Request
Note: The following request contains sample values. Remember to replace them with the relevant information.
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.
You can refine your request by adding the optional query parameter `depth`.
Name
Type
Description
depth
integer
Template detail depth. Default value is 0.
Response
A 200 message confirms that the templates list is fetched. The response will contain multiple templates,each in the format shown in the response example.