Moving a DRG to a Different Compartment
Move a Dynamic Routing Gateway (DRG) from one compartment to another.
You can move a DRG from one compartment to another. When you move a DRG to a new compartment, inherent policies apply immediately.
For more information about using compartments and policies to control access to your cloud network, see Access Control. For general information about compartments, see Managing Compartments.
Use the network drg change-compartment command and required parameters to move a DRG from one compartment to another:
oci network drg change-compartment --drg-id ocid --compartment-id new-compartment-ocid [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the ChangeDrgCompartment operation to move a DRG from one compartment to another.