Skip to content

Latest commit

 

History

History
110 lines (81 loc) · 3.73 KB

File metadata and controls

110 lines (81 loc) · 3.73 KB
title recoveryJobBase: cancel
description Cancel a running recovery or preview job.
author yuhko-msft
ms.date 03/04/2026
ms.localizationpriority medium
ms.subservice entra-id
doc_type apiPageType

recoveryJobBase: cancel

Namespace: microsoft.graph.entraRecoveryServices

[!INCLUDE beta-disclaimer]

Cancel a running recoveryJobBase object (either a preview or recovery job). The job must be in a non-terminal state (initialized, calculating, loadingData, or running). After cancellation, the job status changes to abandoned.

[!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-write]

HTTP request

POST /directory/recovery/jobs/{job-id}/cancel

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 202 Accepted response code with a Location header pointing to the job resource.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/directory/recovery/jobs/3f4a6b60-7c1e-4e7c-9c7b-13f8d44b20c4/cancel

[!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 202 Accepted
Location: https://graph.microsoft.com/beta/directory/recovery/jobs/3f4a6b60-7c1e-4e7c-9c7b-13f8d44b20c4