Failback

Failback is one of the ways to finalize failover: you switch back from the replica to the production VM and shift I/O processes from the disaster recovery site to the production site. The production VM can be the source VM in the original location, a VM that was already recovered to another location or a VM that Veeam Backup & Replication recovers from the replica to a custom location.

For snapshot replicas of VMware vSphere VMs and for CDP replicas, you can start failback and select when to switch over to the production VM: automatically, at the scheduled time or manually. Until the switchover, you can change the switchover time or switch over manually. After the switchover, finalize failback: commit failback if the production VM works as expected, or undo failback to get back to the replica.

To fail over to a replica first, see the Failover section. To get the failback switchover settings of a replica, see the Replicas section.

Start CDP Replica Failback

The HTTP POST request to the /api/v1/failback/failbackToProduction/cdp endpoint starts failback from CDP replicas to production VMs.

Failback must be finalized. After you have switched over to production VMs (automatically or manually), do one of the following:

  • If a production VM works as expected, commit failback for the VM.
  • If a production VM does not work as expected, undo failback for the VM.

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 (CdpReplicaFailbackItemSpec)

Array of CDP replicas that you want to fail back, with failback settings for each replica.

object (ReplicaFailbackGeneralSettingsSpec)

Settings for replica failback.

Responses
201

One or more Failback sessions have been started to perform the failback. 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/failback/failbackToProduction/cdp
Request samples
application/json
{
  • "cdpReplicaFailbackItems": [
    ],
  • "generalSettings": {
    }
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Start Failback

The HTTP POST request to the /api/v1/failback/failbackToProduction/vSphere/snapshot endpoint starts failback from snapshot replicas to production VMware vSphere VMs.

Failback must be finalized. After you have switched over to production VMs (automatically or manually), do one of the following:

  • If a production VM works as expected, commit failback for the VM.
  • If a production VM does not work as expected, undo failback for the VM.

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 (ViVMSnapshotReplicaFailbackItemSpec)

Array of replica restore points from which you want to fail back, with failback settings for each restore point.

object (ReplicaFailbackGeneralSettingsSpec)

Settings for replica failback.

Responses
201

One or more Failback sessions have been started to perform the failback. 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/failback/failbackToProduction/vSphere/snapshot
Request samples
application/json
{
  • "restorePointFailbackItems": [
    ],
  • "generalSettings": {
    }
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Switch Over CDP Replica to Production

The HTTP POST request to the /api/v1/failback/switchToProduction/cdp endpoint manually starts switchover from CDP replicas to production 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
replicaIds
required
Array of strings <uuid>

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

Responses
201

One or more SwitchReplicaToProduction sessions have been started to perform switchover. 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/failback/switchToProduction/cdp
Request samples
application/json
{
  • "replicaIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Switch over to Production

The HTTP POST request to the /api/v1/failback/switchToProduction/vSphere/snapshot endpoint manually starts switchover from snapshot replicas to production 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
Array of strings <uuid>

Array of replica restore points from which you want to switch over. To get the IDs, run the Get All Replica Restore Points request.

Responses
201

One or more SwitchReplicaToProduction sessions have been started to perform switchover. 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/failback/switchToProduction/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Change Switchover Time for CDP Replicas

The HTTP POST request to the /api/v1/failback/changeSwitchoverTime/cdp endpoint changes the time when you want to switch over from CDP replicas to production 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
replicaIds
required
Array of strings <uuid> non-empty

Array of CDP replica IDs for which you want to change switchover time. To get the IDs, run the Get All Replicas request.

required
object (ReplicaChangeSwitchoverModeSpec)

Switchover mode for changing switchover time.

Responses
200

Switchover time has been changed.

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.

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/failback/changeSwitchoverTime/cdp
Request samples
application/json
{
  • "replicaIds": [
    ],
  • "failbackMode": {
    }
}
Response samples
application/json
{ }

Change Switchover Time

The HTTP POST request to the /api/v1/failback/changeSwitchoverTime/vSphere/snapshot endpoint changes the time when you want to switch over from snapshot replicas to production 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
Array of strings <uuid>

Array of replica restore points for which you want to change switchover time. To get the IDs, run the Get All Replica Restore Points request.

object (ReplicaFailbackModeSpec)

Failback mode.

Responses
200

Switchover time has been changed successfully.

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/failback/changeSwitchoverTime/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ],
  • "failbackMode": {
    }
}
Response samples
application/json
{ }

Commit Failback for CDP Replicas

The HTTP POST request to the /api/v1/failback/commitFailback/cdp endpoint commits failback for CDP replicas, permanently completing the failback process.

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.

Responses
201

One or more CommitFailback sessions have been started to permanently complete the failback. 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/failback/commitFailback/cdp
Request samples
application/json
{
  • "replicaIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Commit Failback

The HTTP POST request to the /api/v1/failback/commitFailback/vSphere/snapshot endpoint commits failback from snapshot replicas to production 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
Array of strings <uuid>

Array of replica restore points for which you want to perform failback. To get the IDs, run the Get All Replica Restore Points request.

Responses
201

One or more CommitFailback sessions have been started to commit the failback. 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/failback/commitFailback/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Undo CDP Replica Failback

The HTTP POST request to the /api/v1/failback/undoFailback/cdp endpoint undoes failback 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.

powerOn
boolean
Default: true

If true, Veeam Backup & Replication powers on the original production VM after undo failback.

Responses
201

An UndoFailback session has been started to undo the CDP failback. 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/failback/undoFailback/cdp
Request samples
application/json
{
  • "replicaIds": [
    ],
  • "powerOn": true
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Undo Failback

The HTTP POST request to the /api/v1/failback/undoFailback/vSphere/snapshot endpoint undoes failback from snapshot replicas to production 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
Array of strings <uuid>

Array of replica restore points for which you want to undo failback. To get the IDs, run the Get All Replica Restore Points request.

Responses
201

One or more UndoFailback sessions have been started to undo the failback. 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/failback/undoFailback/vSphere/snapshot
Request samples
application/json
{
  • "replicaPointIds": [
    ]
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}