0

我的谷歌应用引擎应用程序引用存储桶中的图像。我使用开发者控制台上传了它们。现在当我加载我的应用程序并发生错误时。

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

我可以通过使用开发人员控制台更改"All Authenticated Users"每个对象来修复此错误。实际上,这是一项耗时的工作,因为我的存储桶中有很多图像。

有没有办法通过 gsutil 为我的存储桶中的所有对象"All authenticated user"设置权限?

4

1 回答 1

1

是的,这是可能的,你可以使用这样的东西:

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

欲了解更多信息:文档

于 2014-04-24T10:21:21.017 回答