Sessions

Veeam Backup & Replication creates a session for every job run and for other operations performed on the backup server, such as restores, failover and rescans; within a session, task sessions track the processing of individual objects. You can get sessions and task sessions with their logs and stop a running session. Statistics are available for CDP policy sessions and CDP task sessions. To get automation sessions, run the Get All Automation Sessions request.

Get All Sessions

The HTTP GET request to the /api/v1/sessions endpoint gets an array of sessions performed on the backup server.

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

SecurityBearer
Request
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.

Enum: "Name" "SessionType" "CreationTime" "EndTime" "State" "Result" "InitiatedBy"
orderAsc
boolean

If true, sorts sessions in ascending order by the orderColumn parameter.

nameFilter
string

Filters sessions by the nameFilter pattern. The pattern can match any session parameter. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

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.

Items Enum: "Infrastructure" "BackupJob" "Automation" "ConfigurationBackup" "PublishBackupContentViaMount" "RepositoryMaintenance" "RepositoryEvacuate" "InfrastructureItemDeletion" "RestoreVm" "InstantRecovery" "FirstClassDiskInstantRestore" "AzureApplianceDeploy" "QuickMigration" "FileLevelRestore" "LinuxFileLevelRestore" "ReplicaJob" "ConfigurationResynchronize" "Failover" "PlannedFailover" "PermanentFailover" "UndoFailover" "Failback" "CommitFailback" "UndoFailback" "SwitchReplicaToProduction" "CloudDirectorVmRestore" "CloudDirectorVAppRestore" "MalwareDetection" "FirstClassDiskQuickMigration" "EntraIdRestore" "EntraIdRestoreFromCopy" "UnstructuredDataBackupCopy" "SecurityComplianceAnalyzer" "FileServerSave" "SureBackup" "NasRestore" "LogsExport" "TestCredentials" "SqlLogBackup" "OracleLogBackup" "PostgreSqlLogBackup" "AzureInstantRecovery" "AzureInstantRecoveryMigration" "AzureInstantRecoverySwitchover" "AzureInstantRecoveryStart" "AzureInstantRecoveryStop" "AzureInstantRecoveryMigrationUndo" "AzureInstantRecoveryMount" "FileInstantRecovery" "FileInstantRecoveryMigration" "PublishBackupContentViaNfs" "VolumesDiscover" "DeleteBackup" "BackgroundOperation" "AgentDiscovery" "AgentPolicy" "AgentBackup" "AgentOperationPurgeCache" "ApplianceUpdatesInstall" "FailoverPlan" "FailoverPlanTask" "UnstructuredDataBrowse" "BackupCopyJob" "UnstructuredDownloadMeta" "EntraIdRescanRepository" "HostComponentsUpdate" "CopyBackup" "FileBackupHealthCheck" "SureBackupContentScan" "ArchiveBackup" "ArchiveRehydration" "ArchiveSync" "ArchiveCopy" "ArchiveFreezing" "RetrieveBackup" "ArchiveTierDownload" "DirectBackupSync" "CheckpointRemoval" "IrisBackup" "Retention" "PlatformServiceJob" "PlatformBackupJob" "PlatformSnapshotJob" "PlatformSnapshotCopyJob" "AgentOperationBackupNow" "AgentOperationActiveFull" "AgentManagement" "BackupCopyJobParent" "ApplicationLevelRestore" "EncryptionAnalysis" "CdpClusterIOFilterDeploy" "VeeamUpdaterSettingsSync" "EndpointBackup" "StorageDiscovery" "StorageMonitoring" "AdForestRestore" "AgentsRecoveryAppliancesManagement" "RestoreRecoveryApplianceVolumes" "RestoreAgentVolumes" "EndpointRestore" "EpAgentOperationStopBackup" "BackupCacheSync" "PerVmMoveBackup" "PerVmCopyBackup" "FileBackupArchiveRetrievalProlonging" "HaSwitchover" "DccIndexSynchronization" "InstantDiskRecovery" "DiskRestore" "HaClusterEdit" "CdpPolicy" "ApplicationPluginBackup" "OracleRMANBackup" "SapHanaBackintBackup" "SapOracleBackintBackup" "MSSQLPluginBackup" "DB2PluginBackup" "SapMaxDBBackup" "StorageCopy" "ViLabDeploy" "ViLabDelete" "HvLabDeploy" "HvLabDelete" "StorageSnapshotUnarchive" "StorageSnapshotCreate" "StorageSnapshotDelete" "DRV" "OracleRMANRestore" "SapHanaBackintRestore" "SapOracleBackintRestore" "MSSQLPluginRestore" "DB2PluginRestore" "SapMaxDBRestore" "ApplicationPluginPolicyLogBackup" "OciVmRestore" "OciAccountRegistration" "OciApplianceImageManagement" "VmFileRestore" "BackupDataRetrieval" "ApplianceConfigurationRestore" "AdForestMonitoring" "BackupHealthCheck" "PlatformBackupArchiveJob"
stateFilter
string (ESessionState)

Filters sessions by session state.

Enum: "Stopped" "Starting" "Stopping" "Working" "Pausing" "Resuming" "WaitingTape" "Idle" "Postprocessing" "WaitingRepository" "WaitingSlot" "ActionRequired" "CbtMode"
resultFilter
Array of strings (ESessionResult)

Filters sessions by session result.

Items Enum: "None" "Success" "Warning" "Failed"
jobIdFilter
string <uuid>

Filters sessions by job ID.

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>.

Responses
200

OK

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.

get/api/v1/sessions
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Get Session

The HTTP GET request to the /api/v1/sessions/{id} endpoint gets a session that has the specified id.

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

SecurityBearer
Request
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-rev3

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

Responses
200

OK

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.

get/api/v1/sessions/{id}
Request samples
Response samples
application/json
{
  • "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  • "name": "Backup Job 1 (Incremental)",
  • "jobId": "7b2e9f14-3c6a-4d85-9e17-a4c0b6d3f281",
  • "sessionType": "BackupJob",
  • "creationTime": "2026-10-15T22:00:04.317+02:00",
  • "endTime": "2026-10-15T22:04:16.902+02:00",
  • "state": "Stopped",
  • "progressPercent": 100,
  • "result": {
    },
  • "resourceId": "e4a91c3d-6f28-4b07-8d5e-2c9a1b7f4e60",
  • "resourceReference": "/api/v1/backups/e4a91c3d-6f28-4b07-8d5e-2c9a1b7f4e60",
  • "usn": 510592,
  • "platformName": "VMware",
  • "platformId": "00000000-0000-0000-0000-000000000000",
  • "initiatedBy": "veeamadmin",
  • "algorithm": "Increment",
  • "progress": {
    },
  • "originalSessionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

Get Session Logs

The HTTP GET request to the /api/v1/sessions/{id}/logs endpoint gets an array of log records of a session that has the specified id.

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

SecurityBearer
Request
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.

Enum: "None" "Succeeded" "Warning" "Failed"
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>.

Responses
200

OK

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.

get/api/v1/sessions/{id}/logs
Request samples
Response samples
application/json
{
  • "totalRecords": 11,
  • "records": [
    ]
}

Get Session Statistics

The HTTP GET request to the /api/v1/sessions/{id}/stats endpoint gets statistics of a session that has the specified id. Statistics are currently available for CDP policy sessions only; for other session types the request returns the 400 error. If statistics have not been collected for the session yet, the request returns the 404 error.

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

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Session ID. To get the ID, run the Get All Sessions request.

query Parameters
throughputWindow
string (EThroughputWindow)
Default: "EntireSession"

Time window of the returned throughput series. If you do not specify the parameter, Veeam Backup & Replication returns the throughput series of the entire session run (EntireSession).

Enum: "EntireSession" "Last5Minutes"
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>.

Responses
200

OK

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.

get/api/v1/sessions/{id}/stats
Request samples
Response samples
application/json
{
  • "sessionId": "0854a9fc-e2b9-4c5b-97ec-0f45922e6f74",
  • "sessionType": "CdpPolicy",
  • "data": {
    },
  • "rpo": {
    },
  • "taskSessions": {
    },
  • "lastSync": {
    },
  • "syncDuration": {
    },
  • "syncData": {
    },
  • "bottleneck": {
    },
  • "throughput": {
    }
}

Stop Session

The HTTP POST request to the /api/v1/sessions/{id}/stop endpoint stops a session that has the specified id.

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

SecurityBearer
Request
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-rev3

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

Responses
200

OK

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/sessions/{id}/stop
Request samples
Response samples
application/json
{ }

Get Task Sessions for Specified Session

The HTTP GET request to the /api/v1/sessions/{id}/taskSessions endpoint gets an array of task sessions performed on the backup server for the session that has the specified id .

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

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Session ID. To get the ID, run the Get All Sessions request.

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.

Enum: "Name" "Type" "SessionType" "CreationTime" "EndTime" "State" "Result" "ScanState" "ScanResult"
orderAsc
boolean

If true, sorts task sessions in ascending order by the orderColumn parameter.

nameFilter
string

Filters task sessions by the nameFilter pattern. The pattern can match any task session parameter. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

typeFilter
string (ETaskSessionType)

Filters task sessions by the task session type.

Enum: "Backup" "Restore" "Antivirus" "Replica" "Cdp" "MoveCopy"
sessionTypeFilter
string (ESessionType)

Filters task sessions by session type.

Enum: "Infrastructure" "BackupJob" "Automation" "ConfigurationBackup" "PublishBackupContentViaMount" "RepositoryMaintenance" "RepositoryEvacuate" "InfrastructureItemDeletion" "RestoreVm" "InstantRecovery" "FirstClassDiskInstantRestore" "AzureApplianceDeploy" "QuickMigration" "FileLevelRestore" "LinuxFileLevelRestore" "ReplicaJob" "ConfigurationResynchronize" "Failover" "PlannedFailover" "PermanentFailover" "UndoFailover" "Failback" "CommitFailback" "UndoFailback" "SwitchReplicaToProduction" "CloudDirectorVmRestore" "CloudDirectorVAppRestore" "MalwareDetection" "FirstClassDiskQuickMigration" "EntraIdRestore" "EntraIdRestoreFromCopy" "UnstructuredDataBackupCopy" "SecurityComplianceAnalyzer" "FileServerSave" "SureBackup" "NasRestore" "LogsExport" "TestCredentials" "SqlLogBackup" "OracleLogBackup" "PostgreSqlLogBackup" "AzureInstantRecovery" "AzureInstantRecoveryMigration" "AzureInstantRecoverySwitchover" "AzureInstantRecoveryStart" "AzureInstantRecoveryStop" "AzureInstantRecoveryMigrationUndo" "AzureInstantRecoveryMount" "FileInstantRecovery" "FileInstantRecoveryMigration" "PublishBackupContentViaNfs" "VolumesDiscover" "DeleteBackup" "BackgroundOperation" "AgentDiscovery" "AgentPolicy" "AgentBackup" "AgentOperationPurgeCache" "ApplianceUpdatesInstall" "FailoverPlan" "FailoverPlanTask" "UnstructuredDataBrowse" "BackupCopyJob" "UnstructuredDownloadMeta" "EntraIdRescanRepository" "HostComponentsUpdate" "CopyBackup" "FileBackupHealthCheck" "SureBackupContentScan" "ArchiveBackup" "ArchiveRehydration" "ArchiveSync" "ArchiveCopy" "ArchiveFreezing" "RetrieveBackup" "ArchiveTierDownload" "DirectBackupSync" "CheckpointRemoval" "IrisBackup" "Retention" "PlatformServiceJob" "PlatformBackupJob" "PlatformSnapshotJob" "PlatformSnapshotCopyJob" "AgentOperationBackupNow" "AgentOperationActiveFull" "AgentManagement" "BackupCopyJobParent" "ApplicationLevelRestore" "EncryptionAnalysis" "CdpClusterIOFilterDeploy" "VeeamUpdaterSettingsSync" "EndpointBackup" "StorageDiscovery" "StorageMonitoring" "AdForestRestore" "AgentsRecoveryAppliancesManagement" "RestoreRecoveryApplianceVolumes" "RestoreAgentVolumes" "EndpointRestore" "EpAgentOperationStopBackup" "BackupCacheSync" "PerVmMoveBackup" "PerVmCopyBackup" "FileBackupArchiveRetrievalProlonging" "HaSwitchover" "DccIndexSynchronization" "InstantDiskRecovery" "DiskRestore" "HaClusterEdit" "CdpPolicy" "ApplicationPluginBackup" "OracleRMANBackup" "SapHanaBackintBackup" "SapOracleBackintBackup" "MSSQLPluginBackup" "DB2PluginBackup" "SapMaxDBBackup" "StorageCopy" "ViLabDeploy" "ViLabDelete" "HvLabDeploy" "HvLabDelete" "StorageSnapshotUnarchive" "StorageSnapshotCreate" "StorageSnapshotDelete" "DRV" "OracleRMANRestore" "SapHanaBackintRestore" "SapOracleBackintRestore" "MSSQLPluginRestore" "DB2PluginRestore" "SapMaxDBRestore" "ApplicationPluginPolicyLogBackup" "OciVmRestore" "OciAccountRegistration" "OciApplianceImageManagement" "VmFileRestore" "BackupDataRetrieval" "ApplianceConfigurationRestore" "AdForestMonitoring" "BackupHealthCheck" "PlatformBackupArchiveJob"
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.

Enum: "Stopped" "Starting" "Stopping" "Working" "Pausing" "Resuming" "WaitingTape" "Idle" "Postprocessing" "WaitingRepository" "WaitingSlot" "ActionRequired" "CbtMode"
resultFilter
string (ESessionResult)

Filters task sessions by task session result.

Enum: "None" "Success" "Warning" "Failed"
scanTypeFilter
string (EAntivirusScanType)

Filters task sessions by scan type.

Enum: "Antivirus" "Yara"
scanResultFilter
string (EAntivirusScanResult)

Filters task sessions by scan result.

Enum: "None" "Clean" "Infected" "Failed" "Canceled" "Inconclusive"
scanStateFilter
string (EAntivirusScanState)

Filters task sessions by scan state.

Enum: "NotStarted" "InProgress" "Finished"
sessionIdFilter
string <uuid>

Filters task sessions by session id.

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>.

Responses
200

OK

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.

get/api/v1/sessions/{id}/taskSessions
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Get All Task Sessions

The HTTP GET request to the /api/v1/taskSessions endpoint gets an array of task sessions performed on the backup server.

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

SecurityBearer
Request
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.

Enum: "Name" "Type" "SessionType" "CreationTime" "EndTime" "State" "Result" "ScanState" "ScanResult"
orderAsc
boolean

If true, sorts task sessions in ascending order by the orderColumn parameter.

nameFilter
string

Filters task sessions by the nameFilter pattern. The pattern can match any task session parameter. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

typeFilter
string (ETaskSessionType)

Filters task sessions by the task session type.

Enum: "Backup" "Restore" "Antivirus" "Replica" "Cdp" "MoveCopy"
sessionTypeFilter
string (ESessionType)

Filters task sessions by session type.

Enum: "Infrastructure" "BackupJob" "Automation" "ConfigurationBackup" "PublishBackupContentViaMount" "RepositoryMaintenance" "RepositoryEvacuate" "InfrastructureItemDeletion" "RestoreVm" "InstantRecovery" "FirstClassDiskInstantRestore" "AzureApplianceDeploy" "QuickMigration" "FileLevelRestore" "LinuxFileLevelRestore" "ReplicaJob" "ConfigurationResynchronize" "Failover" "PlannedFailover" "PermanentFailover" "UndoFailover" "Failback" "CommitFailback" "UndoFailback" "SwitchReplicaToProduction" "CloudDirectorVmRestore" "CloudDirectorVAppRestore" "MalwareDetection" "FirstClassDiskQuickMigration" "EntraIdRestore" "EntraIdRestoreFromCopy" "UnstructuredDataBackupCopy" "SecurityComplianceAnalyzer" "FileServerSave" "SureBackup" "NasRestore" "LogsExport" "TestCredentials" "SqlLogBackup" "OracleLogBackup" "PostgreSqlLogBackup" "AzureInstantRecovery" "AzureInstantRecoveryMigration" "AzureInstantRecoverySwitchover" "AzureInstantRecoveryStart" "AzureInstantRecoveryStop" "AzureInstantRecoveryMigrationUndo" "AzureInstantRecoveryMount" "FileInstantRecovery" "FileInstantRecoveryMigration" "PublishBackupContentViaNfs" "VolumesDiscover" "DeleteBackup" "BackgroundOperation" "AgentDiscovery" "AgentPolicy" "AgentBackup" "AgentOperationPurgeCache" "ApplianceUpdatesInstall" "FailoverPlan" "FailoverPlanTask" "UnstructuredDataBrowse" "BackupCopyJob" "UnstructuredDownloadMeta" "EntraIdRescanRepository" "HostComponentsUpdate" "CopyBackup" "FileBackupHealthCheck" "SureBackupContentScan" "ArchiveBackup" "ArchiveRehydration" "ArchiveSync" "ArchiveCopy" "ArchiveFreezing" "RetrieveBackup" "ArchiveTierDownload" "DirectBackupSync" "CheckpointRemoval" "IrisBackup" "Retention" "PlatformServiceJob" "PlatformBackupJob" "PlatformSnapshotJob" "PlatformSnapshotCopyJob" "AgentOperationBackupNow" "AgentOperationActiveFull" "AgentManagement" "BackupCopyJobParent" "ApplicationLevelRestore" "EncryptionAnalysis" "CdpClusterIOFilterDeploy" "VeeamUpdaterSettingsSync" "EndpointBackup" "StorageDiscovery" "StorageMonitoring" "AdForestRestore" "AgentsRecoveryAppliancesManagement" "RestoreRecoveryApplianceVolumes" "RestoreAgentVolumes" "EndpointRestore" "EpAgentOperationStopBackup" "BackupCacheSync" "PerVmMoveBackup" "PerVmCopyBackup" "FileBackupArchiveRetrievalProlonging" "HaSwitchover" "DccIndexSynchronization" "InstantDiskRecovery" "DiskRestore" "HaClusterEdit" "CdpPolicy" "ApplicationPluginBackup" "OracleRMANBackup" "SapHanaBackintBackup" "SapOracleBackintBackup" "MSSQLPluginBackup" "DB2PluginBackup" "SapMaxDBBackup" "StorageCopy" "ViLabDeploy" "ViLabDelete" "HvLabDeploy" "HvLabDelete" "StorageSnapshotUnarchive" "StorageSnapshotCreate" "StorageSnapshotDelete" "DRV" "OracleRMANRestore" "SapHanaBackintRestore" "SapOracleBackintRestore" "MSSQLPluginRestore" "DB2PluginRestore" "SapMaxDBRestore" "ApplicationPluginPolicyLogBackup" "OciVmRestore" "OciAccountRegistration" "OciApplianceImageManagement" "VmFileRestore" "BackupDataRetrieval" "ApplianceConfigurationRestore" "AdForestMonitoring" "BackupHealthCheck" "PlatformBackupArchiveJob"
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.

Enum: "Stopped" "Starting" "Stopping" "Working" "Pausing" "Resuming" "WaitingTape" "Idle" "Postprocessing" "WaitingRepository" "WaitingSlot" "ActionRequired" "CbtMode"
resultFilter
string (ESessionResult)

Filters task sessions by task session result.

Enum: "None" "Success" "Warning" "Failed"
scanTypeFilter
string (EAntivirusScanType)

Filters task sessions by scan type.

Enum: "Antivirus" "Yara"
scanResultFilter
string (EAntivirusScanResult)

Filters task sessions by scan result.

Enum: "None" "Clean" "Infected" "Failed" "Canceled" "Inconclusive"
scanStateFilter
string (EAntivirusScanState)

Filters task sessions by scan state.

Enum: "NotStarted" "InProgress" "Finished"
sessionIdFilter
string <uuid>

Filters task sessions by session id.

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>.

Responses
200

OK

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.

get/api/v1/taskSessions
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Get Task Session

The HTTP GET request to the /api/v1/taskSessions/{id} endpoint gets a task session that has the specified id.

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

SecurityBearer
Request
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-rev3

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

Responses
200

OK

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.

get/api/v1/taskSessions/{id}
Request samples
Response samples
application/json
{
  • "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": {
    },
  • "status": "Success",
  • "progress": {
    },
  • "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 endpoint gets logs for a task session that has the specified id.

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

SecurityBearer
Request
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.

Enum: "None" "Succeeded" "Warning" "Failed"
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>.

Responses
200

OK

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.

get/api/v1/taskSessions/{id}/logs
Request samples
Response samples
application/json
{
  • "totalRecords": 17,
  • "records": [
    ]
}

Get Task Session Statistics

The HTTP GET request to the /api/v1/taskSessions/{id}/stats endpoint gets statistics of a task session that has the specified id. Statistics are currently available for CDP task sessions only; for other task session types the request returns the 400 error. If statistics have not been collected for the task session yet, the request returns the 404 error.

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

SecurityBearer
Request
path Parameters
id
required
string <uuid>

Task session ID. To get the ID, run the Get All Task Sessions request.

query Parameters
throughputWindow
string (EThroughputWindow)
Default: "EntireSession"

Time window of the returned throughput series. If you do not specify the parameter, Veeam Backup & Replication returns the throughput series of the entire session run (EntireSession).

Enum: "EntireSession" "Last5Minutes"
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>.

Responses
200

OK

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.

get/api/v1/taskSessions/{id}/stats
Request samples
Response samples
application/json
{
  • "taskSessionId": "d2c8a7b4-3f1e-4a5b-9c6d-7e8f9a0b1c2d",
  • "sessionId": "0854a9fc-e2b9-4c5b-97ec-0f45922e6f74",
  • "type": "Cdp",
  • "data": {
    },
  • "rpo": {
    },
  • "syncSessions": {
    },
  • "lastSync": {
    },
  • "syncDuration": {
    },
  • "syncData": {
    },
  • "bottleneck": {
    },
  • "throughput": {
    }
}