面向开发者的 Azure 安全实现
Anushika Agarwal
Cloud Data Engineer
将大量杂货分多次搬运
更轻松、更快、更安全


/v1.0/users:(_默认_) 每页返回100 项

查询参数
$top: 每页项目数。
$skip: 偏移量;跳过前 N 个项目

https://graph.microsoft.com/v1.0/groups?$top=2

一个负载 -> 一个响应,含全部结果
优势
限制

端点
https://graph.microsoft.com/v1.0/$batch使用 $batch,而非 users 等具体资源

requestsrequests 为数组(最多20 项){ "requests":
[ {
"id": "1",
"method": "GET",
"url": "/me/memberOf"
},
{
"id": "2",
"method": "GET",
"url": "/me/planner/tasks"
} ]
}
每个请求项需包含
id:用于匹配响应的唯一标签method:GET/POST/PATCH/DELETEurl:相对路径请求头:Content-Type: application/json
{ "requests":
[ {
"id": "1",
"method": "GET",
"url": "/me/memberOf"
},
{
"id": "2",
"method": "GET",
"url": "/me/planner/tasks"
} ]
}
{
"responses": [
{ "id": "1",
"status": 200,
"body": { "value": [/* ... */]}},
{
"id": "2",
"status": 403,
"body": { "error": [/* ... */]}}
]
}
每个响应项包含
id:与原请求匹配
status:该项的 HTTP 状态
200:OK 403:Forbiddenheaders:(如 Content-Type)
body:数据或错误对象
{
"responses": [
{ "id": "1",
"status": 200,
"body": { "value": [/* ... */]}},
{
"id": "2",
"status": 403,
"body": { "error": [/* ... */]}}
]
}
面向开发者的 Azure 安全实现