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.

    1. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the name of the VCN you're interested in.
    3. Under Resources, click Security Lists.
    4. Click the security list you're interested in.
    5. Under Resources, click either Ingress Rules or Egress Rules, depending on the type of rule you want to work with.
    6. 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.
    7. If you want to delete an existing rule, select the checkbox next to the rule and then click Remove.
    8. 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.