简体   繁体   中英

Access to Azure Data Lake Container by using a link

Is it possible to share the contents of a container from azure data lake? The goal is for anyone with the link to be able to download the files that are there. Person who click the link should see folders and files which are there and has ability to download.

You need to enable Allow Blob public access setting and change access level of container to Container. You can refer to this documentation . Then you can use this URL to list blobs in container: https://myaccount.blob.core.windows.net/mycontainer?restype=container&comp=list . It will return xml file, you can copy the URL of blob and paste it in your browser to download it.

Update: Yes, it's possible to use SAS key to do this while keeping your container is private.

You can generate SAS with list permission. And Use this URL to get blob list.

https://myaccount.blob.core.windows.net/mycontainer?mySAStoken&restype=container&comp=list

And you can download file with this:

 https://myaccount.blob.core.windows.net/mycontainer/myfile?mySAStoken

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