简体   繁体   中英

Rest API to get the list of files inside the container/directory/ in AZURE storage

I have a container called 'services'.Inside the Container , i have a directory called 'Test'.how we can get the list of blobs inside the directory test.I have few kept few CSVs inside the test. Need the rest api to get the list of the files. However i am able to get the list of items inside the container easily using below Rest API https://myaccount.blob.core.windows.net/services?restype=container&comp=list

i tried https://myaccount.blob.core.windows.net/services/Test?restype=directory&comp=list but it is not working. Please help to get the coorect param value or rest API to find the list of items inside the directory

https://myaccount.blob.core.windows.net/services/Test?restype=directory&comp=list&prefix=Test/

The doc:

https://docs.microsoft.com/en-us/rest/api/storageservices/list-blobs#uri-parameters

Just add a param prefix is ok.

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