The process of setting up and configuring a new server or service to make it ready for use.
Reserved IPs enable dedicated IP Addresses that are isolated from the public pool of Vultr's public IP addresses for attachment to your instances. Reserved IPs enable you to reserve a specific public IP address in a single Vultr location you can attach and use with your instances.
Follow this guide to create reserved IPs in your Vultr account using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Reserved IPs endpoint to view all reserved IPs active in your Vultr account.
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Reserved IP endpoint to create a new reserved IP address in a specific Vultr location.
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region" : "<location>",
"ip_type" : "<address_type>",
"label" : "<label>"
}'
Visit the Create Reserved IP API page to view additional attributes to apply on the reserved IP.
List all active reserved IPs in your Vultr account.
$ vultr-cli reserved-ip list
Create a new reserved IP in a specific Vultr location.
$ vultr-cli reserved-ip create --label <label> --region <location> --type <address_type>
Run vultr-cli reserved-ip create --help
to view additional options to apply on the reserved IP.
Ensure the Vultr Terraform provider is configured in your Terraform project.
Create a reserved IP (optionally attach to an instance), then apply.
resource "vultr_reserved_ip" "rip" {
region = "ewr"
ip_type = "v4" # v4 | v6
label = "web-rip"
# instance_id = vultr_instance.server.id
}
Apply the configuration and observe the following output:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
No comments yet.