SharedAccessBlobPermissions值“添加",“创建"和“写入"之间有什么区别? [英] What's the difference between the SharedAccessBlobPermissions values Add, Create and Write?

查看:150
本文介绍了SharedAccessBlobPermissions值“添加",“创建"和“写入"之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SharedAccessBlobPermissions <的可能值/a>是:

The possible values for SharedAccessBlobPermissions are:

  • 无(0)
  • 阅读(1)
  • 写(2)
  • 删除(4)
  • 列表(8)
  • 添加(16)
  • 创建(32)

AddCreateWrite有什么区别?我找不到任何可以说明这一点的文档.

What are the differences between Add, Create and Write? I can't find any documentation that clarifies this.

推荐答案

您可以在此处找到有关这些权限的信息:

You can find information about these permissions here: https://msdn.microsoft.com/en-us/library/azure/dn140255.aspx.

据我了解的有关这些权限的内容:

From what I understand reading about these permissions:

  • 添加:添加权限仅适用于附加Blob.您可以使用此权限将块添加到附加Blob.使用此权限无法进行其他操作.
  • 创建:创建"权限仅允许创建Blob,换句话说,您不能使用此权限来更新Blob.这将包括编写新的Blob,为现有的Blob拍摄快照或将Blob复制到新的Blob.
  • 写入:写入权限允许创建和更新Blob.这将包括创建或写入内容,属性,元数据或阻止列表,在blob上拍摄快照或管理租约并调整blob的大小(仅页面blob).
  • Add: Add permission is only applicable for append blobs. You use this permission to add a block to an append blob. No other operation is possible using this permission.
  • Create: Create permission only allows creation of blobs or in other words you can't update a blob with this permission. This would include writing a new blob, take a snapshot of an existing blob, or copy a blob to a new blob.
  • Write: Write permission allows creation and updation of blobs. This would include create or write content, properties, metadata, or block list, take a snapshot or manage lease on a blob and resize the blob (page blob only).

在我们的应用程序中,我们广泛使用共享访问签名,并且几乎所有blob相关操作都专门使用Write权限.

In our application, we use Shared Access Signature extensively and we make use of Write permission almost exclusively on all the blob related operations.

这篇关于SharedAccessBlobPermissions值“添加",“创建"和“写入"之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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