Updating Rules in a Security List
Update the rules used in a security list in a Virtual Cloud Network (VCN).
You can add and remove rules from the security list. A security list can have no rules. Notice that when you update a security list in the API, the new set of rules replaces the entire existing set of rules.
Use the network security-list update command and required parameters to update the rules used in a particular security list:
oci network security-list update --security-list-id securitylist-ocid ... [--egress-security-rules | --ingress-security-rules] rules [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the UpdateSecurityList operation to update the rules used in a particular security list.