[英]Setting “domain” permission on google cloud storage bucket/object - UI or API only?
Is it possible to set this permission through the Cloud Console UI for cloud storage? 是否可以通过Cloud Console用户界面为云存储设置此权限? Or is it only settable through the API (for example, following the guidance in this post )
还是只能通过API设置(例如, 按照本文中的指导 )
In the documentation for Google's cloud storage , one of the defined permission scopes is "domain". 在Google的云存储文档中,定义的权限范围之一是“域”。 This allows you to specify that the read or write permission is granted to any authenticated user that is part of your Google Apps domain.
这样,您可以指定将读取或写入权限授予属于您的Google Apps域的任何经过身份验证的用户。
When accessing a storage container UI in the cloud console, you can set user or group permissions, but entering a naked domain with either "User" or "Group" selected results in an "Invalid Value" message when the changes are saved. 在云控制台中访问存储容器UI时,您可以设置用户或组权限,但是在保存更改后输入“用户”或“组”处于选定状态的裸域会导致“无效值”消息。
This setting is now exposed via the Cloud Console UI. 现在可以通过Cloud Console UI公开此设置。 You should notice 3 sections in the dropdown: user, group, and domain.
您应该在下拉菜单中注意到3个部分:用户,组和域。
The setting is also available via the API and via the command-line utility, gsutil. 也可以通过API和命令行实用程序gsutil进行设置。 To grant read access to the domain my-domain.org from gsutil, you'd do something like this:
要授予对gsutil对my-domain.org域的读取权限,您可以执行以下操作:
gsutil acl ch -g my-domain.org:R gs://bucket
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.