【发布时间】:2021-12-23 00:35:08
【问题描述】:
我尝试使用请求在 Azure 存储帐户中获取列表文件系统及其属性:
https://<account_name>.dfs.core.windows.net/?resource=account
一个标题Bearer 并得到回应
"error": {
"code": "AuthorizationPermissionMismatch",
"message": "This request is not authorized to perform this operation using this ******"
}
但是当我请求列表路径时:
https://<account_name>.dfs.core.windows.net/<filesystem>?recursive=true&resource=filesystem
我得到了正确数据的响应。
你能给我一些建议吗?
附:我的身份验证参数。 enter image description here
【问题讨论】:
-
嗨,@AnsumanBal-MT!对于列表文件系统,我只使用 "resource" = "account"
-
我的意思是在标题中是否包含 x-ms-version 和 x-ms-date 并且我还可以知道分配给服务主体的 RBAC 角色是什么?
-
我尝试使用 x-ms-version。反应是一样的。我是此存储帐户的贡献者。
-
所以您使用隐式流来获取不记名令牌或客户端凭据?
-
我将我的身份验证参数添加到描述中。感谢您的回复!
标签: rest azure-storage azure-data-lake-gen2