【问题标题】:Error in calling Azure rest API -The requested URI does not represent any resource on the server调用 Azure REST API 时出错 - 请求的 URI 不代表服务器上的任何资源
【发布时间】:2021-01-08 17:53:38
【问题描述】:

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

【问题讨论】:

    标签: azure cloud azure-data-lake informatica informatica-cloud


    【解决方案1】:

    无法重现您的问题,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
    

    在邮递员中测试:

    我的存储结构:

    【讨论】:

    • 感谢您的回复。它确实适用于邮递员。从 informatica 云调用 API 时,它会抛出错误。我已经为这个其余 API 创建了 swagger 文件。在 IICS 中使用这个文件提取文件中的详细信息。
    猜你喜欢
    • 1970-01-01
    • 2018-06-13
    • 2017-10-06
    • 2020-01-24
    • 1970-01-01
    • 2021-05-10
    • 2021-10-24
    • 2018-05-14
    • 2016-02-08
    相关资源
    最近更新 更多