Attach reserved public IPs to a Vultr VX1™ Cloud Compute instance via Portal or API.
Reserved IPs let you reserve specific public IP addresses that you can attach to a Vultr VX1™ Cloud Compute instance. You can attach multiple reserved IPs to the same instance to support advanced networking tasks such as routing, load balancing, and IP forwarding.
Follow this guide to attach reserved IPs to a Vultr VX1™ Cloud Compute instance using the Vultr Customer Portal, or API.
Send a GET request to the List Instances endpoint and note your target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
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 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" : "<instance-id>"
}'