[英]How to list GCP projects with a particular API enabled
是否可以列出使用特定 API 的組織中的所有項目,例如 Cumpute Engine API?
Cloud Asset Inventory應該有所幫助。
這是一個有點混亂的界面,但請嘗試:
ORG=[[YOUR-ORG-ID]]
gcloud asset search-all-resources \
--scope=organizations/${ORG} \
--asset-types=serviceusage.googleapis.com/Service \
--query=name:compute.googleapis.com
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.