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
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.
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.
Last updated
Was this helpful?