获取事件信息 APIGet incident information API

适用于:Applies to:

想要体验 Microsoft Defender for Endpoint?Want to experience Microsoft Defender for Endpoint? 注册免费试用版。Sign up for a free trial.

备注

如果你是美国政府客户,请使用 Microsoft Defender for Endpoint 中针对美国政府客户的 URI。If you are a US Government customer, please use the URIs listed in Microsoft Defender for Endpoint for US Government customers.

提示

为了提高性能,可以使用距离地理位置更近的服务器:For better performance, you can use server closer to your geo location:

  • api-us.securitycenter.microsoft.comapi-us.securitycenter.microsoft.com
  • api-eu.securitycenter.microsoft.comapi-eu.securitycenter.microsoft.com
  • api-uk.securitycenter.microsoft.comapi-uk.securitycenter.microsoft.com

API 说明API description

按 ID 检索特定事件Retrieves a specific incident by its ID

限制Limitations

  1. 此 API 的速率限制是每分钟 100 个调用和每小时 1500 个调用。Rate limitations for this API are 100 calls per minute and 1500 calls per hour.

权限Permissions

若要调用此 API,需要以下权限之一。One of the following permissions is required to call this API.

权限类型Permission type 权限Permission 权限显示名称Permission display name
ApplicationApplication Incident.Read.AllIncident.Read.All "读取所有事件"'Read all Incidents'
ApplicationApplication Incident.ReadWrite.AllIncident.ReadWrite.All "读取和写入所有事件"'Read and write all Incidents'
委派(工作或学校帐户)Delegated (work or school account) Incident.ReadIncident.Read "读取事件"'Read Incidents'
委派(工作或学校帐户)Delegated (work or school account) Incident.ReadWriteIncident.ReadWrite "读取和写入事件"'Read and write Incidents'

备注

使用用户凭据获取令牌时:When obtaining a token using user credentials:

  • 用户至少需要具有以下角色权限:"查看数据"The user needs to have at least the following role permission: 'View Data'
  • 响应将仅包括用户向其中公开的事件The response will only include incidents that the user is exposed to

HTTP 请求HTTP request

GET .../api/incidents/{id} 

请求标头Request headers

名称Name 类型Type 说明Description
AuthorizationAuthorization 字符串String Bearer {token}。Bearer {token}. 必需Required.

请求正文Request body

EmptyEmpty

响应Response

如果成功,此方法在响应正文中返回 200 OK 和事件实体。If successful, this method returns 200 OK, and the incident entity in the response body. 如果未找到具有指定 ID 的事件 - 404 未找到。If incident with the specified id was not found - 404 Not Found.

示例Example

请求Request

下面是一个请求示例。Here is an example of the request.

GET https://api.security.microsoft.com/api/incidents/{id}