GET
请求列出已添加的公司设备标识符的工作原理:
https://graph.microsoft.com/beta/deviceManagement/importedDeviceIdentities
字符串POST
请求添加公司标识如下,我收到错误:
https://graph.microsoft.com/beta/deviceManagement/importedDeviceIdentities
{
"@odata.type": "#microsoft.graph.importedDeviceIdentity",
"importedDeviceIdentifier": "01HW0000",
"importedDeviceIdentityType": "serialNumber",
"lastContactedDateTime": "2019-12-31T23:58:44.2908994-08:00",
"description": "C02CCCCC",
"enrollmentState": "unknown",
"platform": "macOS"
}
的数据
回复:
{
"error": {
"code": "No method match route template",
"message": "No OData route exists that match template ~/singleton/navigation with http verb POST for request /DeviceEnrollmentFE/StatelessDeviceEnrollmentFEService/deviceManagement/importedDeviceIdentities.",
"innerError": {
"request-id": "be06d7c6-9016-4684-9a82-d65b50d333eb",
"date": "2020-01-04T17:33:07"
}
}
}
型
1条答案
按热度按时间lhcgjxsq1#
我已经对Intune门户的正确调用进行了逆向工程,下面是一个可用的PowerShell示例。请注意,您需要Graph权限“DeviceManagementServiceConfig.ReadWrite.All”。
字符串