1
votes

I created a google cloud storage bucket and set it's ACL to public-read.

What is the unauthenticated URI to objects in my new bucket?

I tried this:

https://www.googleapis.com/storage/v1/my-new-bucket/my-object

as outlined here but it returns "Not found"

2

2 Answers

3
votes

Here's an example public object URL: http://pub.storage.googleapis.com/shakespeare/rose.txt

Other examples of the same resource:

https://storage.googleapis.com/pub/shakespeare/rose.txt https://pub.storage.googleapis.com/shakespeare/rose.txt

Our JSON API also allows for object downloads, but it's not designed for serving web requests.These URLs will usually involve some redirects and/or the server instructing the browser to treat the object as an attachment:

https://www.googleapis.com/storage/v1/b/pub/o/shakespeare%2Frose.txt?alt=media

1
votes

To access public objects, you need to edit its permissions by following these steps either for an individual object or a group of objects. After you set your permissions, a link icon will appear in the public access column. That's the public URL for your object.