Skip to content

Latest commit

 

History

History
161 lines (134 loc) · 6.57 KB

File metadata and controls

161 lines (134 loc) · 6.57 KB
title List impactedResources
description Get the impacted resources for a recommendation.
author ddeeps2610
ms.localizationpriority medium
ms.subservice entra-monitoring-health
doc_type apiPageType
ms.date 04/04/2024

List impactedResources

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Get the impactedResource objects for a recommendation.

[!INCLUDE national-cloud-support]

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.

[!INCLUDE permissions-table]

[!INCLUDE rbac-directory-recommendations-apis-read]

HTTP request

GET /directory/recommendations/{recommendationId}/impactedResources

Optional query parameters

This method supports the $select OData query parameter to help customize the response. It also supports $count as a URL segment to retrieve the raw count of impacted resources. That is, .../impactedResources/$count. For general information, see OData query parameters.

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 method returns a 200 OK response code and a collection of impactedResource objects in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/directory/recommendations/0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.TurnOffPerUserMFA/impactedResources

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

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

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#directory/recommendations('0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry')/impactedResources",
    "value": [
        {
          "id": "e97adb14-7c12-4363-8a80-d6ac86a51e2f",
          "subjectId": "1d9d9eb9-e956-4dab-881a-b4f4f35293ef",
          "recommendationId": "0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry",
          "resourceType": "app",
          "addedDateTime": "2022-03-19T09:40:39.0420371Z",
          "postponeUntilDateTime": null,
          "lastModifiedDateTime": "2022-04-04T20:43:28.9687029Z",
          "lastModifiedBy": "bc7fae74-90dd-4054-b38e-f2ccc8b7b904",
          "displayName": "Contoso IWA App Tutorial",
          "owner": null,
          "rank": 1,
          "portalUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Credentials/appId/1d9d9eb9-e956-4dab-881a-b4f4f35293ef",
          "apiUrl": null,
          "status": "completedBySystem",
          "additionalDetails": [
            {
              "key": "ExpiringCredentialsCount",
              "value": "1"
            }
          ]
        },
        {
          "id": "fd1482c2-3aab-4cad-8182-fc6adecf40ef",
          "subjectId": "ccec02c6-e69b-47d8-b6a0-c6cf9d491a4f",
          "recommendationId": "0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry",
          "resourceType": "app",
          "addedDateTime": "2022-03-19T09:40:39.0413974Z",
          "postponeUntilDateTime": null,
          "lastModifiedDateTime": "2022-04-15T04:24:09.7862983Z",
          "lastModifiedBy": "0ffbbb05-658e-4f32-ae3e-7e717d7d9c91",
          "displayName": "Contoso",
          "owner": null,
          "rank": 1,
          "portalUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Credentials/appId/ccec02c6-e69b-47d8-b6a0-c6cf9d491a4f",
          "apiUrl": null,
          "status": "completedBySystem",
          "additionalDetails": [
            {
              "key": "ExpiringCredentialsCount",
              "value": "1"
            }
          ]
        }
    ]
}