---
title: "Execute DR Failover jobs"
method: POST
path: "/draasconfig/v2/orgs/{OrgID}/jobs/failover"
tags: ["DRaaS"]
---

# Execute DR Failover jobs

`POST /draasconfig/v2/orgs/{OrgID}/jobs/failover`

## Request

- Base URL: `//apis.druva.com/phoenix` (relative, and the document’s source URL is not known)
- URL: `//apis.druva.com/phoenix/draasconfig/v2/orgs/{OrgID}/jobs/failover`
- Auth: API key in header `Authorization`

Executes the Test or Production DR failover jobs for all virtual machines in the selected DR Plan.

## Path parameters

- `OrgID` integer, required

## Request body

- FailoverRequestParams: FailoverRequestParams are all the user inputs required for a failover job request
  - `drPlanID` integer, required: The DR Plan ID for which a failover needs to be initiated. Get the ID of the DR Plan using the 'List all DR Plans' API.
  - `failoverType` integer, required: Set 'failoverType' to 1 to run a Test DR Failover job and 2 to run a Production DR failover job.

## Response `200`

Success

- FailoverJobResponse: FailoverJobResponse is response to failover request
  - `jobID` integer: Job ID for successfully triggered failover job

## Other responses

- `400`: Bad Request
- `404`: The requested resource was not found.
- `500`: The request was not processed due to an internal error in Cloud.

---

[API](https://skmtc.dev/druva/apis/enterprise-workloads.md) - [All operations](https://skmtc.dev/druva/apis/enterprise-workloads/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/enterprise-workloads/revisions/18fc75e8229e?raw)
