Moving an RPC to a Different Compartment

Move a remote peering connection (RPC) to a different compartment within the same tenancy.

For information about moving resources between compartments, see Moving Resources to a Different Compartment.

    1. Open the navigation menu and click Networking. Under Customer connectivity, click Dynamic routing gateway.
    2. Under List Scope, select a compartment that you have permission to work in.The page updates to display only the resources in that compartment. If you're not sure which compartment to use, contact an administrator. For more information, see Access Control.
    3. Click the name of the DRG you're interested in.
    4. Under Resources, click Remote Peering Connections.
    5. Find the RPC in the list, click the Actions menu (Actions Menu), and then click Move Resource.
    6. Choose the destination compartment from the list.
    7. Click Move Resource.
  • Use the network remote-peering-connection change-compartment command and required parameters to move an RPC to a different compartment within the same tenancy:

    oci network remote-peering-connection change-compartment --compartment-id target-compartment-ocid  --remote-peering-connection-id  rpc-ocid  ... [OPTIONS]

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

  • Run the ChangeRemotePeeringConnectionCompartment operation to move an RPC to a different compartment within the same tenancy.