Changing Which Security Lists a Subnet Uses
Change which security lists are used in a particular subnet in a virtual cloud network (VCN).
The changes take effect within a few seconds.
Use the network subnet update command and described parameters to change which security list a subnet uses:
oci network subnet update --subnet-id ocid --security-list-ids securitylist-ocids ... [OPTIONS]
The security-list-ids are OCIDs of the security list or lists the subnet will use. This replaces the entire current set of security lists. Remember that security lists are associated with the subnet, but the rules are applied to the individual VNICs in the subnet. This is a complex type whose value must be valid JSON.
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the UpdateSubnet operation to change which security lists are used in a particular subnet.