Listing Subnets

List the subnets available in a particular 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.
      • Scroll down to the table following the VCN details, which lists the subnets in the VCN.

      All subnets in the VCN are displayed in a table.

  • Use the network subnet list command and required parameters to list the subnets in a compartment:

    oci network subnet list --compartment-id ocid ... [OPTIONS]

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

  • Run the ListSubnets operation to list the subnets in a VCN.