简体   繁体   English

谷歌云存储权限 - 仅创建和删除

[英]google cloud storage permissions - create and delete only

I would like to use a service account and give it storage.objects.create and storage.objects.delete (basically, so when I use this account, I can upload, re-upload, and delete, but NOT list or read a bucket).我想使用一个服务帐户并给它 storage.objects.create 和 storage.objects.delete (基本上,所以当我使用这个帐户时,我可以上传、重新上传和删除,但不能列出或读取存储桶)。 I see pre-configured storage roles, eg 'Storage Object Creator', which has the create aspect (and works for create, but can't overwrite or delete).我看到预配置的存储角色,例如“Storage Object Creator”,它具有创建方面(并且适用于创建,但不能覆盖或删除)。 I assume I need to create a Role.我假设我需要创建一个角色。 I seemed to be able to do that, but then could not seem to find that 'Custom Role' when trying to add a role to the service account.我似乎能够做到这一点,但是在尝试向服务帐户添加角色时似乎找不到“自定义角色”。 So I guess I'm asking 'how do i add a custom role to a service account'?所以我想我在问'如何向服务帐户添加自定义角色'? I was doing all of this through the web ui.我通过 web ui 完成所有这些工作。 Any help appreciated.任何帮助表示赞赏。 br, Simon兄弟,西蒙

I tested and it works.我测试过,它有效。 You can find it in the custom section您可以在自定义部分中找到它

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM