Is it possible to make the objects of a bucket publicly accessible

0 votes
I have created a cloud storage bucket and have uploaded a few objects onto it. How do I make these objects publicly accessible?
Oct 24, 2019 in GCP by Sam
• 6,260 points
887 views

1 answer to this question.

0 votes

Yes, you can do it. Follow the steps below: 

  1. Use the gsutil acl ch command to grant all users read permission for the object stored in your bucket:

    gsutil acl ch -u AllUsers:R gs://my-awesome-bucket/kitten.png

    If successful, the command returns:

    Updated ACL on gs://my-awesome-bucket/kitten.png

    Now anyone can get your object.

  2. To remove this permission, use the command:

    gsutil acl ch -d AllUsers gs://my-awesome-bucket/kitten.png

    If successful, the command returns:

    Updated ACL on gs://my-awesome-bucket/kitten.png

    You have removed public access to this object.

answered Oct 24, 2019 by Sirajul
• 59,230 points
How do i give access to the cloud storage bucket to a specific user?

Related Questions In GCP

0 votes
1 answer

Is it possible to change the region of a Google Cloud Platform project?

There is no such thing as a ...READ MORE

answered Apr 6, 2022 in GCP by Korak
• 5,820 points
3,032 views
0 votes
1 answer
0 votes
1 answer

Is it possible to rename a project in GCP?

Yes, it is possible to rename your ...READ MORE

answered Sep 27, 2019 in GCP by Sirajul
• 59,230 points
21,500 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, 2019 in GCP by Sirajul
• 59,230 points
4,003 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,939 views
0 votes
1 answer
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,966 views
0 votes
1 answer

Is it possible to require labels on creation of any of the GCP resources?

The labels are a simple way to group resources that are connected or related to others. For example you'll ...READ MORE

answered Nov 5, 2019 in GCP by anonymous
• 59,230 points
2,338 views
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