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. On the Virtual Cloud Networks list page, select the VCN that contains the security list you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the Security tab, go to the Security Lists section.
      • Under Resources, select Security Lists.
    3. From the Actions menu (three dots) for the security list, select Move Resource.
    4. In the Move resource panel, select the destination compartment from the list.
    5. Select 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.