A storage volume that can be mounted to a Vultr instance to provide additional disk space.
Attaching a reserved IP to an instance enables a new public network address on the instance's main network interface. You can attach multiple reserved IPs on an instance to enable fast resolution and system management.
Follow this guide to attach reserved IPs to a Vultr instance using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Reserved IPs endpoint and note the target reserved IP's ID.
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the List Instances endpoint and note the target instance ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Attach Reserved IP endpoint to attach the reserved IP to the instance.
$ curl "https://api.vultr.com/v2/reserved-ips/{reserved-ip}/attach" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"instance_id" : "<target-instance-id>"
}'
List all active reserved IPs in your Vultr account and note the target reserved IP ID.
$ vultr-cli reserved-ip list
List all instances in your Vultr account and note the target instance ID.
$ vultr-cli instance list
Attach the reserved IP to the instance.
$ vultr-cli reserved-ip attach <reserved-ip-id> --instance-id="<target-instance-id>"
Open your Terraform configuration for the existing instance and reserved IP.
Set instance_id
on the vultr_reserved_ip
to attach, then apply.
resource "vultr_instance" "server" {
# ...existing fields
}
resource "vultr_reserved_ip" "rip" {
region = "ewr"
ip_type = "v4"
label = "web-rip"
instance_id = vultr_instance.server.id
}
Apply the configuration and observe:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
This simply does not work... it says “Attached to server” but doesn’t give an option to detach from that server nor to attach to a new server.
How can your documentation be so off from the actual user experience?