Moving Firewalls in a Web Application Firewall Policy Between Compartments

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

    1. Open the navigation menu and click Identity & Security. Under Web Application Firewall, click Policies.

      Alternatively, open the Web Application Firewall page and click Policies under Resources.

      The WAF Policies page appears.

    2. Select the Compartment from the list.

      All the WAF policies in that compartment are listed in tabular form.

    3. (Optional) Apply one or more of the following Filters to limit the WAF policies displayed:
      • Name

      • Policy Type

      • Status

    4. Select the WAF policy to whose firewall you want to move.

      The WAF Policy Details dialog box appears.

    5. Click Firewalls under Resources.

      The Firewalls list appears.

    6. Select the firewall you want to move.

      The Firewall Details dialog box appears.

    7. Click Move Resource.

      Alternatively, click the Actions menu (Actions Menu) for the firewall and click Move Resource.

      The Move Resource to a Different Compartment dialog box appears.

    8. Select the compartment to which you want to move your firewall from the Choose New Compartment list.
    9. Click Move Resource.

    The firewall now appears in the compartment you moved it to.

  • 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 flags and variable options for CLI commands, see the Command Line Reference.

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