Use one of the methods below to list the subnets in a given VCN.
- Open the navigation menu, click Networking, and then click Virtual cloud networks.
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 flags and variable options for CLI commands, see the Command Line Reference.
Run the ListSubnets operation to list the subnets in a VCN.