首页 > 解决方案 > Graph Beta RiskDetection API 对“小于”$filter 与“$top”组合的查询失败

问题描述

我一直在查询 riskDetection API 并通过“DetectedDateTime”进行分页过滤,并仅在特定时间范围内获取事件。今天早上,这个 API 调用开始失败,只针对我们的一个租户,并且只针对 riskDetection 端点(identityRiskEvents 工作正常)

对于涉及的查询,我收到以下错误le

{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "request-id": "29ec0904-8655-43d2-a422-7e7554313906",
      "date": "2020-01-22T19:18:29"
    }
  }
}
// This one works
https://graph.microsoft.com/beta/riskDetections?$orderby=detecteddatetime+desc&top=500&filter=(detectedDateTime+ge+2020-01-19T18:06:04Z) 

// This one returns UnknownError
https://graph.microsoft.com/beta/riskDetections?$orderby=detecteddatetime+desc&top=500&filter=(detectedDateTime+ge+2020-01-19T18:06:04Z)

// This one works
https://graph.microsoft.com/beta/riskDetections?$orderby=detecteddatetime+desc&filter=(detectedDateTime+le+2020-01-19T18:06:04Z)  

似乎 $top 和 $filter=detectedDateTime+le+... 的组合导致错误。有没有人最近遇到过这个问题/知道这是 Microsoft 的问题,还是我的查询语法/其他问题?

标签: azure-active-directorymicrosoft-graph-api

解决方案


推荐阅读