Menerapkan Keamanan Azure untuk Pengembang
Anushika Agarwal
Cloud Data Engineer
Bawa belanjaan dalam beberapa kali perjalanan
Lebih ringan, cepat, dan aman



/v1.0/users : (default) Mengembalikan 100 item per halaman

Parameter kueri
$top: jumlah item per halaman.
$skip: offset; mulai setelah N item pertama

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

Satu payload -> satu respons berisi semua hasil
Manfaat
Batas

Endpoint
https://graph.microsoft.com/v1.0/$batch$batch menggantikan resource spesifik seperti users

requestsrequests adalah array (hingga 20 item){ "requests":
[ {
"id": "1",
"method": "GET",
"url": "/me/memberOf"
},
{
"id": "2",
"method": "GET",
"url": "/me/planner/tasks"
} ]
}
Setiap item permintaan perlu
id: label unik untuk mencocokkan responsmethod: (GET/POST/PATCH/DELETE)url: path relatifHeader: 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": [/* ... */]}}
]
}
Setiap item respons berisi
id: cocok dengan permintaan asal
status: status HTTP untuk item itu
200: OK 403: Dilarangheaders: (mis., Content-Type)
body: data atau objek error
{
"responses": [
{ "id": "1",
"status": 200,
"body": { "value": [/* ... */]}},
{
"id": "2",
"status": 403,
"body": { "error": [/* ... */]}}
]
}
Menerapkan Keamanan Azure untuk Pengembang