Getting an NSG's Details
Get details for a network security group (NSG) in a virtual cloud network (VCN).
Use the network nsg get command and required parameters to get an NSG's details:
oci network nsg get --nsg-id nsg-ocid ... [OPTIONS]
Use the network nsg vnics list command and required parameters to list the VNICs in the specified NSG:
oci network nsg vnics list --nsg-id nsg-ocid ... [OPTIONS]
Use the network nsg rules list command and required parameters to list the security rules for the specified NSG:
oci network nsg rules list --nsg-id nsg-ocid ... [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the GetNetworkSecurityGroup operation to get an NSG's details.
Run the ListNetworkSecurityGroupVnics operation to list the VNICs in the specified NSG.
Run the ListNetworkSecurityGroupSecurityRules operation to list the security rules for the specified NSG.