Moving a Policy Between Compartments
You can move a network firewall policy from one compartment to another.
See Managing Compartments for information about compartments and access control.
- Find the policy in the list, click the , and then click Move resource.
- Choose a destination compartment from the list.
- Click 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.