An administrator needs to list all existing Virtual Private Cloud (VPC) subnets across all regions in a Google Cloud project using the command-line interface. Which of the following commands or actions will accomplish this requirement? (Select TWO)
- Run gcloud compute networks subnets listCevap
- In the Google Cloud Console, navigate to VPC network > SubnetsCevap
- CRun gcloud compute networks list --show-subnets
- DRun gcloud compute subnets list
Cevap
Executing 'gcloud compute networks subnets list' via the CLI and viewing the Subnets page under VPC network in the Google Cloud Console are both valid methods to list all VPC subnets in a project.
Listing VPC subnets can be performed via the gcloud CLI using 'gcloud compute networks subnets list' or graphically in the GCP Console by navigating to VPC network > Subnets.
Adım Adım Çözüm
Anahtar Kavram
Managing VPC networks and listing subnets using gcloud CLI and Google Cloud Console