Listing VCNs
You can use the following methods to list VCNs in a given compartment.
The console displays a list of VCNs in that compartment. The table is empty if there are no VCNs in that compartment. Use the network vcn list command and required parameters to list the VCNs in a compartment:
oci network vcn list --compartment-id compartment_id [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the ListVcns operation to list the VCNs in the currently selected compartment.