是否可以将自定义权限模式附加到azure cosmos mongo db api中的权限除了all并读取? [英] Is it possible to attach custom permission mode to the permission in azure cosmos mongo db api apart from all and read?

查看:52
本文介绍了是否可以将自定义权限模式附加到azure cosmos mongo db api中的权限除了all并读取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




根据我的理解,我们只能使用在cosmos mongodb api中创建的自定义权限附加两种权限模式,即读取和全部(创建,读取,更新和删除)。


但我的要求是从权限中删除删除访问权限,以便附加用户无法删除特定收集器的mongodb对象。 / p>


此外,是否有任何方法或方法可以按月或按年增加资源令牌的使用期限?

解决方案

是的,您的理解部分正确。有
Master键

资源令牌
。主密钥是只读或读写(所有CRUD操作)。资源令牌使客户端能够根据已授予的权限读取,写入和删除Cosmos DB帐户中的资源。


Cosmos DB有一个与增加资源有关的Uservoice条目令牌寿命。请对此进行投票和评论,以使产品组能够使用此功能:


增加资源令牌有效期限(或)提供身份验证


我希望这些信息有用。


问候,


Mike


注意:如果此信息已回答您的问题,请将此标记为已回答,以帮助其他人寻找相同的解决方案。



According to my understanding, we can only attach two permission mode with the custom permissions created in cosmos mongodb api i.e. read and all(create, Read, update and delete).

But my requirement is to remove delete access from the permission so that attached users won't be able to delete the mongodb objects specifically collectors.

Also, is there any method or way by which we can increase the life of resource token by month or year?

解决方案

Yes, your understanding is partially correct. There are Master Keys and Resource Tokens. Master Keys are is either Read-Only or Read-Write (all CRUD operations). Resource Tokens enable clients to read, write, and delete resources in the Cosmos DB account according to the permissions they've been granted.

There is a Uservoice entry for Cosmos DB pertaining to increasing resource token lifespan. Please up-vote and comment on this to let the product group the desirability of this functionality:

Increase resource token validity limit (or) Provide authentication

I hope this information is helpful.

Regards,

Mike

Note: If this information answered your question please mark this as answered to help others looking for the same solution.


这篇关于是否可以将自定义权限模式附加到azure cosmos mongo db api中的权限除了all并读取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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