alertRecord: getPortalNotifications

Namespace: microsoft.graph.deviceManagement

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Get a list of all notifications that one or more users can access, from the Microsoft Endpoint Manager admin center.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CloudPC.Read.All CloudPC.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

HTTP request

GET /deviceManagement/monitoring/alertRecords/getPortalNotifications

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this function returns a 200 OK response code and a collection of microsoft.graph.deviceManagement.portalNotification objects in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/deviceManagement/monitoring/alertRecords/getPortalNotifications

Response

The following example shows the response.

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

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.deviceManagement.portalNotification)",
    "value": [
        {
            "id": "6575ceea-1d1c-48f1-b6af-01b98fbde246",
            "alertRuleId": "30070507-6514-443b-8fa5-06979cedacdf",
            "alertRecordId": "6c46a7ba-e78a-45e5-a81c-179ab8fd3e8e",
            "alertRuleName": "Upload failure for Device Images",
            "alertRuleTemplate": "cloudPcImageUploadScenario",
            "isPortalNotificationSent": true,
            "severity": "warning",
            "alertImpact": {
                "value": 2,
                "aggregationType": "count"
            }
        },
        {
            "id": "f2c9ef57-44b8-4783-87e6-e4131a9c1008",
            "alertRuleId": "215c55cc-b1c9-4d36-a870-be5778101714",
            "alertRecordId": "44336915-dfcb-479b-a4d6-54bd66fa1ad6",
            "alertRuleName": "Azure network connection failure impacting Cloud PCs",
            "alertRuleTemplate": "cloudPcOnPremiseNetworkConnectionCheckScenario",
            "isPortalNotificationSent": true,
            "severity": "warning",
            "alertImpact": {
                "value": 100,
                "aggregationType": "count"
            }
        }
    ]
}