---
updatedAt: 2025-06-17T22:10:00.000Z
agentTools:
  projectIndex: https://developer.druva.com/llms.txt
---

# Execute DR Failover jobs

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

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0",
    "title": "Enterprise Workloads GovCloud"
  },
  "x-explorer-enabled": true,
  "paths": {
    "/draasconfig/v2/orgs/{OrgID}/jobs/failover": {
      "post": {
        "description": "Executes the Test or Production DR failover jobs for all virtual machines in the selected DR Plan.",
        "tags": [
          "DRaaS"
        ],
        "summary": "Execute DR Failover jobs",
        "operationId": "FailoverRequest",
        "security": [
          {
            "Bearer": []
          }
        ],
        "parameters": [
          {
            "description": "The organization ID of your organization. Set it to a value greater than \"0\" to select your organization. Get the ID of an organization using the 'List all organizations' API.",
            "name": "OrgID",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FailoverRequestParams"
              }
            }
          },
          "description": "All the parameters required for the DR failover job.",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/FailoverJobResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "The requested resource was not found."
          },
          "500": {
            "description": "The request was not processed due to an internal error in Cloud."
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//govapis.druva.com/phoenix"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "FailoverJobResponse": {
        "description": "FailoverJobResponse is response to failover request",
        "type": "object",
        "properties": {
          "jobID": {
            "description": "Job ID for successfully triggered failover job",
            "type": "integer",
            "format": "int32",
            "x-go-name": "JobID"
          }
        },
        "x-go-package": "phoenix/draas/cloud/configserver/spec/drjob"
      },
      "FailoverRequestParams": {
        "description": "FailoverRequestParams are all the user inputs required for a failover job request",
        "type": "object",
        "required": [
          "drPlanID",
          "failoverType"
        ],
        "properties": {
          "drPlanID": {
            "description": "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.",
            "type": "integer",
            "format": "int32",
            "x-go-name": "DRPlanID"
          },
          "failoverType": {
            "description": "Set 'failoverType' to 1 to run a Test DR Failover job and 2 to run a Production DR failover job.",
            "type": "integer",
            "format": "int32",
            "x-go-name": "FailoverType"
          }
        },
        "x-go-package": "phoenix/draas/cloud/configserver/spec/drjob"
      }
    }
  }
}
```