VSC-Service-Account 858476cf2f CI Update
2019-06-04 22:13:57 +00:00

4.1 KiB

title, description, keywords, search.product, ms.prod, ms.mktglfcycl, ms.sitesec, ms.pagetype, ms.author, author, ms.localizationpriority, manager, audience, ms.collection, ms.topic
title description keywords search.product ms.prod ms.mktglfcycl ms.sitesec ms.pagetype ms.author author ms.localizationpriority manager audience ms.collection ms.topic
Get domain related alerts API Retrieves a collection of alerts related to a given domain address. apis, graph api, supported apis, get, domain, related, alerts eADQiWindows 10XVcnh w10 deploy library security macapara mjcaparas medium dansimp ITPro M365-security-compliance article

Get domain related alerts API

Applies to:

Retrieves a collection of alerts related to a given domain address.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Use Microsoft Defender ATP APIs

Permission type Permission Permission display name
Application Alert.Read.All 'Read all alerts'
Application Alert.ReadWrite.All 'Read and write all alerts'
Delegated (work or school account) Alert.Read 'Read alerts'
Delegated (work or school account) Alert.ReadWrite 'Read and write alerts'

Note

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)
  • Response will include only alerts, associated with machines, that the user have access to, based on machine group settings (See Create and manage machine groups for more information)

HTTP request

GET /api/domains/{domain}/alerts

Request headers

Header Value
Authorization String

Request body

Empty

Response

If successful and domain exists - 200 OK with list of alert entities. If domain does not exist - 404 Not Found.

Example

Request

Here is an example of the request.

[!includeImprove request performance]

GET https://api.securitycenter.windows.com/api/domains/client.wns.windows.com/alerts

Response

Here is an example of the response.

HTTP/1.1 200 OK
Content-type: application/json

{
    "@odata.context": "https://api.securitycenter.windows.com/api/$metadata#Machines",
    "value": [
        {
            "id": "441688558380765161_2136280442",
            "incidentId": 8633,
            "assignedTo": "secop@contoso.com",
            "severity": "Low",
            "status": "InProgress",
            "classification": "TruePositive",
            "determination": "Malware",
            "investigationState": "Running",
            "category": "MalwareDownload",
            "detectionSource": "WindowsDefenderAv",
            "threatFamilyName": "Mikatz",
            "title": "Windows Defender AV detected 'Mikatz', high-severity malware",
            "description": "Some description",
            "alertCreationTime": "2018-11-25T16:19:21.8409809Z",
            "firstEventTime": "2018-11-25T16:17:50.0948658Z",
            "lastEventTime": "2018-11-25T16:18:01.809871Z",
            "resolvedTime": null,
            "machineId": "9d80fbbc1bdbc5ce968f1d37c72384cbe17ee337"
        },
        {
            "id": "121688558380765161_2136280442",
            "incidentId": 4123,
            "assignedTo": "secop@contoso.com",
            "severity": "Low",
            "status": "InProgress",
            "classification": "TruePositive",
            "determination": "Malware",
            "investigationState": "Running",
            "category": "MalwareDownload",
            "detectionSource": "WindowsDefenderAv",
            "threatFamilyName": "Mikatz",
            "title": "Windows Defender AV detected 'Mikatz', high-severity malware",
            "description": "Some description",
            "alertCreationTime": "2018-11-24T16:19:21.8409809Z",
            "firstEventTime": "2018-11-24T16:17:50.0948658Z",
            "lastEventTime": "2018-11-24T16:18:01.809871Z",
            "resolvedTime": null,
            "machineId": "9d80fbbc1bdbc5ce968f1d37c72384cbe17ee337"
        }
    ]
}