Azure Blob存储:如何以长期运行和可恢复的方式枚举Blob? [英] Azure Blob Storage: How to enumerate blobs in long-running and recoverable fashion?

查看:89
本文介绍了Azure Blob存储:如何以长期运行和可恢复的方式枚举Blob?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个冗长的操作中,我需要枚举数百万个blob.从列表Blob文档,我m仍然存在以下问题:

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:

  • NextMarker值的持续时间或到期时间是多少?
  • 我可以在其他HTTPS连接上使用NextMarker的值吗?可能是来自另一台机器(IP地址)?
  • 我可以使用NextMarker的相同值多次调用List Blobs API吗?他们都将返回下一页吗? (我可以确定每个呼叫的页面可能会有所不同-我不需要100%的可靠性).
  • 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).

推荐答案

如您在此

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. 没有NextMarker值的到期时间.
  2. 您可以在其他HTTPS连接上或从另一台机器(IP地址)上使用它.
  3. 您可以使用相同的NextMarker值多次调用List Blobs API,只要您没有在两个List Blobs请求之间更改容器的内容,它们都会返回下一页.

这篇关于Azure Blob存储:如何以长期运行和可恢复的方式枚举Blob?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆