gpt4 book ai didi

azure - 此 Azure 存储帐户容器 REST API 中要传递哪些参数?

转载 作者:行者123 更新时间:2023-12-03 02:00:04 25 4
gpt4 key购买 nike

API链接:https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2?tabs=azure-ad#Request

enter image description here

如果我尝试不使用 header ( token ),则会收到以下错误:

<?xml version="1.0" encoding="utf-8"?>
<Error>
<Code>ResourceNotFound</Code>
<Message>The specified resource does not exist.
RequestId:<guid_id>
Time:2023-06-30T08:03:13.9508663Z</Message>
</Error>

最佳答案

我已在我的环境中重现了该问题,并能够通过使用获取结果 https://myaccount.blob.core.windows.net/?comp=list 网址

我已经生成了如下所示的承载 token ,在请求 token 时将资源名称指定为 https://storage.azure.com

enter image description here

然后通过包含 x-ms-version: 2017-11-09 调用 https://myaccount.blob.core.windows.net/?comp=list URL > 与不记名 token 一起出现在 header 中。

enter image description here

请引用ms docs .

关于azure - 此 Azure 存储帐户容器 REST API 中要传递哪些参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76587119/

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