Converting an existing instance IP address to a reserved IP enables it as a dedicated address you can attach or detach to other instances in your Vultr account. A reserved IP is compatible with any instance you can attach or detach it to.
Follow this guide to convert an existing Vultr instance IP Address to a reserved IP using the Vultr Customer Portal, API, or CLI.
Navigate to Products, expand the Network drop-down and select Reserved IPs from the list of options.
Click Add Reserved IP to set up a new reserved IP address.
Click the IPv4 Address or IPv6 subnet drop-down to select your existing IP and click Convert.
Click Convert IP Address in the confirmation prompt to create a new reserved IP using the existing IP.
Send a GET
request to the List Instances endpoint and note the target instance IP.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Convert Existing IP endpoint to create a new reserved IP using the instance's IP address.
$ curl "https://api.vultr.com/v2/reserved-ips/convert" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}"
-H "Content-Type: application/json" \
--data '{
"ip_address": "<instance-ip>",
"label": "<label>"
}'
List all instances in your Vultr account and note the target instance's IP.
$ vultr-cli instance list
Convert the target instance IP to a reserved IP address.
$ vultr-cli reserved-ip convert --ip="<instance-ip>" --label="<label>"