How to determine the project associated with a cloud storage bucket?

0 votes
I am working on multiple projects on GCP and also have created a number of cloud storage buckets. I don't remember which project I created a bucket in. How can I find it?
Nov 18 in GCP by anonymous
• 6,650 points
15 views

1 answer to this question.

0 votes

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]
answered Nov 18 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 23 in GCP by Sirajul
• 40,980 points
28 views
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 40,980 points
30 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10 in GCP by Sirajul
• 40,980 points
87 views
0 votes
1 answer