Editing a DRG NAT Rule
Edit a DRG NAT rule to change its match criteria, translated CIDRs, or priority.
Before you update a rule, confirm that the change doesn't disrupt active traffic flows that still depend on translated addressing or translated routes.
Create a JSON file such as
update-drg-nat-rules.json:[ { "id": "4", "drgNatRulePriority": 3 }, { "id": "10", "originalDestination": "192.168.0.0/24", "translatedDestination": "10.0.0.0/24" } ]Use the oci network drg-nat-rule update command and required parameters to edit the DRG NAT rules associated with a DRG NAT policy:
oci network drg-nat-rule update --drg-nat-policy-id <drg_nat_policy_ocid> --rules file://update-drg-nat-rules.json [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateDrgNatRules operation to edit the DRG NAT rules associated with a DRG NAT policy.