Adding or Removing a VNIC from a Network Security Group
Learn to add or remove a VNIC from a network security group.
You can change which network security groups (NSGs) a VNIC belongs to, or remove a VNIC from all NSGs.
Use the
oci network vnic update
command and required parameters to add or remove a VNIC from a network security group:oci network vnic update --vnic-id ocid --nsg-ids list of NSG ocids ... [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateVnic operation to add or remove a VNIC from a network security group.