简体   繁体   中英

Looking for REST API to list all Containers of Azure Data Lake Gen2 Storage

I want to get all available Container Names from a specified Azure Data Lake Gen2 Storage as the image below.

在此处输入图像描述

I found these two posts from MS documentation, but it does not satisfy my requirement.

https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/filesystem/list

https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/list

Is there REST APIs that I can get all available Container Names from a specified Azure DL2 Storage?

Since Data Lake Gen 2 accounts are built on top of Blob Storage, you can use Blob Storage REST API to perform most of the operations.

To list containers, you would use List Containers REST API : https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2?tabs=azure-ad .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM