Listing the contents of a cloud storage bucket folder

0 votes
How do I list the contents of my bucket?
Oct 24, 2019 in GCP by anonymous
• 6,260 points
1,992 views

1 answer to this question.

0 votes

Use the gsutil ls command to list the contents at the top level of your bucket:

gsutil ls gs://my-awesome-bucket

If successful, the command returns a message similar to:

gs://my-awesome-bucket/kitten.png
gs://my-awesome-bucket/just-a-folder/

You've just seen the contents at the top level of your bucket.

Hope it helps!!

If you need to know more about Google Cloud, We recommend joining GCP Certification course today.

Thanks!

answered Oct 24, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer

How to change the storage class of objects within a bucket?

You could do this probably by overwriting the ...READ MORE

answered Oct 25, 2019 in GCP by Sirajul
• 59,230 points
1,548 views
+1 vote
1 answer

How do I change the default storage class of a bucket?

Use the gsutil defstorageclass set command: gsutil defstorageclass set [STORAGE_CLASS] ...READ MORE

answered Oct 25, 2019 in GCP by Sirajul
• 59,230 points
640 views
0 votes
1 answer
0 votes
1 answer

Delete a cloud storage object that is in the locked, retention-enabled bucket.

No, you can't delete a cloud storage object ...READ MORE

answered Nov 18, 2019 in GCP by Sirajul
• 59,230 points

edited Sep 21, 2021 by Sarfaraz 2,920 views
0 votes
1 answer

GCP Error: 403: Access Denied

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

answered Oct 9, 2019 in GCP by Sirajul
• 59,230 points
3,628 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, 2019 in GCP by Sirajul
• 59,230 points
4,565 views
0 votes
1 answer
0 votes
1 answer

Change the project of a cloud storage bucket.

Changing a bucket's location or project is ...READ MORE

answered Nov 18, 2019 in GCP by Sirajul
• 59,230 points
464 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP