gpt4 book ai didi

c# - 是否可以为存储帐户中的所有容器获取单一共享访问签名?

转载 作者:行者123 更新时间:2023-12-03 01:38:19 25 4
gpt4 key购买 nike

正如标题所示,我正在寻找一个共享访问签名来访问存储帐户中存在的所有容器。

目前,我必须分别为每个容器获取共享访问签名,以便为我试图避免的每个容器创建单独的外部数据源

这可能吗?

最佳答案

是的,完全有可能这样做。您需要做的是获取帐户共享访问签名(帐户 SAS)

根据帐户 SAS 中授予的权限,它将适用于该存储帐户中的所有 Blob 容器(和 Blob)。

您可以在此处了解有关 Account SAS 的更多信息:https://learn.microsoft.com/en-us/rest/api/storageservices/delegating-access-with-a-shared-access-signature .

来自上述链接:

An account-level SAS, introduced with version 2015-04-05. The account SAS delegates access to resources in one or more of the storage services. All of the operations available via a service SAS are also available via an account SAS. Additionally, with the account SAS, you can delegate access to operations that apply to a given service, such as Get/Set Service Properties and Get Service Stats. You can also delegate access to read, write, and delete operations on blob containers, tables, queues, and file shares that are not permitted with a service SAS. See Constructing an Account SAS for more information about account SAS.

关于c# - 是否可以为存储帐户中的所有容器获取单一共享访问签名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56141634/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com