How to Detach Reserved IPs from a Vultr Instance
-
by Blog Admin
- 23
How to Detach Reserved IPs from a Vultr Instance
A guide explaining how to remove a Reserved IP address from a Vultr instance while keeping the IP in your account for future use.
Detaching a Reserved IP from an instance removes the associated public network address from the instance’s main network interface. You can detach a Reserved IP to reassign it to another instance, release unused resources, or adjust your network configuration.
Follow this guide to detach Reserved IPs from a Vultr instance using the Vultr Customer Portal, API, CLI, or Terraform.
Vultr Customer Portal
- Navigate to Products, expand the Network drop-down, and select Reserved IPs from the list of options.
- Click your target Reserved IP to open its management page.
- In the Attached to Server section, click Detach to begin removing the Reserved IP from the instance.
- Click Detach Reserved IP in the confirmation prompt to finalize the detachment.
Vultr API
- Send a
GET
request to the List Reserved IPs endpoint and note the target Reserved IP’s ID.console$ curl "https://api.vultr.com/v2/reserved-ips" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
POST
request to the Detach Reserved IP endpoint to detach the Reserved IP from the instance.console$ curl "https://api.vultr.com/v2/reserved-ips/{reserved-ip-id}/detach" \ -X POST \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Vultr CLI
- List all active Reserved IPs in your Vultr account and note the target Reserved IP’s ID.
console
$ vultr-cli reserved-ip list
- Detach the Reserved IP from the instance.
console
$ vultr-cli reserved-ip detach <reserved-ip-id>
Terraform
- Open your Terraform configuration for the existing Reserved IP.
- Remove
instance_id
from thevultr_reserved_ip
to detach, then apply.terraformresource "vultr_reserved_ip" "rip" { region = "ewr" ip_type = "v4" label = "web-rip" # instance_id removed to detach }
- Apply the configuration and observe:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
How to Detach Reserved IPs from a Vultr Instance A guide explaining how to remove a Reserved IP address from a Vultr instance while keeping the IP in your account for future use. Detaching a Reserved IP from an instance removes the associated public network address from the instance’s main…
How to Detach Reserved IPs from a Vultr Instance A guide explaining how to remove a Reserved IP address from a Vultr instance while keeping the IP in your account for future use. Detaching a Reserved IP from an instance removes the associated public network address from the instance’s main…