Skip to content

Latest commit

 

History

History
146 lines (114 loc) · 5.26 KB

File metadata and controls

146 lines (114 loc) · 5.26 KB
title List jobs
description Get a list of all recovery jobs (both preview and recovery) across all snapshots.
author yuhko-msft
ms.date 03/04/2026
ms.localizationpriority medium
ms.subservice entra-id
doc_type apiPageType

List jobs

Namespace: microsoft.graph.entraRecoveryServices

[!INCLUDE beta-disclaimer]

Get a list of all recovery recoveryJobBase objects (both preview and recovery jobs) across all snapshots for the tenant.

[!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-entrarecoveryservices-apis-read]

HTTP request

GET /directory/recovery/jobs

Optional query parameters

This method supports the $select, $top, $filter, and $orderby OData query parameters to help customize the response. For general information, see OData query parameters. The default and maximum page sizes are 100 and 999 job objects respectively.

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 microsoft.graph.entraRecoveryServices.recoveryJobBase objects in the response body. The response uses @odata.type annotations to differentiate between recoveryPreviewJob and recoveryJob objects.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/directory/recovery/jobs

[!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.

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

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#directory/recovery/jobs",
  "value": [
    {
      "@odata.type": "#microsoft.graph.entraRecoveryServices.recoveryPreviewJob",
      "id": "d3f8e7e8-7e87-4a7f-9d2c-c1c2d7e8e1f1",
      "status": "successful",
      "targetStateDateTime": "2024-08-26T02:30:00Z",
      "jobStartDateTime": "2024-08-26T06:40:00Z",
      "jobCompletionDateTime": "2024-08-26T08:50:00Z",
      "filteringCriteria": null,
      "totalChangedObjectsCalculated": 2000,
      "totalChangedLinksCalculated": 300
    },
    {
      "@odata.type": "#microsoft.graph.entraRecoveryServices.recoveryJob",
      "id": "3f4a6b60-7c1e-4e7c-9c7b-13f8d44b20c4",
      "status": "successful",
      "targetStateDateTime": "2024-08-26T02:30:00Z",
      "jobStartDateTime": "2024-08-26T08:30:00Z",
      "jobCompletionDateTime": "2024-08-26T13:30:00Z",
      "filteringCriteria": null,
      "totalChangedObjectsCalculated": 1024,
      "totalChangedLinksCalculated": 124,
      "totalObjectsModified": 1024,
      "totalLinksModified": 124,
      "totalFailedChanges": 0
    }
  ]
}