当我尝试创建对安全/警报端点的Microsoft Graph Webhook订阅时,订阅创建失败,并显示一条通用消息,如下所示。将资源修改为“我/消息”会导致成功创建Webhook订阅,因此这似乎特定于安全/警报端点。我该如何超越?
请求的内容如下:
{
"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"
}
答案 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”。安全/警报对所有新警报或更新警报使用“已更新”。