调用Azure REST API时如何使用分页

问题描述 投票:0回答:1

我只是使用一个简单的逻辑应用程序来调用整个Azure VM列表,但只返回前50个,以及NextLink分页。我不太确定如何调用其余的结果。

我一直在看MS页面,但我仍然不确定需要做什么:https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/listall#virtualmachinelistresult

这可以通过HTTP请求中的标头来完成吗?

enter image description here

分页结果:enter image description here

rest azure pagination azure-logic-apps
1个回答
0
投票

如果您注意到,nextLink的值是一个URL。您将仅使用此URL来获取下一组结果。

© www.soinside.com 2019 - 2024. All rights reserved.