Deleting a DRG NAT Rule

Delete a DRG NAT rule from a DRG NAT policy when a specific translation is no longer needed.

    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. Select Rules.
      The Rules page opens. All rules associated with the DRG NAT policy are listed in a table.
    3. From the Actions menu (three dots) for the DRG NAT rule, select Delete.
    4. When prompted, confirm the deletion.
  • Create a JSON file containing the DRG NAT rule ID to delete:

    [10]

    Use the oci network drg-nat-rule remove command and required parameters to delete a DRG NAT rule from a DRG NAT policy:

    oci network drg-nat-rule remove --drg-nat-policy-id <drg_nat_policy_ocid> --rule-ids file://delete-drg-nat-rule.json
    [OPTIONS]

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

  • Run the RemoveDrgNatRules operation to delete a DRG NAT rule from a DRG NAT policy.