我想查询 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
我的问题是,如何将存储帐户
中的表存储
设置为公共(public)访问?
最佳答案
该错误可能是因为在创建 Azure 表时,访问级别默认为私有(private),不允许访问资源。
但是 请Note: 只能向 Azure blob 或 blob 容器授予未经身份验证的公共(public)访问权限。
Every request made against a storage service must be authorized, unless the request is for a blob or container resource that has been made available for public or signed access. Azure Storage supports optional anonymous public read access for containers and blobs. By default, anonymous access to your data is never permitted.
您需要提供带有授权 header 的请求,如下所述:authorize-with-shared-key
或者使用共享访问签名,如下所述:storageservices/delegate-access-with-shared-access-signature .
URI 的访问策略部分指示共享访问签名有效的时间段以及要授予用户的权限。 specifying-the-access-policy
关于Azure表存储返回404 API调用的资源未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71523644/