0

https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_mam_iosmanagedappregistration_create上的文档 表明应该可以使用 POST 到https来创建 iOS 托管应用注册://graph.microsoft.com/v1.0/deviceAppManagement/managedAppRegistrations。对记录的行为的任何排列都会导致以下响应:

{
  "error": {
    "code": "No method match route template",
    "message": "No OData route exists that match template ~/singleton/navigation with http verb POST for request /MAMAdmin/MAMAdminFEService/deviceAppManagement/managedAppRegistrations.",
    "innerError": {
        "request-id": "9338f5e5-bdb8-49f2-a887-362ddca6da97",
        "date": "2018-03-13T01:23:02"
    }
  }
}

这似乎表明缺少 POST 路由 - 是否有人成功使用此 api 创建托管应用程序注册?

我尝试了几种输入变体,包括删除此处其他帖子中提到的 odata 类型说明符。下面是一个可以使用图形资源管理器重现的失败请求示例 - 请注意,在尝试与 API 集成的应用程序中使用实际值时,我会遇到相同的错误:

 POST https://graph.microsoft.com/v1.0/deviceAppManagement/managedAppRegistrations

 {
   "@odata.type": "#microsoft.graph.iosManagedAppRegistration",
   "lastSyncDateTime": "2017-01-01T00:02:49.3205976-08:00",
   "applicationVersion": "Application Version value",
   "managementSdkVersion": "Management Sdk Version value",
   "platformVersion": "Platform Version value",
   "deviceType": "Device Type value",
   "deviceTag": "Device Tag value",
   "deviceName": "Device Name value",
   "flaggedReasons": [
 "rootedDevice"
   ],
   "userId": "User Id value",
   "appIdentifier": {
 "@odata.type": "microsoft.graph.iosMobileAppIdentifier",
 "bundleId": "Bundle Id value"
   },
   "version": "Version value"
 }
4

1 回答 1

0

这是一个文档错误。~/managedAppRegistrations 是一个只读集合。这些实体是在 MAM 启发式应用向 Microsoft Intune 注册时创建的。

问候,来自 MSFT 的 Alemeshet Alemu

于 2018-03-13T16:54:08.627 回答