公共访问级别:BLOB与容器

发布于 2025-01-21 04:33:31 字数 574 浏览 1 评论 0 原文

容器 blob 公共访问级别之间有什么区别? (请参见下图上的蓝色框架)

根据 microsoft'> microsoft定义< /a>:

一个容器组织了一组BLOB,类似于文件系统中的目录。存储帐户可以包含一个无限数量的容器,并且容器可以存储无限数量的斑点。

但是我不明白与公共访问级别有什么关系。

What is the difference between Container and Blob when it comes to Public access level ? (see blue frame on below picture)

According to microsoft definition :

A container organizes a set of blobs, similar to a directory in a file system. A storage account can include an unlimited number of containers, and a container can store an unlimited number of blobs.

But I don't understand what is has to do with the public access level.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

她说她爱他 2025-01-28 04:33:31

简而言之,公共访问级别的控件是否可以仅使用资源的URL来匿名访问BLOB(或容器的属性)。

这里提供了不同公共访问级别的说明:

为了在文档中详细介绍,如果访问级别为:

  • 私有:您无法使用资源URL访问资源。例如,如果blob的URL是 https://account.blob.core.windows.net/container/container/blob.txt ,并且如果您尝试在浏览器中访问此资源,您将接收一个404错误,即使存在斑点。
  • blob :您可以使用URL下载斑点或获取其属性。但是,如果将访问级别设置为BLOB,则将无法访问容器的属性。
  • public :它类似于 blob 公共访问级别,但是如果将容器的ACL设置为公共,则可以在该容器中获取容器的属性以及列表blobs 。

Simply put, public access level controls if you can access a blob (or a container's properties) anonymously simply by using just the URL for the resource.

Explanation of different public access levels is provided here: https://learn.microsoft.com/en-us/rest/api/storageservices/get-container-acl.

To elaborate more on the documentation, if the access level is:

  • Private: You cannot access a resource by using the resource URL. For example, if your blob's URL is https://account.blob.core.windows.net/container/blob.txt and if you try to access this resource in a browser, you will receive a 404 error even though the blob is present.
  • Blob: You can download a blob or get its properties by using the URL. However you will not be able to access a container's properties if the access level is set as Blob.
  • Public: It is similar to Blob public access level but if the ACL for a container is set as public, you can get a container's properties as well as list blobs in that container.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文