Moving a local peering gateway to a different compartment
You can move a local peering gateway (LPG) from one compartment to another. When you move a local peering gateway to a new compartment, IAM policies for the new compartment apply immediately.
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.
- Open the navigation menu , select Networking, and then select Virtual cloud networks.
- Select the VCN you're interested in.
- Under Resources, select Local Peering Gateways.
- Select the for the local peering gateway, and then select Move Resource.
- Select the destination compartment from the list.
- Select Move Resource.
Use the network local-peering-gateway change-compartment command and required parameters to get configuration details for a specific LPG:
oci network local-peering-gateway change-compartment --local-peering-gateway-id ocid --compartment-id ocid ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ChangeLocalPeeringGatewayCompartment operation to move a local peering gateway (LPG) from one compartment to another.