Move a Firewall to Another Compartment
You can move a firewall from one compartment to another.
After you move a firewall to a new compartment, inherent policies apply immediately and affect access to the firewall through the Console, SDK or CLI. For more information, see Managing Compartments.
- On the navigation menu, select Identity & Security. Go to Firewalls, select Network Firewalls.
- Find the firewall in the list, select the , and then select Move resource.
- Select a destination compartment from the list.
- Select Move resource.
- Use the network-firewall network-firewall change-compartment command and required parameters to move the network firewall to a different compartment.
oci network-firewall network-firewall change-compartment --compartment-id compartment_id--network-firewall-id network_firewall_id [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the ChangeNetworkFirewallCompartment operation to change the compartment of a network firewall.