An instance template is a reusable blueprint that defines the plan, OS, SSH keys, startup script, VPC, and storage configuration for instances. Templates ensure consistent deployments across a cluster and simplify scaling by eliminating the need to specify configuration details for each new instance.
This guide explains how to create an instance template using the Vultr API.
The following table describes the available fields for creating an instance template:
Creating an instance template requires only the plan field. All other fields are optional. To set an image source, choose only one of os_id, iso_id, snapshot_id, marketplace_app_id, or marketplace_image_id.
Send a POST request to the Create Instance Template endpoint to create a new template. Replace the placeholder values with your configuration.
A successful request returns an HTTP 200 OK response with the template details. Note the template id for use when creating clusters or instances.
0 Comments
Be the first to comment and share your perspective with the community.