创建对安全性/警报的Microsoft Graph Webhook订阅失败

时间:2018-11-14 20:27:18

标签: microsoft-graph microsoft-graph-security

当我尝试创建对安全/警报端点的Microsoft Graph Webhook订阅时,订阅创建失败,并显示一条通用消息,如下所示。将资源修改为“我/消息”会导致成功创建Webhook订阅,因此这似乎特定于安全/警报端点。我该如何超越?

enter image description here

请求的内容如下:

{
  "changeType": "created",
  "notificationUrl": "https://xxxxxxxxx.azurewebsites.net/api/graphnotifications",
  "resource": "security/alerts?$filter=vendorInformation/provider+eq+'ASC'",
  "expirationDateTime": "2018-11-15T11:00:00.0000000Z",
  "clientState": "secretClientValue"
}

2 个答案:

答案 0 :(得分:0)

很抱歉,您没有发布发送该请求的URL。根据安全警报的文档。

  

您可以使用Microsoft Graph webhooks订阅并接收有关Microsoft Graph Security实体更新的通知。

https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/security-api-overview

在该页面上,它说明了发布请求并给出了这样的示例

{{1}}

https://developer.microsoft.com/en-us/graph/docs/concepts/webhooks

您是否将请求正文发布到该网址?

答案 1 :(得分:0)

请对“ changeType”使用“ updated”。安全/警报对所有新警报或更新警报使用“已更新”。

相关问题