- 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 Azure AD 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
The General Options section defines paths and operations for retrieving and editing general settings of Veeam Backup & Replication.
In this REST API version, you can configure SIEM integration and notification settings only.
Get General Options
The HTTP GET request to the /api/v1/generalOptions
path allows you to get Veeam Backup & Replication settings.
Available to: Veeam Backup Administrator.
header Parameters
x-api-version required | string Default: 1.1-rev2 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
{- "emailSettings": {
- "isEnabled": false,
- "smtpServerName": "",
- "advancedSmtpOptions": {
- "port": 25,
- "timeoutMs": 100000,
- "SSLEnabled": false,
- "authRequred": false,
- "credentialsId": null
}, - "from": "",
- "to": "",
- "subject": "[%JobResult%] %JobName% (%ObjectCount% objects) %Issues%",
- "sendDailyReportsAt": "2019-01-01T22:00:00+01:00",
- "notifyOnSuccess": true,
- "notifyOnWarning": true,
- "notifyOnFailure": true,
- "notifyOnLastRetry": true
}, - "notifications": {
- "storageSpaceThresholdEnabled": true,
- "storageSpaceThreshold": 10,
- "datastoreSpaceThresholdEnabled": true,
- "datastoreSpaceThreshold": 10,
- "skipVMSpaceThresholdEnabled": true,
- "skipVMSpaceThreshold": 5,
- "notifyOnSupportExpiration": true,
- "notifyOnUpdates": true
}, - "siemIntegration": {
- "SNMPEventsEnabled": true,
- "SNMPServers": [
- {
- "receiver": "snmp01",
- "port": 5577,
- "communityString": "community_string"
}, - {
- "receiver": "snmp02",
- "port": 5578,
- "communityString": "community_string"
}
], - "SyslogEventsEnabled": true,
- "SyslogServer": {
- "transportProtocol": "TCP",
- "serverName": "enterprise01.tech.local",
- "port": 9419,
- "certificateThumbprint": ""
}
}
}
Edit General Options
The HTTP PUT request to the /api/v1/generalOptions
path allows you to edit Veeam Backup & Replication settings.
Available to: Veeam Backup Administrator.
header Parameters
x-api-version required | string Default: 1.1-rev2 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
object (GeneralOptionsEmailNotificationsModel) Global email notification settings and job notifications. | |
object (GeneralOptionsNotificationsModel) Other notifications such as notifications on low disk space, support contract expiration, and available updates. | |
object (GeneralOptionsSiemIntegrationModel) SIEM integration settings. |
Settings have been updated.
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
{- "emailSettings": {
- "isEnabled": false,
- "smtpServerName": "",
- "advancedSmtpOptions": {
- "port": 25,
- "timeoutMs": 100000,
- "SSLEnabled": false,
- "authRequred": false,
- "credentialsId": null
}, - "from": "",
- "to": "",
- "subject": "[%JobResult%] %JobName% (%ObjectCount% objects) %Issues%",
- "sendDailyReportsAt": "2019-01-01T22:00:00+01:00",
- "notifyOnSuccess": true,
- "notifyOnWarning": true,
- "notifyOnFailure": true,
- "notifyOnLastRetry": true
}, - "notifications": {
- "storageSpaceThresholdEnabled": true,
- "storageSpaceThreshold": 10,
- "datastoreSpaceThresholdEnabled": true,
- "datastoreSpaceThreshold": 10,
- "skipVMSpaceThresholdEnabled": true,
- "skipVMSpaceThreshold": 5,
- "notifyOnSupportExpiration": true,
- "notifyOnUpdates": true
}, - "siemIntegration": {
- "SNMPEventsEnabled": true,
- "SNMPServers": [
- {
- "receiver": "snmp01",
- "port": 5577,
- "communityString": "community_string"
}, - {
- "receiver": "snmp02",
- "port": 5578,
- "communityString": "community_string"
}
], - "SyslogEventsEnabled": true,
- "SyslogServer": {
- "transportProtocol": "TCP",
- "serverName": "enterprise01.tech.local",
- "port": 9419,
- "certificateThumbprint": ""
}
}
}
- 200
- 400
- 401
- 403
- 404
- 500
{- "emailSettings": {
- "isEnabled": false,
- "smtpServerName": "",
- "advancedSmtpOptions": {
- "port": 25,
- "timeoutMs": 100000,
- "SSLEnabled": false,
- "authRequred": false,
- "credentialsId": null
}, - "from": "",
- "to": "",
- "subject": "[%JobResult%] %JobName% (%ObjectCount% objects) %Issues%",
- "sendDailyReportsAt": "2019-01-01T22:00:00+01:00",
- "notifyOnSuccess": true,
- "notifyOnWarning": true,
- "notifyOnFailure": true,
- "notifyOnLastRetry": true
}, - "notifications": {
- "storageSpaceThresholdEnabled": true,
- "storageSpaceThreshold": 10,
- "datastoreSpaceThresholdEnabled": true,
- "datastoreSpaceThreshold": 10,
- "skipVMSpaceThresholdEnabled": true,
- "skipVMSpaceThreshold": 5,
- "notifyOnSupportExpiration": true,
- "notifyOnUpdates": true
}, - "siemIntegration": {
- "SNMPEventsEnabled": true,
- "SNMPServers": [
- {
- "receiver": "snmp01",
- "port": 5577,
- "communityString": "community_string"
}, - {
- "receiver": "snmp02",
- "port": 5578,
- "communityString": "community_string"
}
], - "SyslogEventsEnabled": true,
- "SyslogServer": {
- "transportProtocol": "TCP",
- "serverName": "enterprise01.tech.local",
- "port": 9419,
- "certificateThumbprint": ""
}
}
}