调用Azure rest API时出错-请求的URI不代表服务器上的任何资源

问题描述

我正在调用Azure Rest API使用Web服务转换通过informatica云列出目录(内部容器)中的所有blob。但是在运行映射InvalidUri时出现错误,请求的URI不代表任何资源在服务器上。 API:https:// .blob.core.windows.net / training?restype = container&comp = list&prefix = training / Type / Class

解决方法

无法重现您的问题,REST API-List Blobs在我这方面工作正常。

您可以参考以下示例,确保您使用的示例与我的示例相同。

注意::使用prefix时,您已经在url中使用了容器名training,请不要在参数中再次使用它, prefix=Type/Class

请求网址:

GET https://accountname.blob.core.windows.net/training?restype=container&comp=list&prefix=Type/Class

请求标头:

x-ms-version = 2019-12-12

在邮递员中测试:

enter image description here

我的存储结构:

enter image description here