- 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 Verification Code
- postRegister Azure AD Application
- getGet Cloud Credentials Record
- putEdit Cloud Credentials Record
- delRemove Cloud Credentials Record
- postChange Secret Key
- 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
- 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
- Jobs
- Backups
- Backup Objects
- Object Restore Points
- Restore
- 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 the current version of the REST API, you can configure notification settings only.
Get Notification Settings
The HTTP GET request to the /api/v1/generalOptions
path allows you to get notification settings of Veeam Backup & Replication.
header Parameters
x-api-version required | string Default: 1.1-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
{- "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
}
}
Edit Notification Settings
The HTTP PUT request to the /api/v1/generalOptions
path allows you to edit notification settings of Veeam Backup & Replication.
header Parameters
x-api-version required | string Default: 1.1-rev0 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. |
Notification 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": true,
- "smtpServerName": "",
- "advancedSmtpOptions": {
- "port": 2425,
- "timeoutMs": 100000,
- "SSLEnabled": true,
- "authRequred": true,
- "credentialsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}, - "from": "",
- "to": "",
- "subject": "[%JobResult%] %JobName% (%ObjectCount% objects) %Issues%",
- "sendDailyReportsAt": "2022-01-01T22:00:00",
- "notifyOnSuccess": true,
- "notifyOnWarning": true,
- "notifyOnFailure": true,
- "notifyOnLastRetry": true
}, - "notifications": {
- "storageSpaceThresholdEnabled": true,
- "storageSpaceThreshold": 15,
- "datastoreSpaceThresholdEnabled": true,
- "datastoreSpaceThreshold": 13,
- "skipVMSpaceTresholdEnabled": true,
- "skipVMSpaceTreshold": 5,
- "notifyOnSupportExpiration": true,
- "notifyOnUpdates": true
}
}
- 200
- 400
- 401
- 403
- 404
- 500
{- "emailSettings": {
- "isEnabled": true,
- "smtpServerName": "string",
- "advancedSmtpOptions": {
- "port": 0,
- "timeoutMs": 0,
- "SSLEnabled": true,
- "authRequired": true,
- "credentialsId": "08e8bcd2-3d30-4d03-8e1a-ab6ac0cbf1ed"
}, - "from": "string",
- "to": "string",
- "subject": "string",
- "sendDailyReportsAt": "2019-08-24T14:15:22Z",
- "notifyOnSuccess": true,
- "notifyOnWarning": true,
- "notifyOnFailure": true,
- "notifyOnLastRetry": true
}, - "notifications": {
- "storageSpaceThresholdEnabled": true,
- "storageSpaceThreshold": 0,
- "datastoreSpaceThresholdEnabled": true,
- "datastoreSpaceThreshold": 0,
- "skipVMSpaceThresholdEnabled": true,
- "skipVMSpaceThreshold": 0,
- "notifyOnSupportExpiration": true,
- "notifyOnUpdates": true
}
}