Managing Tags for an NSG
Manage tags for a network security group (NSG).
For more information, see Resource Tags.
- Open the navigation menu , select Networking, and then select Virtual cloud networks.
- Click the VCN you're interested in.
- Under Resources, click Network Security Groups.
- Click the Tags tab to view or edit the existing tags. Or click Add tags to add new ones.
Use the network nsg create command and required parameters to add tags when you create an NSG:
oci network nsg create --compartment-id ocid --vcn-id ocid [--defined-tags | --freeform-tags] tags ... [OPTIONS]
Use the network nsg update command and required parameters to add tags to the specified NSG:
oci network nsg update --nsg-id ocid [--defined-tags | --freeform-tags] tags ... [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the CreateNetworkSecurityGroup operation to add tags when you create an NSG, and use the definedTags attribute.
Run the UpdateNetworkSecurityGroup operation to add tags when you update an NSG, and use the definedTags or freeformTags attributes.