Moving a Reserved Public IP to a Different Compartment

Move a reserved public IP address from one compartment to another. When you move a reserved public IP to a new compartment, inherent policies apply immediately.

    1. Open the navigation menu and click Networking. Under IP management, click Reserved public IPs.
    2. For the reserved public IP you want to edit, click the Actions menu (Actions Menu), and then click Move resource.
    3. Choose a destination compartment from the list, and then click Move resource.
      For more information about using compartments and policies to control access to a cloud network, see Access Control. For general information about compartments, see Managing Compartments.
  • Use the network public-ip change-compartmnet command and required parameters to move a public IP to a different compartment:

    oci network public-ip change-compartmnet --public-ip-id public_IP_OCID --compartment-id compartment_OCID ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ChangePublicIpCompartment operation to move a reserved public IP address to a different compartment.