使用Google Cloud Platform SDK CLI列出给定项目下的所有活动资源 [英] Using the Google Cloud Platform SDK CLI to List all Active Resources Under a Given Project
本文介绍了使用Google Cloud Platform SDK CLI列出给定项目下的所有活动资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过Google Cloud Platform(GCP)SDK CLI(gcloud
)列出给定GCP项目下的所有活动资源?
推荐答案
您可以使用搜索所有资源跨服务(或API)和项目搜索给定组织、文件夹或项目的所有资源。
搜索编号为123的项目中的所有资源:
$ gcloud asset search-all-resources --scope=projects/123
有关详细信息,请参阅其他帖子: How to find, list, or search resources across services (APIs) and projects in Google Cloud Platform?
这篇关于使用Google Cloud Platform SDK CLI列出给定项目下的所有活动资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文