简体   繁体   English

在Google云端存储分区/对象上设置“域”权限-仅UI或API?

[英]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.

相关问题 Google Cloud Platform权限问题(发布/订阅->数据流-> Google Cloud Storage存储桶) - Google Cloud Platform permission question (pub/sub -> Dataflow -> Google Cloud Storage bucket) Google云端存储设置权限给出了错误的请求错误Java JSON API - Google Cloud Storage setting permissions gives bad request errors Java JSON API 谷歌云存储权限 - 仅创建和删除 - google cloud storage permissions - create and delete only 是否可以向非 Google 管理的电子邮件地址授予对 Google Cloud Storage 存储分区中对象的访问权限? - Is it possible to grant access to objects in a Google Cloud Storage bucket to non-Google adminstered email addresses? 我的 GCP 存储桶仅在我登录 Google 时显示图像 - My GCP storage bucket is only displaying images when I'm logged into Google Google Drive API插入权限仅返回ID - Google Drive API insert permission only returns id Google Drive REST API-仅一个用户的无效权限值 - Google Drive REST API - Invalid permission value for only one user 权限被拒绝的 Google Cloud 文件夹 - Google Cloud Folders with Permission Denied Google Cloud Dataflow 权限问题 - Google Cloud Dataflow permission issues Google云存储访问问题 - Google cloud storage access issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM