Is there a way to fetch regions that my project is using in GCP?

246 Views Asked by At

I'm using GCP CLI. Is there a command to fetch the regions that a specific project is using?

All I could see was all available regions that my project can use but not the one that my project's using.

1

There are 1 best solutions below

0
Siegfred V. On

You could use Cloud Asset Inventory and use the query

gcloud asset search-all-resources | grep zone

You can refine your query for specific resource api using the --asset-type flag