Moving a Security List to a Different Compartment
Move a security list in a Virtual Cloud Network (VCN) to a different compartment.
You can move security lists from one compartment to another. Moving a security list doesn't affect its attachment to a subnet. When you move a security list to a new compartment, inherent policies apply immediately and affect access to the security list. For more information, see Managing Compartments.
- Open the navigation menu, select Networking, and then select Virtual cloud networks.
- Click the name of the VCN you're interested in.
- Under Resources, click Security Lists.
- Find the security list, click the to the right side of it, and then select Move resource.
- Select the destination compartment from the list.
- Click Move resource.
Use the network security-list change-compartment command and required parameters to move a security list to a different compartment:
oci network security-list change-compartment --security-list-id securitylist-ocid ... [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the ChangeSecurityListCompartment operation to move a security list to a different compartment.