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.
- Open the navigation menu, click Networking, and then click Virtual cloud networks.
- Click the name of the VCN you're interested in.
- Under Resources, click Security Lists.
- Click the security list you're interested in.
- Under Resources, click either Ingress Rules or Egress Rules, depending on the type of rule you want to work with.
- If you want to add a rule, click Add Ingress Rules (or Add Egress Rules). See details of adding a rule in Creating a Security List.
- If you want to delete an existing rule, select the checkbox next to the rule and then click Remove.
- If you wanted to edit an existing rule, select the checkbox next to the rule, and then click Edit.
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.