To find which project contains a specific bucket:
-
If you are searching over a moderate number of projects and buckets, use the Google Cloud Console, select each project, and view the buckets it contains.
-
Otherwise, go to the storage.bucket.get page in the API Explorer and enter the bucket's name in the bucket field. When you click Authorize and Execute, the associated project number appears as part of the response. To get the project name, use the project number in the following terminal command:
gcloud projects list | grep [PROJECT_NUMBER]
Hope it works!!
To find out more about Google Cloud, join Google Cloud training today.
Thanks!