获取与警报相关的 IP 信息 APIGet alert related IPs 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

检索与特定警报相关的所有 IP。Retrieves all IPs related to a specific alert.

限制Limitations

  1. 你可以根据配置的保留期查询上次更新的警报。You can query on alerts last updated according to your configured retention period.
  2. 此 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. 若要了解更多信息(包括如何选择权限),请参阅使用 Microsoft Defender for Endpoint APITo learn more, including how to choose permissions, see Use Microsoft Defender for Endpoint APIs

权限类型Permission type 权限Permission 权限显示名称Permission display name
ApplicationApplication Ip.Read.AllIp.Read.All "读取 IP 地址配置文件"'Read IP address profiles'
委派(工作或学校帐户)Delegated (work or school account) Ip.Read.AllIp.Read.All "读取 IP 地址配置文件"'Read IP address profiles'

备注

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

  • 用户至少需要具有以下角色权限:"查看数据"权限 (有关详细信息,请参阅创建和管理) The user needs to have at least the following role permission: 'View Data' (See Create and manage roles for more information)
  • 用户需要具有与警报关联的设备的访问权限,根据设备组设置 (请参阅创建和管理 设备 组,了解) The user needs to have access to the device associated with the alert, based on device group settings (See Create and manage device groups for more information)

HTTP 请求HTTP request

GET /api/alerts/{id}/ips

请求标头Request headers

名称Name 类型Type 说明Description
AuthorizationAuthorization StringString Bearer {token}。Bearer {token}. 必需Required.

请求正文Request body

EmptyEmpty

响应Response

如果成功且警报和 IP 存在 - 200 正常。If successful and alert and an IP exist - 200 OK. 如果未找到警报 - 404 未找到。If alert not found - 404 Not Found.

示例Example

请求Request

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

GET https://api.securitycenter.microsoft.com/alerts/636688558380765161_2136280442/ips

响应Response

下面是一个响应示例。Here is an example of the response.

{
    "@odata.context": "https://api.securitycenter.microsoft.com/$metadata#Ips",    
    "value": [
                {
                    "id": "104.80.104.128"
                },
                {
                    "id": "23.203.232.228   
                }
                ...
    ]
}