Listing subnets
Use one of the methods below to list the subnets in a given VCN.
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.