Azure Blob Storage: How to enumerate blobs in long

2019-08-03 04:17发布

问题:

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.