简体   繁体   English

如何列出启用了特定 API 的 GCP 项目

[英]How to list GCP projects with a particular API enabled

Is it possible to take aa list of all projects in a organization that uses a specific API, eg Cumpute Engine API?是否可以列出使用特定 API 的组织中的所有项目,例如 Cumpute Engine API?

Cloud Asset Inventory should help. Cloud Asset Inventory应该有所帮助。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GCP 使用 Golang 列出项目 API - GCP list projects wtih Golang API 如何列出 GCP 中属于特定组织的所有项目 - How to list all projects in GCP that belongs to a specific organization 如何获取在一个服务帐户下分配的多个 GCP 项目的列表? ( GCP )( python 客户端库文件) - How can get list of multiple - GCP projects assigned under one service account ? ( GCP )( python-client library files) GCP API 用于获取标签列表 - GCP API for getting list of labels GCP API 网关返回 403 表示托管服务“未为项目启用” - GCP API gateway returning 403 saying managed service "is not enabled for the project" 如何检查是否为 GCP 上的机密虚拟机 (VM) 启用了 SEV? - How to check that SEV is enabled for a Confidential Virtual Machine (VM) on GCP? 使用 Terraform 监控 GCP 项目 - Monitoring GCP Projects with Terraform 从 GCP 中的所有项目获取所有虚拟机的列表 - Getting a list of all VMs from all Projects in GCP 如何在 Cloud Function 中使用 GCP 的两个不同项目 ID - How to use two differents projects id of GCP in Cloud Function 如何获取 GCP 中所有项目的所有 VM 信息 - How to get all the VM's information for all Projects in GCP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM