问题
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:
- There is no expiration time of NextMarker value.
- You can use it on a a different HTTPS connection or from another machine (IP address).
- 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