- 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 Entra ID Verification Code
- postRegister Microsoft Entra ID 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
- getGet All Encryption Passwords
- postAdd Encryption Password
- getGet Encryption Password
- putEdit Encryption Password Hint
- delRemove Encryption Password
- postChange Encryption Password
- postVerify Encryption Password
- getGet All KMS Servers
- postAdd KMS Server
- getGet KMS Server
- putEdit KMS Server
- delRemove KMS Server
- postChange KMS Server Certificate
- License
- postInstall License
- getGet Installed License
- postRemove License
- postCreate License Usage Report
- postRenew Installed License
- getGet Consumption of Socket Licenses
- postRevoke Socket License
- getGet Instance Licenses Consumption
- postAssign Instance License
- postRevoke Instance License
- postRemove Instance License
- getGet Capacity License Consumption
- postRevoke Capacity License From Unstructured Data Workload
- postUpdate License
- postEnable or Disable License Auto Update
- postEnable or Disable Instance Consumption for Unlicensed Agents
- Connection
- Cloud Browser
- Inventory Browser
- getGet All VMware vSphere Servers
- getGet VMware vSphere Server Objects
- postRescan Inventory Objects
- postGet All Servers
- postGet Inventory Objects
- postGet All Protection Groups
- postGet Inventory Objects for Specific Protection Group
- getGet All Unstructured Data Servers
- getGet Unstructured Data Servers
- getGet All Microsoft Entra ID Tenants
- postAdd Microsoft Entra ID Tenant
- getGet Microsoft Entra ID Tenant
- putEdit Microsoft Entra ID Tenant
- delRemove Microsoft Entra ID Tenant
- getGet Active Directory Objects from Domain
- Traffic Rules
- General Options
- Global Exclusions
- Security
- postStart Security & Compliance Analyzer
- getGet Security & Compliance Analyzer Last Run
- getGet Security & Compliance Analyzer Schedule
- putModify Security & Compliance Analyzer Schedule
- postReset All Security & Compliance Analyzer Statuses
- getGet Security & Compliance Analyzer Results
- postSuppress Security & Compliance Analyzer Best Practice Status
- postReset Security & Compliance Analyzer Status
- getGet All Authorization Events
- getGet Authorization Event
- Malware Detection
- Configuration Backup
- Deployment
- Managed Servers
- getGet All Servers
- postAdd Server
- postGet vCenter Servers Attached to Cloud Director Server
- postGet Hyper-V Servers Managed by Hyper-V Cluster or SCVMM Server
- getGet Server
- putEdit Server
- delRemove Server
- postChange to Single-Use Credentials
- getGet Volumes for Hyper-V Standalone Server
- putEdit Volumes on Hyper-V Standalone Server
- postRescan All Managed Servers
- postRescan Managed Server
- getDefault Set of Optional Managed Server Components
- postUpdate Managed Server Components
- Repositories
- getGet All Repositories
- postAdd Repository
- postRescan Repositories
- 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
- Mount Servers
- Proxies
- WAN Accelerators
- Jobs
- Backups
- Backup Objects
- Restore Points
- Restore
- getGet All Instant Recovery Mount Points of VMware vSphere VMs
- postStart Instant Recovery of VMware vSphere VM
- getGet Instant Recovery Mount Point of VMware vSphere VM
- postStop Publishing VMware vSphere VM
- postStart Migrating VMware vSphere VM
- getGet All Instant Recovery Mount Points of Microsoft Hyper-V VMs
- postStart Instant Recovery of Microsoft Hyper-V VM
- getGet Instant Recovery Mount Point of Microsoft Hyper-V VM
- postStop Publishing Microsoft Hyper-V VM
- postStart Migrating Microsoft Hyper-V VM
- getGet All Mount Points for Instant Recovery to Azure
- postStart Instant Recovery to Azure
- getGet Mount Point for Instant Recovery to Azure
- getGet All Mount Sessions for Instant Recovery to Azure
- postStop Publishing Machine to Azure
- postStart Migrating Machine to Azure
- getGet Settings for Switchover to Azure
- putUpdate Settings for Switchover to Azure
- postStart Switchover to Azure
- postRestore Entire VMware vSphere VM
- postRestore Entire VMware Cloud Director VM
- postRestore Entire Microsoft Hyper-V VM
- getGet All FCD Mount Points
- postStart Instant FCD Recovery
- getGet FCD Mount Point
- postStop FCD Publishing
- postStart FCD Migration
- postStart File Restore
- postUnmount File System
- postGet User Code for Delegated Restore of Microsoft Entra ID Items
- postGet Credentials for Delegated Restore of Microsoft Entra ID Items
- postMount Microsoft Entra ID Tenant
- postStart Microsoft Entra ID Tenant Restore from Copy
- postUnmount Microsoft Entra ID Tenant
- postStart Microsoft Entra ID Audit Log Restore
- postUnmount Microsoft Entra ID Audit Logs
- Data Integration API
- Backup Browsers
- postValidate Target Machine Credentials
- getGet All File Restore Mount Points
- getGet File Restore Mount Point
- getGet Restored Files Audit
- 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
- getGet All Unstructured Data Mount Points
- getGet Unstructured Data Mount Point
- postBrowse Unstructured Data File System
- postSearch for Files and Folders in Unstructured Data Source
- postBrowse Search Results
- postCopy Files and Folders to Specific Folder
- getGet Mount Points of All Entra ID Tenants
- getGet Mount Point of Microsoft Entra ID Tenant
- postGet Restore Points of Microsoft Entra ID Tenant
- getGet Protection Scope of Microsoft Entra ID Tenant
- postGet Microsoft Entra ID Items
- postGet Microsoft Entra ID Item
- postGet Restore Points of Microsoft Entra ID Item
- postValidate Microsoft Entra ID Items
- postCheck Microsoft Entra ID Items in Production
- postGenerate Microsoft Entra ID User Passwords
- postRestore Microsoft Entra ID Items
- postRestore Microsoft Entra ID Item Properties
- postCompare Microsoft Entra ID Item Properties
- postStart Comparing Microsoft Entra ID Item Properties
- getGet Comparison Results for Microsoft Entra ID Items
- postStart Comparing Microsoft Entra ID Conditional Access Policy
- getGet Comparison Results for Microsoft Entra ID Conditional Access Policy
- postExport Microsoft Entra ID Items
- postUpload Microsoft Entra ID Users
- postUpload Microsoft Entra ID Groups
- postUpload Microsoft Entra ID Administrative Units
- postUpload Microsoft Entra ID Roles
- postUpload Microsoft Entra ID Applications
- postUpload Microsoft Entra ID Conditional Access Policies
- getGet All Restore Sessions of Microsoft Entra ID Tenant
- getGet Restore Session of Microsoft Entra ID Tenant
- getGet Restore Session Logs of Microsoft Entra ID Tenant
- postStop Restore Session of Microsoft Entra ID Tenant
- Tasks
- Replicas
- Replica Restore Points
- Failover
- Failback
- Sessions
- Agents
- getGet All Recovery Tokens
- postCreate Recovery Token
- getGet Recovery Token
- putEdit Recovery Token
- delDelete Recovery Token
- getGet All Protected Computers
- getGet Protected Computer
- getGet Discovered Entities
- postRescan Discovered Entities
- postInstall Agent on Discovered Entities
- postUninstall Agent from Discovered Entities
- postUninstall All Components from Discovered Entities
- getGet Discovered Entity
- delRemove Discovered Entity
- getGet Linux Agent Packages
- getGet Unix Agent Packages
- Protection Groups
- Active Directory Domains
- 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
- Log export
The Sessions section defines paths and operations for managing sessions (except automation sessions) and task sessions performed on the backup server.
Get All Sessions
The HTTP GET request to the /api/v1/sessions
path allows you to get an array of sessions performed on the backup server.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator, Veeam Backup Viewer, Veeam Tape Operator, Veeam Security Administrator.
query Parameters
skip | integer <int32> Number of sessions to skip. |
limit | integer <int32> Default: 200 Maximum number of sessions to return. |
orderColumn | string (ESessionsFiltersOrderColumn) Sorts sessions by one of the session parameters. |
orderAsc | boolean If |
nameFilter | string Filters sessions by the |
createdAfterFilter | string <date-time> Returns sessions that are created after the specified date and time. |
createdBeforeFilter | string <date-time> Returns sessions that are created before the specified date and time. |
endedAfterFilter | string <date-time> Returns sessions that are finished after the specified date and time. |
endedBeforeFilter | string <date-time> Returns sessions that are finished before the specified date and time. |
typeFilter | Array of strings (ESessionType) Filters sessions by session type. |
stateFilter | string (ESessionState) Filters sessions by session state. |
resultFilter | Array of strings (ESessionResult) Filters sessions by session result. |
jobIdFilter | string <uuid> Filters sessions by job ID. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 500
{- "data": [
- {
- "sessionType": "Job",
- "state": "Stopped",
- "id": "c924ee2f-1197-4b37-8de3-009c1977f347",
- "name": "Backup Job 1",
- "jobId": "c05dfa57-f59a-4e90-8065-b7f5d3276406",
- "creationTime": "2023-12-04T06:13:34.983+01:00",
- "endTime": "2023-12-04T06:15:00.617+01:00",
- "progressPercent": 100,
- "result": {
- "result": "Failed",
- "message": "Creating synthetic full backup (22% done)",
- "isCanceled": false
}, - "resourceId": "c7478158-7c99-4bab-93b1-c3efdd1062fa",
- "resourceReference": "/api/v1/backups/c7478158-7c99-4bab-93b1-c3efdd1062fa",
- "parentSessionId": null,
- "usn": 0,
- "initiatedBy": "user"
}
], - "pagination": {
- "total": 307,
- "count": 1,
- "skip": 0,
- "limit": 1
}
}
Get Session
The HTTP GET request to the /api/v1/sessions/{id}
path allows you to get a session that has the specified id
.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator, Veeam Backup Viewer, Veeam Tape Operator, Veeam Security Administrator.
path Parameters
id required | string <uuid> Session ID. To get the ID, run the Get All Sessions request. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 404
- 500
{- "sessionType": "ConfigurationBackup",
- "state": "Stopped",
- "id": "f848e90c-7f37-4ff5-9d55-04e33f8a4de3",
- "name": "Backup Configuration Job",
- "jobId": "99d1bf3d-e2e0-4bec-b2b3-820c0b87d212",
- "creationTime": "2023-11-08T10:00:12.56+01:00",
- "endTime": "2023-11-08T10:00:34.017+01:00",
- "progressPercent": 100,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "resourceId": null,
- "resourceReference": null,
- "parentSessionId": null,
- "usn": 0,
- "platformName": "VMware",
- "platformId": "00000000-0000-0000-0000-000000000000"
}
Get Session Logs
The HTTP GET request to the /api/v1/sessions/{id}/logs
path allows you to get an array of log records of a session that has the specified id
.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator, Veeam Backup Viewer, Veeam Tape Operator, Veeam Security Administrator.
path Parameters
id required | string <uuid> Session ID. To get the ID, run the Get All Sessions request. |
query Parameters
statusFilter | string (ETaskLogRecordStatus) Filters task session logs by status. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 404
- 500
{- "totalRecords": 11,
- "records": [
- {
- "status": "Warning",
- "id": 11,
- "startTime": "2023-11-05T06:03:15.866256+01:00",
- "updateTime": "2023-11-05T06:03:15.866256+01:00",
- "title": "Job finished with warning at 11/5/2021 6:03:15 AM ",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 10,
- "startTime": "2023-11-05T06:03:15.756877+01:00",
- "updateTime": "2023-11-05T06:03:15.756877+01:00",
- "title": "Primary bottleneck: Source",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 9,
- "startTime": "2023-11-05T06:03:15.647498+01:00",
- "updateTime": "2023-11-05T06:03:15.647498+01:00",
- "title": "Load: Source 86% > Proxy 54% > Network 56% > Target 42%",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 7,
- "startTime": "2023-11-05T06:00:24.096249+01:00",
- "updateTime": "2023-11-05T06:03:08.2098022+01:00",
- "title": "Processing ubuntu88",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 5,
- "startTime": "2023-11-05T06:00:18.9711163+01:00",
- "updateTime": "2023-11-05T06:02:18.5413692+01:00",
- "title": "Processing winsrv100",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 6,
- "startTime": "2023-11-05T06:00:24.0650043+01:00",
- "updateTime": "2023-11-05T06:01:02.6441456+01:00",
- "title": "Processing dbserver01",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 8,
- "startTime": "2023-11-05T06:00:59.2378014+01:00",
- "updateTime": "2023-11-05T06:00:59.2378014+01:00",
- "title": "All VMs have been queued for processing",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 4,
- "startTime": "2023-11-05T06:00:12.0178073+01:00",
- "updateTime": "2023-11-05T06:00:12.0178073+01:00",
- "title": "Changed block tracking is enabled",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 3,
- "startTime": "2023-11-05T06:00:12.0021761+01:00",
- "updateTime": "2023-11-05T06:00:12.0021761+01:00",
- "title": "VM size: 86 GB (48 GB used)",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 2,
- "startTime": "2023-11-05T06:00:07.9864525+01:00",
- "updateTime": "2023-11-05T06:00:10.377142+01:00",
- "title": "Building list of machines to process",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 1,
- "startTime": "2023-11-05T06:00:07.7051998+01:00",
- "updateTime": "2023-11-05T06:00:07.7051998+01:00",
- "title": "Job started at 11/5/2021 6:00:02 AM",
- "description": ""
}
]
}
Stop Session
The HTTP POST request to the /api/v1/sessions/{id}/stop
path allows you to stop a session that has the specified id
.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator.
path Parameters
id required | string <uuid> Session ID. To get the ID, run the Get All Sessions request. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 404
- 500
{ }
Get Task Sessions For Specified Session
The HTTP GET request to the /api/v1/sessions/{id}/taskSessions
path allows you to get an array of task sessions performed on the backup server for the session that has the specified id
.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator, Veeam Tape Operator, Veeam Backup Viewer.
path Parameters
id required | string <uuid> Session ID. To get the ID, run the Get All Sessions request. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 500
{- "data": [
- {
- "scanType": "Yara",
- "scanResult": "Clean",
- "scanState": "Finished",
- "name": "winsrv88 [11/4/2024 5:18:45 PM]",
- "restorePointId": "56a6e3ac-2771-4fcc-8b8c-0632c708d94f",
- "restorePointReference": "/api/v1/restorePoints/56a6e3ac-2771-4fcc-8b8c-0632c708d94f",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "3464ca27-8def-4849-a69f-23f0d0d136e7",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:54:32.649649",
- "endTime": "2024-11-11T13:14:33.796154"
}, - {
- "scanType": "Yara",
- "scanResult": "Inconclusive",
- "scanState": "Finished",
- "name": "winsrv88 [11/4/2024 5:18:45 PM]",
- "restorePointId": "56a6e3ac-2771-4fcc-8b8c-0632c708d94f",
- "restorePointReference": "/api/v1/restorePoints/56a6e3ac-2771-4fcc-8b8c-0632c708d94f",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "71c3d117-e772-4b2e-be5e-eb2d9933bbea",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:54:32.649649",
- "endTime": "2024-11-11T13:14:33.796154"
}, - {
- "scanType": "Yara",
- "scanResult": "Clean",
- "scanState": "Finished",
- "name": "winsrv88 [11/4/2024 5:18:45 PM]",
- "restorePointId": "56a6e3ac-2771-4fcc-8b8c-0632c708d94f",
- "restorePointReference": "/api/v1/restorePoints/56a6e3ac-2771-4fcc-8b8c-0632c708d94f",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "93c751b3-4aa8-4032-a8a3-22d8affdf821",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:54:32.649649",
- "endTime": "2024-11-11T13:14:33.796154"
}, - {
- "scanType": "Yara",
- "scanResult": "Inconclusive",
- "scanState": "Finished",
- "name": "winsrv88 [11/5/2024 4:00:18 PM]",
- "restorePointId": "5d858942-8813-48f7-b5c3-5378af993665",
- "restorePointReference": "/api/v1/restorePoints/5d858942-8813-48f7-b5c3-5378af993665",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "69348ba2-d701-442b-ae24-81fe9bf7ee1f",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:44:34.607238",
- "endTime": "2024-11-11T12:54:31.961903"
}, - {
- "scanType": "Yara",
- "scanResult": "Clean",
- "scanState": "Finished",
- "name": "winsrv88 [11/5/2024 4:00:18 PM]",
- "restorePointId": "5d858942-8813-48f7-b5c3-5378af993665",
- "restorePointReference": "/api/v1/restorePoints/5d858942-8813-48f7-b5c3-5378af993665",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "31a4cb34-77d8-4aa2-b771-4064fe09cb20",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:44:34.607238",
- "endTime": "2024-11-11T12:54:31.961903"
}, - {
- "scanType": "Yara",
- "scanResult": "Clean",
- "scanState": "Finished",
- "name": "winsrv88 [11/5/2024 4:00:18 PM]",
- "restorePointId": "5d858942-8813-48f7-b5c3-5378af993665",
- "restorePointReference": "/api/v1/restorePoints/5d858942-8813-48f7-b5c3-5378af993665",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "dc1dd74f-ec8b-43d5-a82f-893b7407e391",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:44:34.607238",
- "endTime": "2024-11-11T12:54:31.961903"
}, - {
- "scanType": "Yara",
- "scanResult": "Clean",
- "scanState": "Finished",
- "name": "winsrv88 [11/7/2024 4:00:20 PM]",
- "restorePointId": "ca1f1e2f-e510-43b1-bec6-9dddadf64133",
- "restorePointReference": "/api/v1/restorePoints/ca1f1e2f-e510-43b1-bec6-9dddadf64133",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "ee3f0933-9f7c-4947-a20c-dab3602fe499",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:34:51.378756",
- "endTime": "2024-11-11T12:44:33.935305"
}, - {
- "scanType": "Yara",
- "scanResult": "Clean",
- "scanState": "Finished",
- "name": "winsrv88 [11/7/2024 4:00:20 PM]",
- "restorePointId": "ca1f1e2f-e510-43b1-bec6-9dddadf64133",
- "restorePointReference": "/api/v1/restorePoints/ca1f1e2f-e510-43b1-bec6-9dddadf64133",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "8fbd38c0-9478-435a-aa96-4455f53a4bb4",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:34:51.378756",
- "endTime": "2024-11-11T12:44:33.935305"
}, - {
- "scanType": "Yara",
- "scanResult": "Inconclusive",
- "scanState": "Finished",
- "name": "winsrv88 [11/7/2024 4:00:20 PM]",
- "restorePointId": "ca1f1e2f-e510-43b1-bec6-9dddadf64133",
- "restorePointReference": "/api/v1/restorePoints/ca1f1e2f-e510-43b1-bec6-9dddadf64133",
- "antivirusName": "YARA",
- "type": "Antivirus",
- "sessionType": "SureBackup",
- "id": "acce4fa6-23d8-4407-b84b-055409a81ec1",
- "sessionId": "a330c612-07b2-4c3a-adbf-0007f904bbfd",
- "creationTime": "2024-11-11T12:34:51.378756",
- "endTime": "2024-11-11T12:44:33.935305"
}
], - "pagination": {
- "total": 9,
- "count": 9,
- "skip": 0,
- "limit": 200
}
}
Get All Task Sessions
The HTTP GET request to the /api/v1/taskSessions
path allows you to get an array of task sessions performed on the backup server.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator, Veeam Tape Operator, Veeam Backup Viewer.
query Parameters
skip | integer <int32> Number of task sessions to skip. |
limit | integer <int32> Default: 200 Maximum number of task sessions to return. |
orderColumn | string (ETaskSessionsFiltersOrderColumn) Sorts task sessions by one of the task session parameters. |
orderAsc | boolean If |
nameFilter | string Filters task sessions by the |
typeFilter | string (ETaskSessionType) Filters task sessions by the task session type. |
sessionTypeFilter | string (ESessionType) Filters task sessions by session type. |
createdAfterFilter | string <date-time> Returns task sessions that are created after the specified date and time. |
createdBeforeFilter | string <date-time> Returns task sessions that are created before the specified date and time. |
endedAfterFilter | string <date-time> Returns task sessions that are finished after the specified date and time. |
endedBeforeFilter | string <date-time> Returns task sessions that are finished before the specified date and time. |
stateFilter | string (ESessionState) Filters task sessions by task session state. |
resultFilter | string (ESessionResult) Filters task sessions by task session result. |
scanTypeFilter | string (EAntivirusScanType) Filters task sessions by scan type. |
scanResultFilter | string (EAntivirusScanResult) Filters task sessions by scan result. |
scanStateFilter | string (EAntivirusScanState) Filters task sessions by scan state. |
sessionIdFilter | string <uuid> Filters task sessions by session id. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
Internal server error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 500
{- "data": [
- {
- "algorithm": "None",
- "state": "Stopped",
- "name": "winsrv88:/C:\\shares\\nfs_share",
- "restorePointId": null,
- "restorePointReference": null,
- "repositoryId": "00000000-0000-0000-0000-000000000000",
- "usn": 173280,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "progress": {
- "bottleneck": "Proxy",
- "duration": "00:00:23",
- "processingRate": "N/A",
- "processedSize": 9578192,
- "readSize": 0,
- "transferedSize": 0
}, - "type": "Backup",
- "sessionType": "BackupJob",
- "id": "692f6be5-b2cb-46fc-a6d2-ae767597c009",
- "sessionId": "0bb85caf-5e80-41c4-908d-2b43608b78a3",
- "creationTime": "2024-11-13T22:00:49.893878",
- "endTime": "2024-11-13T22:01:13.613709"
}, - {
- "algorithm": "Increment",
- "state": "Stopped",
- "name": "linbase01",
- "restorePointId": "d5c059d9-336b-491e-b07e-89f717eaa4af",
- "restorePointReference": "/api/v1/restorePoints/d5c059d9-336b-491e-b07e-89f717eaa4af",
- "repositoryId": "88788f9e-d8f5-4eb4-bc4f-9b3f5403bcec",
- "usn": 171783,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "progress": {
- "bottleneck": "Source",
- "duration": "00:01:17",
- "processingRate": "53.7 MB",
- "processedSize": 21474836480,
- "readSize": 881852416,
- "transferedSize": 343923660
}, - "type": "Backup",
- "sessionType": "BackupJob",
- "id": "8bec8b2d-11e8-45e1-b7be-a932376a0de4",
- "sessionId": "9811fb69-b436-4198-b848-fb6eb42fba03",
- "creationTime": "2024-11-13T18:00:45.528604",
- "endTime": "2024-11-13T18:02:02.865537"
}, - {
- "algorithm": "Increment",
- "state": "Stopped",
- "name": "winsrv88",
- "restorePointId": "59a6a818-98c5-40a2-abb3-b72b1ec4e00f",
- "restorePointReference": "/api/v1/restorePoints/59a6a818-98c5-40a2-abb3-b72b1ec4e00f",
- "repositoryId": "88788f9e-d8f5-4eb4-bc4f-9b3f5403bcec",
- "usn": 170927,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "progress": {
- "bottleneck": "Source",
- "duration": "00:02:17",
- "processingRate": "79 MB",
- "processedSize": 150323855360,
- "readSize": 3495952384,
- "transferedSize": 1274388985
}, - "type": "Backup",
- "sessionType": "BackupJob",
- "id": "d9509517-f5a3-4697-8164-71f1572ae0c6",
- "sessionId": "206e9bc7-86c3-40a4-91cd-0f3436cec21b",
- "creationTime": "2024-11-13T16:00:42.080574",
- "endTime": "2024-11-13T16:02:59.266609"
}, - {
- "algorithm": "None",
- "state": "Stopped",
- "name": "winsrv88:/C:\\shares\\nfs_share",
- "restorePointId": null,
- "restorePointReference": null,
- "repositoryId": "00000000-0000-0000-0000-000000000000",
- "usn": 164795,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "progress": {
- "bottleneck": "Proxy",
- "duration": "00:00:16",
- "processingRate": "N/A",
- "processedSize": 9578192,
- "readSize": 0,
- "transferedSize": 0
}, - "type": "Backup",
- "sessionType": "BackupJob",
- "id": "9e1f5ee9-02ec-48cf-a5bb-2b92c7013d91",
- "sessionId": "3779ebf8-4bbf-49af-b3ea-9fd2d5dc0689",
- "creationTime": "2024-11-12T22:00:37.218594",
- "endTime": "2024-11-12T22:00:53.438072"
}, - {
- "algorithm": "Increment",
- "state": "Stopped",
- "name": "linbase01",
- "restorePointId": "170bcae5-f2c4-4547-972e-15349aa04609",
- "restorePointReference": "/api/v1/restorePoints/170bcae5-f2c4-4547-972e-15349aa04609",
- "repositoryId": "88788f9e-d8f5-4eb4-bc4f-9b3f5403bcec",
- "usn": 163251,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "progress": {
- "bottleneck": "Source",
- "duration": "00:01:06",
- "processingRate": "95.5 MB",
- "processedSize": 21474836480,
- "readSize": 1001390080,
- "transferedSize": 413068918
}, - "type": "Backup",
- "sessionType": "BackupJob",
- "id": "cbede369-c316-4e33-bc9d-e0897f27f93d",
- "sessionId": "45e729e8-a905-4850-9e7c-8ee8f8df7695",
- "creationTime": "2024-11-12T18:00:29.437419",
- "endTime": "2024-11-12T18:01:35.94032"
}, - {
- "algorithm": "Increment",
- "state": "Stopped",
- "name": "winsrv88",
- "restorePointId": "807f0ca2-c2c0-46ae-b759-df510585459d",
- "restorePointReference": "/api/v1/restorePoints/807f0ca2-c2c0-46ae-b759-df510585459d",
- "repositoryId": "88788f9e-d8f5-4eb4-bc4f-9b3f5403bcec",
- "usn": 162437,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "progress": {
- "bottleneck": "Source",
- "duration": "00:02:10",
- "processingRate": "141.9 MB",
- "processedSize": 150323855360,
- "readSize": 4255121408,
- "transferedSize": 548362853
}, - "type": "Backup",
- "sessionType": "BackupJob",
- "id": "7dff932c-df5b-41b2-9955-7baf2ed08e57",
- "sessionId": "22babeec-9df0-41ef-b9fd-0d10c667a486",
- "creationTime": "2024-11-12T16:00:35.98907",
- "endTime": "2024-11-12T16:02:46.082522"
}
], - "pagination": {
- "total": 52,
- "count": 6,
- "skip": 0,
- "limit": 6
}
}
Get Task Session
The HTTP GET request to the /api/v1/taskSessions/{id}
path allows you to get a task session that has the specified id
.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator, Veeam Tape Operator, Veeam Backup Viewer.
path Parameters
id required | string <uuid> Task session ID. To get the ID, run the Get All Task Sessions request. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 404
- 500
{- "algorithm": "Increment",
- "state": "Stopped",
- "name": "linbase01",
- "restorePointId": "e7853593-49ac-49d9-be48-bcf98bf330f7",
- "restorePointReference": "/api/v1/restorePoints/e7853593-49ac-49d9-be48-bcf98bf330f7",
- "repositoryId": "88788f9e-d8f5-4eb4-bc4f-9b3f5403bcec",
- "usn": 129809,
- "result": {
- "result": "Success",
- "message": "Success",
- "isCanceled": false
}, - "progress": {
- "bottleneck": "Source",
- "duration": "00:03:39",
- "processingRate": "85 MB",
- "processedSize": 21474836480,
- "readSize": 891289600,
- "transferedSize": 354695419
}, - "type": "Backup",
- "sessionType": "BackupJob",
- "id": "3d995992-0230-42ef-bb30-ae8da82ea24a",
- "sessionId": "54979d08-a3a2-44b7-bbfe-6703585d58a3",
- "creationTime": "2024-11-09T18:00:30.407023",
- "endTime": "2024-11-09T18:04:09.960857"
}
Get Task Session Logs
The HTTP GET request to the /api/v1/taskSessions/{id}/logs
path allows you to get logs for a task session that has the specified id
.
Available to: Veeam Backup Administrator, Veeam Backup Operator, Veeam Restore Operator, Veeam Tape Operator, Veeam Backup Viewer.
path Parameters
id required | string <uuid> Task session ID. To get the ID, run the Get All Task Sessions request. |
query Parameters
statusFilter | string (ETaskLogRecordStatus) Filters task session logs by status. |
header Parameters
x-api-version required | string Default: 1.3-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
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.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 401
- 403
- 404
- 500
{- "totalRecords": 17,
- "records": [
- {
- "status": "Succeeded",
- "id": 20248,
- "startTime": "2024-11-10T18:00:57.507184+01:00",
- "updateTime": "2024-11-10T18:00:57.538426+01:00",
- "title": "Saving [prgtwesx01-ds01] linbase01/linbase01.vmx",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20249,
- "startTime": "2024-11-10T18:00:57.569666+01:00",
- "updateTime": "2024-11-10T18:00:58.022811+01:00",
- "title": "Saving [prgtwesx01-ds01] linbase01/linbase01.nvram",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20250,
- "startTime": "2024-11-10T18:00:58.147815+01:00",
- "updateTime": "2024-11-10T18:01:20.078084+01:00",
- "title": "Using backup proxy VMware Backup Proxy for disk Hard disk 1 [hotadd]",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20251,
- "startTime": "2024-11-10T18:01:21.359378+01:00",
- "updateTime": "2024-11-10T18:01:29.304504+01:00",
- "title": "Hard disk 1 (20 GB)",
- "description": "785 MB read at 107 MB/s [CBT]"
}, - {
- "status": "Succeeded",
- "id": 20252,
- "startTime": "2024-11-10T18:01:45.301632+01:00",
- "updateTime": "2024-11-10T18:01:48.004876+01:00",
- "title": "Removing VM snapshot",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20253,
- "startTime": "2024-11-10T18:01:48.708009+01:00",
- "updateTime": "2024-11-10T18:01:49.114281+01:00",
- "title": "Finalizing",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20254,
- "startTime": "2024-11-10T18:01:53.598843+01:00",
- "updateTime": "2024-11-10T18:01:53.598843+01:00",
- "title": "Busy: Source 99% > Proxy 36% > Network 8% > Target 0%",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20255,
- "startTime": "2024-11-10T18:01:53.614489+01:00",
- "updateTime": "2024-11-10T18:01:53.614489+01:00",
- "title": "Primary bottleneck: Source",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20256,
- "startTime": "2024-11-10T18:01:53.630095+01:00",
- "updateTime": "2024-11-10T18:01:53.630095+01:00",
- "title": "Network traffic verification detected no corrupted blocks",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20257,
- "startTime": "2024-11-10T18:01:53.661352+01:00",
- "updateTime": "2024-11-10T18:01:53.661352+01:00",
- "title": "Processing finished at 11/10/2024 6:01:53 PM",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20242,
- "startTime": "2024-11-10T18:00:42.334637+01:00",
- "updateTime": "2024-11-10T18:00:42.334637+01:00",
- "title": "VM size: 20 GB (17.4 GB used)",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20247,
- "startTime": "2024-11-10T18:00:50.834999+01:00",
- "updateTime": "2024-11-10T18:00:53.163236+01:00",
- "title": "Creating VM snapshot",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20241,
- "startTime": "2024-11-10T18:00:42.334637+01:00",
- "updateTime": "2024-11-10T18:00:42.334637+01:00",
- "title": "VM processing started at 11/10/2024 6:00:42 PM",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20243,
- "startTime": "2024-11-10T18:00:43.053402+01:00",
- "updateTime": "2024-11-10T18:00:50.600609+01:00",
- "title": "Getting VM info from vSphere",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20240,
- "startTime": "2024-11-10T18:00:41.13145+01:00",
- "updateTime": "2024-11-10T18:01:52.520697+01:00",
- "title": "Processing linbase01",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20217,
- "startTime": "2024-11-10T18:00:36.537488+01:00",
- "updateTime": "2024-11-10T18:00:36.537488+01:00",
- "title": "Queued for processing at 11/10/2024 6:00:36 PM",
- "description": ""
}, - {
- "status": "Succeeded",
- "id": 20218,
- "startTime": "2024-11-10T18:00:36.56874+01:00",
- "updateTime": "2024-11-10T18:00:39.756376+01:00",
- "title": "Required backup infrastructure resources have been assigned",
- "description": ""
}
]
}