Moving a Web Application Firewall Policy to a Different Compartment

Move a web application firewall (WAF) policy to a different compartment.

    1. On the Policies list page, find 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.
    2. From the Actions menu for the policy, select t Move resource.
      The Move resource panel opens.
    3. In the Move resource panel, select the destination compartment from the list.
    4. Select Move resource.
  • Use the oci waf web-app-firewall-policy change-compartment command and required parameters to move a web application firewall policy between compartments:

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

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

  • Run the ChangeWebAppFirewallPolicyCompartment operation to move a web application firewall policy between compartments.