Reassigning a Reserved Public IP to a Different Private IP
Move a reserved public IP object from one private IP address to another.
As an example, let's say that you want to move a reserved public IP object from private IP A to private IP B. First, you must ensure that private IP B doesn't have a public IP already assigned to it. Then, you assign the reserved public IP to private IP B. When you do so, it is automatically unassigned from private IP A.
Use the network public-ip update command and required parameters to reassign a reserved public IP address to a different private IP:
oci network public-ip update --public-ip-id new_public_IP_OCID --private-ip-id EMPTY_STRING ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdatePublicIp operation to reassign a reserved public IP address from one private IP address to another.