Assigning a Reserved Public IP to a Private IP
Assign a reserved public IP object to a private IP address in Oracle Cloud Infrastructure.
The VNIC's private IP address must not have an ephemeral or reserved public IP object already assigned to it. If it does, first either delete the public ephemeral IP, or unassign the reserved public IP.
Use the network public-ip update command and required parameters to assign a reserved public IP address to a private IP:
oci network public-ip update --public-ip-id public_IP_OCID --private-ip-id private_IP_OCID ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdatePublicIp operation to assign a reserved public IP address to a private IP address.