Getting an NSG's Details

Get details for a network security group (NSG) in a virtual cloud network (VCN).

    1. On the Virtual Cloud Networks list page, select the VCN that contains the NSG you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the Security tab, go to the Network Security Groups section.
      • Under Resources, select Network Security Groups.
    3. Select the NSG you're interested in to view its details.

      Depending on the options that you see, the NSG's security rules are displayed on the page or on the Security rules tab. From there you can add, edit, or remove rules.

    4. To see the parent resources that belong to the NSG, depending on the option that you see:
      • Select the VNICs tab.
      • Under Resources, select VNICs.

      If the parent resource is a Compute instance, the corresponding VNICs from that instance are also listed on the page.

      For other types of parent resources, the relevant service manages the VNICs for you. Therefore, only the parent resource (and not its corresponding VNICs) is listed on the page.

  • 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.