Dissociate a public IP from a resource
You can dissociate a public IP that you have associated with a VM (Virtual Machine) or with a network interface.
To dissociate a public IP from a NAT gateway, you must delete the NAT gateway.
info
Once detached, the public IP is still allocated to your account and can be associated again. If you no longer need this public IP, you can release it.
Permissions
info
This action requires the following IAM (Identity and Access Management) permissions:
- compute.publicIp.update
- Console
- API
- Terraform
- From the left-hand side menu, click Network → Public IP.

- Identify the public IP you want to dissociate, then from the list of actions, click Dissociate.

A new "Dissociation of the public IP" dialog box appears.
- Click Dissociate the public IP. The public IP is dissociated.
A confirmation message "The dissociation of the public IP has been completed" appears.
The PUT /compute/spaces/{spaceId}/publicIps/{id}/unlink command dissociates a public IP from the associated resource.
The Terraform documentation is available on the Numspot registry ↗.