Microsoft Graph API-是否可以获取所有服务主体? [英] Microsoft Graph API - Is there a way to get all the service principals?

查看:249
本文介绍了Microsoft Graph API-是否可以获取所有服务主体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用此查询 https://graph.microsoft.com/beta/serviceprincipals ,它显示了100个服务主体,而此查询 https://graph的总数为215. microsoft.com/beta/servicePrincipals/$count

Using this query https://graph.microsoft.com/beta/serviceprincipals , it shows 100 service principals, whereas the total count is 215 with this query https://graph.microsoft.com/beta/servicePrincipals/$count

如何获取服务人员的完整列表?

How can I get the entire list of serviceprincipals?

参考: https://docs.microsoft.com/zh-cn/graph/api/serviceprincipal-list?view=graph-rest-beta&tabs=http

推荐答案

默认情况下,大多数REST API(包括Graph API)都返回100条记录的结果.如果您需要所有数据,则需要使用 count 顶部一起或跳过哪个动作类似于分页.

By Default, Most of the REST APIs including Graph API returns a result of 100 records. if you want all the data you need to make use of count and top together or skip which acts similar to pagination.

https://graph.microsoft.com/beta/servicePrincipals/$ top ="totalCount"

这篇关于Microsoft Graph API-是否可以获取所有服务主体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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