Deploy an instance or bare metal server to a specific reserved server with the server_id parameter in the Vultr API.
Using reserved hardware for deployments runs your workload on an unallocated reserved server in your account. You choose the exact server for the deployment instead of a server that Vultr selects.
To deploy to reserved hardware, you must have the server_id, server_type, region, and a supported plan from the plans list of an unallocated reserved server. See How to Check Available Reserved Hardware to find them.
Follow this guide to use reserved hardware for deployments with the Vultr API.
Deploy to the reserved server with the endpoint that matches its server_type. Replace PLAN with a plan from the server's plans list, REGION with the server's region, SERVER_ID with the server's server_id, and OS_ID with the ID of the operating system to install.
Send a POST request to the Create Instance endpoint to deploy a virtual machine instance on a vm_host server.
Send a POST request to the Create Bare Metal Instance endpoint to deploy a bare_metal server as a bare metal instance.
A successful request returns an HTTP 202 Accepted response. Note the instance id for future operations.
Send a GET request to the Get Capacity endpoint to retrieve the reserved server details. Replace {server-id} with the server_id of the reserved server.
Verify that the allocation type is instances for a vm_host server or bare_metal for a bare_metal server.
0 Comments
Be the first to comment and share your perspective with the community.