- About Veeam Backup & Replication REST API
- Overview
- How To
- Changelog
- Login
- Service
- Services
- Credentials
- getGet All Credentials
- postAdd Credentials Record
- getGet Credentials Record
- putEdit Credentials Record
- delRemove Credentials Record
- postChange Password
- postChange Linux Private Key
- postChange Linux Root Password
- getGet All Cloud Credentials
- postAdd Cloud Credentials Record
- postGet Microsoft Azure Verification Code
- postRegister Microsoft Entra Application
- postGet Google Authentication Information
- getGet Cloud Credentials Record
- putEdit Cloud Credentials Record
- delRemove Cloud Credentials Record
- postChange Secret Key
- postChange Google Service Account
- postChange Certificate
- getGet All Helper Appliances
- postAdd or Edit Helper Appliance
- getGet Helper Appliance
- delRemove Helper Appliance
- Encryption
- Connection
- Cloud Browser
- Inventory Browser
- Traffic Rules
- General Options
- Malware Detection
- Configuration Backup
- Managed Servers
- Repositories
- getGet All Repositories
- postAdd Repository
- getGet All Repository States
- getGet Repository
- putEdit Repository
- delRemove Repository
- getGet All Scale-Out Backup Repositories
- postAdd Scale-Out Backup Repository
- getGet Scale-Out Backup Repository
- putEdit Scale-Out Backup Repository
- delRemove Scale-Out Backup Repository
- postEnable Sealed Mode
- postDisable Sealed Mode
- postEnable Maintenance Mode
- postDisable Maintenance Mode
- Proxies
- WAN Accelerators
- Jobs
- Backups
- Backup Objects
- Restore Points
- Restore
- getGet All VM Mounts
- postStart Instant Recovery
- getGet VM Mount
- postStop VM Publishing
- postStart VM Migration
- postRestore Entire VMware vSphere VM
- postRestore Entire VMware Cloud Director VM
- getGet All FCD Mounts
- postStart Instant FCD Recovery
- getGet FCD Mount
- postStop FCD Publishing
- postStart FCD Migration
- postStart File Restore
- postUnmount File System
- Backup Browsers
- getGet All File Restore Mounts
- getGet File Restore Mount
- postBrowse File System
- postCompare Attributes
- postCompare Files and Folders
- postSearch for Files and Folders
- postBrowse Search Results
- postRestore Files and Folders to Original Location
- postRestore Files and Folders to Another Location
- postPrepare Files and Folders for Download
- postDownload Files and Folders
- Tasks
- Replicas
- Replica Restore Points
- Failover
- Failback
- Sessions
- Agents
- Automation
- postImport Jobs
- postExport Jobs
- postImport Credentials
- postExport Credentials
- postImport Cloud Credentials
- postExport Cloud Credentials
- postImport Proxies
- postExport Proxies
- postImport Servers
- postExport Servers
- postImport Repositories
- postExport Repositories
- postImport Encryption Passwords
- postExport Encryption Passwords
- getGet All Automation Sessions
- getGet Automation Session
- getGet Automation Session Logs
- postStop Automation Session
Start Failback
The HTTP POST request to the /api/v1/failback/vSphere/snapshot
path allows you to fail back 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: Veeam Backup Administrator, Veeam Restore Operator.
header Parameters
x-api-version required | string Default: 1.1-rev1 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
type required | string (EReplicaFailbackType) Failback type.
|
replicaPointIds | Array of strings <uuid> Array of replica restore points that you want to fail back from. |
drSiteProxyId | Array of strings <uuid> Array of backup proxies in the disaster recovery site. |
productionSiteProxyId | Array of strings <uuid> Array of backup proxies in the production site. |
powerOnTargetVM | boolean If |
quickRollback | boolean If |
object (ReplicaFailbackModeSpec) Failback mode. |
One or more Failback
sessions have been started to perform the failback. To check the progress, track the session state
.
Bad request. This error is related to POST/PUT requests. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "replicaPointIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "type": "OriginalLocation",
- "drSiteProxyId": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "productionSiteProxyId": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "powerOnTargetVM": true,
- "quickRollback": true,
- "failbackMode": {
- "type": "Auto",
- "scheduledTime": "2019-08-24T14:15:22Z"
}
}
- 201
- 400
- 401
- 403
- 404
- 500
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "sessionType": "Infrastructure",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Stopped",
- "progressPercent": 0,
- "result": {
- "result": "None",
- "message": "string",
- "isCanceled": true
}, - "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "resourceReference": "string",
- "parentSessionId": "b1d7834e-fe2f-4cad-b0e5-ff5c5615f344",
- "usn": 0
}
], - "pagination": {
- "total": 0,
- "count": 0,
- "skip": 0,
- "limit": 0
}
}
Switch over to Production
The HTTP POST request to the /api/v1/failback/switchToProduction/vSphere/snapshot
path allows you to manually switch over from snapshot replicas to production VMware vSphere VMs.
Available to: Veeam Backup Administrator, Veeam Restore Operator.
header Parameters
x-api-version required | string Default: 1.1-rev1 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
replicaPointIds | Array of strings <uuid> Array of replica restore points that you want to switch over from. |
One or more SwitchReplicaToProduction
sessions have been started to perform switchover. To check the progress, track the session state
.
Bad request. This error is related to POST/PUT requests. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "replicaPointIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
- 201
- 400
- 401
- 403
- 404
- 500
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "sessionType": "Infrastructure",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Stopped",
- "progressPercent": 0,
- "result": {
- "result": "None",
- "message": "string",
- "isCanceled": true
}, - "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "resourceReference": "string",
- "parentSessionId": "b1d7834e-fe2f-4cad-b0e5-ff5c5615f344",
- "usn": 0
}
], - "pagination": {
- "total": 0,
- "count": 0,
- "skip": 0,
- "limit": 0
}
}
Change Switchover Time
The HTTP POST request to the /api/v1/failback/changeSwitchoverTime/vSphere/snapshot
path allows you to change the time when you want to switch over from snapshot replicas to production VMware vSphere VMs.
Available to: Veeam Backup Administrator, Veeam Restore Operator.
header Parameters
x-api-version required | string Default: 1.1-rev1 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
replicaPointIds | Array of strings <uuid> Array of replica restore points that you want to change switchover time for. |
object (ReplicaFailbackModeSpec) Failback mode. |
Switchover time has been changed successfully.
Bad request. This error is related to POST/PUT requests. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "replicaPointIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "failbackMode": {
- "type": "Auto",
- "scheduledTime": "2019-08-24T14:15:22Z"
}
}
- 200
- 400
- 401
- 403
- 404
- 500
{ }
Commit Failback
The HTTP POST request to the /api/v1/failback/commitFailback/vSphere/snapshot
path allows you to commit failback from snapshot replicas to production VMware vSphere VMs.
Available to: Veeam Backup Administrator, Veeam Restore Operator.
header Parameters
x-api-version required | string Default: 1.1-rev1 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
replicaPointIds | Array of strings <uuid> Array of replica restore points that you want to commit failback for. |
One or more CommitFailback
sessions have been started to commit the failback. To check the progress, track the session state
.
Bad request. This error is related to POST/PUT requests. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "replicaPointIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
- 201
- 400
- 401
- 403
- 404
- 500
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "sessionType": "Infrastructure",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Stopped",
- "progressPercent": 0,
- "result": {
- "result": "None",
- "message": "string",
- "isCanceled": true
}, - "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "resourceReference": "string",
- "parentSessionId": "b1d7834e-fe2f-4cad-b0e5-ff5c5615f344",
- "usn": 0
}
], - "pagination": {
- "total": 0,
- "count": 0,
- "skip": 0,
- "limit": 0
}
}
Undo Failback
The HTTP POST request to the /api/v1/failback/undoFailback/vSphere/snapshot
path allows you to undo failback from snapshot replicas to production VMware vSphere VMs.
Available to: Veeam Backup Administrator, Veeam Restore Operator.
header Parameters
x-api-version required | string Default: 1.1-rev1 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
replicaPointIds | Array of strings <uuid> Array of replica restore points that you want to undo failback for. |
One or more UndoFailback
sessions have been started to undo the failback. To check the progress, track the session state
.
Bad request. This error is related to POST/PUT requests. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "replicaPointIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
- 201
- 400
- 401
- 403
- 404
- 500
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",
- "sessionType": "Infrastructure",
- "creationTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "state": "Stopped",
- "progressPercent": 0,
- "result": {
- "result": "None",
- "message": "string",
- "isCanceled": true
}, - "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",
- "resourceReference": "string",
- "parentSessionId": "b1d7834e-fe2f-4cad-b0e5-ff5c5615f344",
- "usn": 0
}
], - "pagination": {
- "total": 0,
- "count": 0,
- "skip": 0,
- "limit": 0
}
}