【问题标题】:what should be the powershell \ portal \ cli commands to see what are the current permissions for a certain blobpowershell \ portal \ cli 命令应该是什么,以查看某个 blob 的当前权限是什么
【发布时间】:2019-09-12 13:58:27
【问题描述】:

我创建了一个基于 URI 的对 Azure Blob 存储上的某个 Blob 的访问,并希望关闭此访问。有命令行代码可以管理吗?

【问题讨论】:

  • 基于 URI 的访问意味着它使用 sas 令牌? “关闭此访问”是什么意思?

标签: azure-blob-storage azure-cli azureportal


【解决方案1】:

假设“对某个 blob 的基于 URI 的访问”意味着您生成一个 SAS token 并附加到 blob 端点,如下所示:https://xxx.blob.core.windows.net/test1/metrics.PNG?sp=r&st=2019-09-13T01:38:08Z&se=2019-09-13T09:38:08Z&spr=https&sv=2018-03-28&sig=xxxx。

然后在url中,可以看到“sp=r”中的权限,“r”表示对blob的读取权限。

如果是基于sas token怎么关闭这个访问,就看如何生成sas token了,如下:

1.如果 sas 令牌未与 stored access policy 关联,则唯一的方法是重新生成帐户密钥。这种方式会影响使用该存储帐户的其他应用程序。

2.如果 sas 令牌与 stored access policy 相关联,那么您只需修改存储的访问策略,如修改过期日期等。

如果您有任何其他问题,请告诉我。

【讨论】:

    猜你喜欢
    • 2019-09-06
    • 2015-04-26
    • 1970-01-01
    • 1970-01-01
    • 2013-01-08
    • 1970-01-01
    • 2020-06-06
    • 2021-04-09
    • 1970-01-01
    相关资源
    最近更新 更多