Is it possible to take aa list of all projects in a organization that uses a specific API, eg Cumpute Engine API?
Cloud Asset Inventory should help.
It's a slightly confusing interface but try:
ORG=[[YOUR-ORG-ID]]
gcloud asset search-all-resources \
--scope=organizations/${ORG} \
--asset-types=serviceusage.googleapis.com/Service \
--query=name:compute.googleapis.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.