Azure表存储返回404 API调用的资源未找到
我想查询 Azure 中的表存储。我使用的网址如下:
https://SA-name.table.core.windows.net/table-name()
我得到回复:
ResourceNotFound The specified resource does not exist. RequestId:id Time:2022-03-18T07:25:18.4393071Z
我的问题是,如何将存储帐户
中的表存储
设置为公共访问?
I want to query table storage in Azure. Im using url like:
https://SA-name.table.core.windows.net/table-name()
and i get a response:
ResourceNotFound The specified resource does not exist. RequestId:id Time:2022-03-18T07:25:18.4393071Z
My question is, how to set Table storage
in Storage account
to public access?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该错误可能是因为在创建 Azure 表时,访问级别默认为私有,不允许访问资源。
但
请注意:只有 Azure Blob 或 Blob 容器才能获得未经身份验证的公共访问权限。
您需要提供带有授权标头的请求,如下所述:authorize-with-shared-key
或者使用共享访问签名,如下所述:storageservices/delegate-使用共享访问签名进行访问。
URI 的访问策略部分指示共享访问签名有效的时间段以及要授予用户的权限。 指定-访问策略
The error maybe because, while creating the Azure table, the Access level is private by default and not allowing to access the resources.
But
please Note: that Only Azure blobs or blob containers can be given unauthenticated public access.
You need to provide request with Authorization header as explained here:authorize-with-shared-key
Or use a shared access signature, as described here:storageservices/delegate-access-with-shared-access-signature.
The access policy portion of the URI indicates the period of time over which the shared access signature is valid and the permissions to be granted to the user. specifying-the-access-policy