Allow Public Read access on a GCS bucket?

后端 未结 6 1447
鱼传尺愫
鱼传尺愫 2020-12-07 23:17

I am trying to allow anonymous (or just from my applications domain) read access for files in my bucket.

When trying to read the files I get

```

<         


        
6条回答
  •  情深已故
    2020-12-07 23:45

    Using IAM roles, to make the files readable, and block listing:

    gsutil iam ch allUsers:legacyObjectReader gs://bucket-name
    

    To make the files readable, and allow listing:

    gsutil iam ch allUsers:objectViewer gs://bucket-name
    

提交回复
热议问题