Google Cloud Role访问特定的发布/订阅主题

编程入门 行业动态 更新时间:2024-10-27 10:21:31
本文介绍了Google Cloud Role访问特定的发布/订阅主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以通过指定角色来允许您收听非常特定的发布/订阅主题而不是全部主题?

Is it possible to specify a Role in such a way that it allows you to listen to a very specific Pub/Sub topic rather than all of them?

推荐答案

角色适用于资源,因此最适当的问题是可以将策略设置为发布/订阅资源吗?"

Roles apply to a resource, so the most adequate question would be "Can a policy be set into a Pub/Sub resource?"

答案是肯定的,并且通过Pub/Sub API方法完成 projects.topics.setIamPolicy .对于该端点,您必须通过政策,该政策将允许您为角色 Owner , Editor 或 Viewer 设置绑定.

The answer is yes, and it's done through the Pub/Sub API method projects.topics.setIamPolicy. To that endpoint, you must pass a policy, which will allow you to set bindings for the roles Owner, Editor, or Viewer.

更多推荐

Google Cloud Role访问特定的发布/订阅主题

本文发布于:2023-11-24 11:17:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624989.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:主题   Google   Cloud   Role

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!