Listing Subnets

List the subnets available in a given VCN.

    1. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the name of the VCN you're interested in.

      The subnets in this VCN are listed in a table below the VCN details.

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