Ask Your Question
3

What is the `gcloud` method to retrieve ALL GCP folders within an Organization?

asked 2023-05-01 15:28:36 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-01 15:36:02 +0000

nofretete gravatar image

To retrieve all GCP folders within an Organization using gcloud, you can use the following command:

gcloud resource-manager folders list --organization=<ORGANIZATION_ID>

Replace <ORGANIZATION_ID> with the ID of the organization you want to retrieve the folders for. This command will return a list of all folders within the specified organization, including their IDs and display names.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-01 15:28:36 +0000

Seen: 14 times

Last updated: May 01 '23