Moving a DRG NAT Policy to a Different Compartment

Move a DRG NAT policy from one compartment to another within the same tenancy.

    1. On the DRG NAT policies list page, select the DRG NAT policy that you want to work with. If you need help finding the list page or the DRG NAT policy, see Listing DRG NAT Policies.
      The DRG NAT policy's details page opens.
    2. From the Actions menu, select Move resource.
      The Move resource panel opens.
    3. In the Move resource panel, select the destination compartment from the list.
    4. Select Move resource.
  • Use the oci network drg-nat-policy change-compartment command and required parameters to move a DRG NAT policy to a different compartment:

    oci network drg-nat-policy change-compartment --drg-nat-policy-id <drg_nat_policy_ocid> --compartment-id <destination_compartment_ocid> [OPTIONS]

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

  • Run the ChangeDrgNatPolicyCompartment operation to move a DRG NAT policy to a different compartment.