Failover

Failover switches a workload from the source VM to its replica in the disaster recovery site: Veeam Backup & Replication recovers the replica to the selected restore point and shifts all I/O processes from the source VM to the replica. Failover is an intermediate step that you finalize with permanent failover, failover undo or failback.

For snapshot replicas of VMware vSphere VMs and for CDP replicas, you can start failover and planned failover. Planned failover synchronizes the latest changes from the source VMs before it switches over, so you can use it when you know that the source VMs are about to go offline, for example, for maintenance. After failover, you can start permanent failover to make the replica act as the production VM, or undo failover to switch back to the source VM and discard the changes made to the replica.

To get replicas and their restore points, see the Replicas section. To switch back to production after failover, see the Failback section.

Start CDP Replica Failover

The HTTP POST request to the /api/v1/failover/failoverNow/cdp endpoint starts failover to CDP replicas.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
required
Array of objects (CdpRestorePointFailoverModel)

Array of CDP replica restore points to fail over to.

reason
string

Reason for the failover operation.

Responses
201

A Failover session has been started to perform the CDP failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/failoverNow/cdp
Request samples
application/json
{
  • "restorePoints": [
    ],
  • "reason": "Planned failover for maintenance"
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Start Failover

The HTTP POST request to the /api/v1/failover/failoverNow/vSphere/snapshot endpoint starts failover of VMware vSphere VMs to their snapshot replicas.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
replicaPointIds
required
Array of strings <uuid>

Array of replica restore points. To get the IDs, run the Get All Replica Restore Points request.

reason
string

Operation reason.

Responses
201

One or more Failover sessions have been started to perform the failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/failoverNow/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Start CDP Replica Planned Failover

The HTTP POST request to the /api/v1/failover/plannedFailover/vSphere/cdp endpoint starts planned failover of CDP replicas. Planned failover synchronizes the latest changes from the source VMs before switching over, so no data is lost. The replicas must be in a ready state. The CDP policy that created a replica must exist and be enabled, and the replica must have no more than 94 restore points.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
replicaIds
required
Array of strings <uuid>

Array of CDP replica IDs. To get the IDs, run the Get All Replicas request.

reason
string

Reason for the failover operation.

Responses
201

One or more PlannedFailover sessions have been started to perform the CDP planned failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/plannedFailover/vSphere/cdp
Request samples
application/json
{
  • "replicaIds": [
    ],
  • "reason": "Planned site migration"
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Start Planned Failover

The HTTP POST request to the /api/v1/failover/plannedFailover/vSphere/snapshot endpoint starts planned failover of VMware vSphere VMs to their snapshot replicas.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
replicaPointIds
required
Array of strings <uuid>

Array of replica restore points. To get the IDs, run the Get All Replica Restore Points request.

reason
string

Operation reason.

Responses
201

One or more PlannedFailover sessions have been started to perform the failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/plannedFailover/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Start CDP Replica Permanent Failover

The HTTP POST request to the /api/v1/failover/permanentFailover/cdp endpoint starts permanent failover of CDP replicas. The replicas must already be in the failover state.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
replicaIds
required
Array of strings <uuid>

Array of CDP replica IDs. To get the IDs, run the Get All Replicas request.

reason
string

Reason for the failover operation.

Responses
201

One or more PermanentFailover sessions have been started to perform the CDP permanent failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/permanentFailover/cdp
Request samples
application/json
{
  • "replicaIds": [
    ],
  • "reason": "Production site failure"
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Start Permanent Failover

The HTTP POST request to the /api/v1/failover/permanentFailover/vSphere/snapshot endpoint starts permanent failover of VMware vSphere VMs to their snapshot replicas.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
replicaPointIds
required
Array of strings <uuid>

Array of replica restore points. To get the IDs, run the Get All Replica Restore Points request.

reason
string

Operation reason.

Responses
201

One or more PermanentFailover sessions have been started to perform the failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/permanentFailover/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Undo CDP Replica Failover

The HTTP POST request to the /api/v1/failover/undoFailover/cdp endpoint undoes failover for CDP replicas.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
replicaIds
required
Array of strings <uuid>

Array of CDP replica IDs. To get the IDs, run the Get All Replicas request.

force
boolean
Default: false

If true, the undo failover operation is forced.

reason
string

Reason for the undo failover operation.

Responses
201

An UndoFailover session has been started to undo the CDP failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/undoFailover/cdp
Request samples
application/json
{
  • "replicaIds": [
    ],
  • "force": true,
  • "reason": "Reverting to original production VM"
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Undo Failover

The HTTP POST request to the /api/v1/failover/undoFailover/vSphere/snapshot endpoint undoes failover for snapshot replicas of VMware vSphere VMs.

Available to: Backup Administrator, Restore Operator. Also available to custom roles that have restore permissions.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.3-rev3

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
required
replicaPointIds
required
Array of strings <uuid>

Array of replica restore points. To get the IDs, run the Get All Replica Restore Points request.

reason
string

Operation reason.

Responses
201

One or more UndoFailover sessions have been started to undo the failover. To check the progress, track the session state with the Get Session request.

400

Bad request. This error is related to POST and PUT requests. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.

404

Not found. No object was found with the path parameter specified in the request.

500

Internal server error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v1/failover/undoFailover/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}