Editing a Policy

Edit the information for a network firewall policy in Oracle Cloud Infrastructure.

You can't edit a policy that is associated with one or more firewalls. To edit a policy that’s associated with a firewall, you can choose one of the following options:
  • Associate the firewall with a different policy, edit the policy, and then associate the policy with the firewall again.
  • Clone the policy, and edit the policy during the cloning process. Then, associate the firewall with the edited clone.
  • Important

    When you make the following changes, the update causes a connection reset in any associated firewall:
    • Updating mapped secret information in a policy associated with a firewall.
    • Changing the firewall policy to one that uses different mapped secret information than the current policy.

    Editing other types of information in the associated policy does not result in a connection reset.

    1. Open the navigation menu and click Identity & Security. Under Firewalls, click Network Firewall Policies.
    2. Select the compartment that contains the policy that you want to edit.
    3. Click the name of the policy.
    4. (Optional) Rename the policy:
      1. Click Rename.
      2. Enter a new name for the policy.
      3. Click Save changes.
    5. (Optional) Edit a policy component:
      1. Under Policy Resources, click a component type to view a list of available component resources.
      2. For the component resource that you want to edit, click the the Actions menu (Actions Menu), and select Edit. For information about components and the changes you can make to them, see Creating Policy Components.
      3. Click Save changes.
  • Use the network-firewall network-firewall-policy update command and required parameters to edit a firewall.
    oci network-firewall network-firewall-policy update 
    --network-firewall-policy-id network_firewall_policy_id [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the UpdateNetworkFirewallPolicy operation to update a firewall.