允许在Google云端存储上公开共享文件 [英] Allowing publicly shared files on google cloud storage

查看:155
本文介绍了允许在Google云端存储上公开共享文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google云存储允许用户查看公开共享?在存储管理器中允许你直接共享一个URL数据。



我使用谷歌应用程序引擎并将数据发送到存储,但我想让它在默认情况下公开分享。



我该怎么做?他们的文档似乎没有提到任何关于这方面的内容,除了手工做这件事。



我使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆