Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于创建设备的Intune azure图形api CompliancePolicystate返回400个错误请求_Api_Azure_Microsoft Graph Api_Intune - Fatal编程技术网

用于创建设备的Intune azure图形api CompliancePolicystate返回400个错误请求

用于创建设备的Intune azure图形api CompliancePolicystate返回400个错误请求,api,azure,microsoft-graph-api,intune,Api,Azure,Microsoft Graph Api,Intune,召唤 GET https://graph.microsoft.com/beta/managedDevices/dd9615c4-9d3b-4ece-9272-34a10e8fe908/ 回应 { "@odata.context": "https://graph.microsoft.com/beta/$metadata#managedDevices/$entity", "id": "dd9615c4-9d3b-4ece-9272-34a10e8fe908",

召唤

GET https://graph.microsoft.com/beta/managedDevices/dd9615c4-9d3b-4ece-9272-34a10e8fe908/
回应

 {
      "@odata.context": "https://graph.microsoft.com/beta/$metadata#managedDevices/$entity",
      "id": "dd9615c4-9d3b-4ece-9272-34a10e8fe908",
      "userId": null,
      "deviceName": "iPad Feb23",
      "hardwareInformation": {
        "serialNumber": null,
        "totalStorageSpace": 0,
        "freeStorageSpace": 0,
        "imei": "",
        "meid": null,
        "manufacturer": null,
        "model": null,
        "phoneNumber": null,
        "subscriberCarrier": null,
        "cellularTechnology": null,
        "wifiMac": null,
        "operatingSystemLanguage": null,
        "isSupervised": false,
        "isEncrypted": false,
        "isSharedDevice": false,
        "sharedDeviceCachedUsers": []
      },
      "ownerType": "personal",
      "deviceActionResults": [],
      "managementState": "managed",
      "enrolledDateTime": "2017-05-24T13:10:20.8964572Z",
      "lastSyncDateTime": "2017-05-24T15:16:02.6465376Z",
      "chassisType": "tablet",
      "operatingSystem": "iOS",
      "deviceType": "iPad",

  "complianceState": "compliant",
  "jailBroken": "False",
  "managementAgents": 2,
  "managementAgent": "mdm",
  "osVersion": "9.3.5",
  "easActivated": false,
  "easDeviceId": null,
  "easActivationDateTime": "0001-01-01T00:00:00Z",
  "aadRegistered": null,
  "enrollmentType": "userEnrollmentWithServiceAccount",
  "lostModeState": "disabled",
  "activationLockBypassCode": null,
  "emailAddress": null,
  "azureActiveDirectoryDeviceId": "00000000-0000-0000-0000-000000000000",
  "deviceRegistrationState": "registered",
  "deviceCategoryDisplayName": null,
  "isSupervised": false,
  "exchangeLastSuccessfulSyncDateTime": "0001-01-01T00:00:00Z",
  "exchangeAccessState": "none",
  "exchangeAccessStateReason": "none",
  "remoteAssistanceSessionUrl": "",
  "isEncrypted": false,
  "model": null,
  "manufacturer": null
}
    {
  "error": {
    "code": "No method match route template",
    "message": "No OData route exists that match template ~/entityset/key/navigation with http verb POST for request /StatelessDeviceConfigurationFEService/managedDevices('dd9615c4-9d3b-4ece-9272-34a10e8fe908')/deviceCompliancePolicyStates.",
    "innerError": {
      "request-id": "544c4ee2-a6de-4203-9c30-c3e589b77713",
      "date": "2017-05-24T15:48:30"
    }
  }
}
但当我试着发帖子的时候,似乎什么都不管用。。。根据这里的文件

它应该可以正常工作这个电话有什么问题

召唤

回应

 {
      "@odata.context": "https://graph.microsoft.com/beta/$metadata#managedDevices/$entity",
      "id": "dd9615c4-9d3b-4ece-9272-34a10e8fe908",
      "userId": null,
      "deviceName": "iPad Feb23",
      "hardwareInformation": {
        "serialNumber": null,
        "totalStorageSpace": 0,
        "freeStorageSpace": 0,
        "imei": "",
        "meid": null,
        "manufacturer": null,
        "model": null,
        "phoneNumber": null,
        "subscriberCarrier": null,
        "cellularTechnology": null,
        "wifiMac": null,
        "operatingSystemLanguage": null,
        "isSupervised": false,
        "isEncrypted": false,
        "isSharedDevice": false,
        "sharedDeviceCachedUsers": []
      },
      "ownerType": "personal",
      "deviceActionResults": [],
      "managementState": "managed",
      "enrolledDateTime": "2017-05-24T13:10:20.8964572Z",
      "lastSyncDateTime": "2017-05-24T15:16:02.6465376Z",
      "chassisType": "tablet",
      "operatingSystem": "iOS",
      "deviceType": "iPad",

  "complianceState": "compliant",
  "jailBroken": "False",
  "managementAgents": 2,
  "managementAgent": "mdm",
  "osVersion": "9.3.5",
  "easActivated": false,
  "easDeviceId": null,
  "easActivationDateTime": "0001-01-01T00:00:00Z",
  "aadRegistered": null,
  "enrollmentType": "userEnrollmentWithServiceAccount",
  "lostModeState": "disabled",
  "activationLockBypassCode": null,
  "emailAddress": null,
  "azureActiveDirectoryDeviceId": "00000000-0000-0000-0000-000000000000",
  "deviceRegistrationState": "registered",
  "deviceCategoryDisplayName": null,
  "isSupervised": false,
  "exchangeLastSuccessfulSyncDateTime": "0001-01-01T00:00:00Z",
  "exchangeAccessState": "none",
  "exchangeAccessStateReason": "none",
  "remoteAssistanceSessionUrl": "",
  "isEncrypted": false,
  "model": null,
  "manufacturer": null
}
    {
  "error": {
    "code": "No method match route template",
    "message": "No OData route exists that match template ~/entityset/key/navigation with http verb POST for request /StatelessDeviceConfigurationFEService/managedDevices('dd9615c4-9d3b-4ece-9272-34a10e8fe908')/deviceCompliancePolicyStates.",
    "innerError": {
      "request-id": "544c4ee2-a6de-4203-9c30-c3e589b77713",
      "date": "2017-05-24T15:48:30"
    }
  }
}

我是Microsoft Intune团队的工程师,专门致力于Microsoft Graph和Microsoft Intune之间的集成

在这种情况下,文档似乎存在问题,因为无法创建deviceCompliancePolicyState实体,它是显示设备符合性策略状态的只读实体。我将努力使文件得到更正。如果你能让我知道你试图通过创建一个deviceCompliancePolicyState实体来实现什么样的场景,我也许能为你指明正确的方向

希望有帮助


Peter

我正在开发定制的threat defnece连接器()我在一个设备上有一个定制的应用程序,可以检查恶意软件,…MITM。。。。当它检测到一些恶意活动时,我会将deviceCompliancePolicy设置为“Noncliant”,以便条件访问启动并处理其余部分,即阻止设备访问服务。我曾多次尝试联系支持部门,询问我们如何处理此事,但都无济于事……你现在能给我指出正确的方向吗?