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.

    1. Open the navigation menu, select Networking, and then select Virtual cloud networks.
    2. Click the name of the VCN you're interested in.
    3. Under Resources, click Security Lists.
    4. Find the security list, click the Actions menu (Actions Menu) to the right side of it, and then select Move resource.
    5. Select the destination compartment from the list.
    6. 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.