質問

My google app engine application refers images in a storage bucket. I uploaded them using the Developer Console. Right now when I load my application and error occurs.

Fatal error: Uncaught exception 'google\appengine\api\cloud_storage\CloudStorageException' with message 'Access denied to image.' in ...

I can fix this error by changing the "All Authenticated Users" for each object using the Developer Console. Practically this is a time consuming job since I have lot of images in my bucket.

Is there a way to set "All authenticated user" permission for all the objects in my storage bucket through gsutil?

役に立ちましたか?

解決

Yes it's possible, you can use something like this:

gsutil -m acl ch -R -g AllAuth:R gs://my-bucket/

For more information : DOCUMENTATION

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top