Move a Firewall Policy to Another Compartment

You can move a firewall policy from one compartment to another.

You can move firewall policies from one compartment to another. After you move a firewall policy to a new compartment, inherent policies apply immediately and affect access to the firewall policy through the Console, SDK or CLI.  For more information, see Managing Compartments.

    1. On the navigation menu, select Identity & Security. Go to Firewalls, select Network Firewall Policies.
    2. Find the policy in the list, select the Actions menu (three dots), and then select Move resource.
    3. Select a destination compartment from the list.
    4. Select Move resource.
  • Use the network-firewall network-firewall-policy change-compartment command and required parameters to move the policy to a different compartment.
    oci network-firewall network-firewall-policy change-compartment 
    --compartment-id compartment_id--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 ChangeNetworkFirewallPolicyCompartment operation to change the compartment of a policy.