允许在Google云端存储上公开共享文件 [英] Allowing publicly shared files on google cloud storage
问题描述
我使用谷歌应用程序引擎并将数据发送到存储,但我想让它在默认情况下公开分享。
我该怎么做?他们的文档似乎没有提到任何关于这方面的内容,除了手工做这件事。
我使用python,但它可能没有太大区别。
您可以使用 GSUtil 工具,并在存储桶上设置和默认ACL 。
在默认ACL中,允许每个人都允许在存储桶上进行读取,在设置默认ACL后,存储桶中的每个新文件都将公开可用。
Google cloud storage allows users to check a "publicly shared?" field in the storage manager that allows you to share a URL to the data directly.
I'm using google app engine and sending data to the storage, but I would like to have it publicly shared by default.
How can I do this? Their docs does not seem to mention anything about this, except manually doing it.
I am using python but it probably doesn't make much of a difference.
You can use the GSUtil tool and set and Default ACL on the bucket.
In the default ACL allow everyone to allow READ on the bucket, after setting the default ACL every new file in the bucket will be publicly available.
这篇关于允许在Google云端存储上公开共享文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!