Moving Firewalls in a Web Application Firewall Policy to a Different Compartment

Move a firewall contained within a web application firewall policy to a different compartment.

    1. On the Policies list page, select the policy that you want to work with. If you need help finding the list page or the policy, see Listing Web Application Firewall Policies.
      The policy's details page opens.
    2. From the details page, select Firewalls.
      The Firewalls list opens. All firewalls are displayed in a table.
    3. From the Actions menu (three dots) for the firewall, select Move resource.
      The Move resource panel opens.
    4. In the Move resource panel, select the destination compartment from the list.
    5. Select Move resource.
  • Use the oci waf web-app-firewall change-compartment command and required parameters to move a firewall contained within a web application firewall policy between compartments:

    oci waf web-app-firewall change-compartment --compartment-id compartment_ocid --web-app-firewall-id web_app_firewall_ocid [OPTIONS]

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

  • Run the ChangeWebAppFirewallCompartment operation to move a firewall contained within a web application firewall policy between compartments.