Azure Blob Storage: How to enumerate blobs in long-running and recoverable fashion?

跟風遠走 提交于 2019-12-11 04:23:36

问题


I need to enumerate possibly millions of blobs in a lengthy operation. From the List Blobs documentation, I'm still left with the following questions:

  • What's the duration or expiration time of NextMarker value?
  • Can I use the value of NextMarker on a different HTTPS connection? Possibly from another machine (IP address)?
  • Can I call the List Blobs API multiple times with the same value for NextMarker? Will they all return the next page? (I'm ok if pages may differ on each call - I don't need 100% reliability).

回答1:


As you can see in this doc, NextMarker is just a string which stands for the next blob to enumerate. So the answers to your questions are:

  1. There is no expiration time of NextMarker value.
  2. You can use it on a a different HTTPS connection or from another machine (IP address).
  3. You can call the List Blobs API multiple times with the same value for NextMarker, they will all return the next page as long as you didn't change the content of the container between two List Blobs requests.


来源:https://stackoverflow.com/questions/43312065/azure-blob-storage-how-to-enumerate-blobs-in-long-running-and-recoverable-fashi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!