在使用azure中的安全图api时,当我到达有效负载中的最后一组数据时,@data.nextlink丢失了,所以我无法获取下一组数据?
发布于 2021-01-06 09:58:27
我仔细阅读了Graph api和Security Graph api,发现当当前页面数据完全加载时,应该没有@odata.nextlink参数。
当您看到我的测试结果时,我认为当 $top 等于odata count时,这个设计可能需要改进。
由于所有数据都已加载,因此没有您提到的下一页数据。
示例
查询本接口
我知道这个接口在访问后会返回63个数据。
https://graph.microsoft.com/beta/security/secureScores?$top=63&$count=true
结果

查询@odata.nextLink。

当为$top=63时,虽然下一页上没有数据,但仍然会有@odata.nextLink参数。
当为$top=64时,我们将看到@odata.nextLink参数消失了。

https://stackoverflow.com/questions/65576713
复制相似问题