Check unallocated reserved hardware with the Vultr API and jq before you scale a cluster or fleet of Vultr servers.
Checking available reserved hardware shows how many reserved servers in your account are not yet allocated to a workload. Use this check before you scale a cluster or fleet to verify that enough reserved hardware remains.
This guide uses jq to filter the API response. The requests set per_page to 1000, the maximum page size. If you have more than 1000 reserved servers, repeat each request with the cursor parameter set to the meta.links.next value from the previous response.
Follow this guide to check available reserved hardware using the Vultr API.
Send a GET request to the List Capacity endpoint to list the unallocated reserved servers.
Each entry in the output is a reserved server that is not allocated.
Send a GET request to the List Capacity endpoint to count the unallocated reserved servers.
Verify that the count is at least the number of servers that you plan to deploy.
0 Comments
Be the first to comment and share your perspective with the community.