如何使用节点 js 或任何其他方式列出所有 azure 容器?
How to list all azure container using nodejs or any otherway?
有什么方法可以列出 Azure 存储帐户中的所有容器吗?
如果是nodejs对我很有帮助,否则请建议我列出所有容器的方法。
您可能正在寻找 List Containers operation within the Blob Service REST API
您可以在 azure-storage-node SDK (sample code here 下尝试 blobService.listContainersSegmented。
对于未来的 google 员工:参考 azure-storage-node SDK mentioned at the accepted answer is now old (will be deprecated soon). The new sdk for JS (both for node and browser environments) is called azure-sdk-for-js can be found here。
要列出所有容器,您可以使用相同的 listContainersSegmented 函数,但现在它是 ServiceURL class 的一部分,关于如何使用它的示例代码可以在 here 下找到第 "show containers names".
节
本文档还包括一些与 blob 相关的其他基本和有用的东西,所以玩得开心:)
有什么方法可以列出 Azure 存储帐户中的所有容器吗?
如果是nodejs对我很有帮助,否则请建议我列出所有容器的方法。
您可能正在寻找 List Containers operation within the Blob Service REST API
您可以在 azure-storage-node SDK (sample code here 下尝试 blobService.listContainersSegmented。
对于未来的 google 员工:参考 azure-storage-node SDK mentioned at the accepted answer is now old (will be deprecated soon). The new sdk for JS (both for node and browser environments) is called azure-sdk-for-js can be found here。
要列出所有容器,您可以使用相同的 listContainersSegmented 函数,但现在它是 ServiceURL class 的一部分,关于如何使用它的示例代码可以在 here 下找到第 "show containers names".
节本文档还包括一些与 blob 相关的其他基本和有用的东西,所以玩得开心:)