在 Rest API 中使用通配符列出 Azure 数据湖存储中的文件

List files in Azure data lake storage using wild cards in Rest API

我们能否在 Azure 数据湖存储第 2 代文件列表 Rest 中使用通配符 API?

根据这份文件: https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/list

如果我像这样调用 Rest,它会提供 artists 文件夹中的所有文件: https://storageaccount.dfs.core.windows.net/files?directory=files/artists&resource=filesystem&recursive=false

但是我只想要几个与我的搜索关键字匹配的文件,那么有没有办法进行通配符搜索?

目前,Azure 数据湖 gen2 Path - List 不支持通配符搜索。

但是,如果您注册 the public preview of multi-protocol access on Data Lake Storage, then blob APIs and Data Lake Storage Gen2 APIs can operate on the same data. So that you can take use of the list blobs api for your ADLS GEN2, then you can use the prefix url parameter to filter out some files. Note that this link,则包含 ADLS GEN2 的 blob api 的限制。

此外,您可以在 Data Lake Feedback form

上提交有关此 api 的反馈