Skip to content

Tag: google-compute-engine

Get all GCP instances under project using rest API

The below api gives instances based on a particular zone. I am using java client library to connect with GCP. It is possible using gcloud according to this link Any help will be much appreciated. Answer To list all instances in all regions and zones for a project, use the aggregatedList method. Method: instances.aggregatedList