Getting a Subnet's Details

Get configuration details for a specific subnet in a virtual cloud network (VCN).

    1. On the Virtual Cloud Networks list page, select the VCN that contains the subnet 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:
      • Select the Subnets tab, then select the name of the subnet you want to work with.
      • Scroll down to the table following the VCN details, which lists the subnets in the VCN. Select the name of the subnet you want to work with.

      The details page for the subnet opens and displays information about the subnet. Some items on the page are read-only, and other items enable you to edit and update the subnet's configuration. Access the security and routing information associated with the subnet by selecting their links or tabs.

  • Use the network subnet get command and required parameters to get configuration details for a specific subnet:

    oci network subnet get --subnet-id ocid ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the GetSubnet operation to get configuration details for a specific subnet.