Editing Audit Notification Settings
You can edit audit notification settings.
Request
Request Headers
The request header must contain an authorization token of the current session.
Request Body
To edit audit notification settings, you need to enter in the request body the properties that you want to change with new values. The properties you omit will remain unchanged.
The request body must contain the following properties:
Property | Type | Description |
---|---|---|
enableNotification | boolean | Defines whether Veeam Backup for Microsoft 365 will send audit notifications by email. |
smtpServer | string | Specifies the full DNS name or IP address of the SMTP server for sending email notifications. |
port | integer | Specifies the port used for connection to the SMTP server. |
useAuthentication | boolean | Defines whether the SMTP server requires authentication. |
username | string | Specifies the user name of the account used for authentication with the SMTP server. |
userpassword | string | Specifies the password of the account used for authentication with the SMTP server. |
useSSL | boolean | Defines whether Veeam Backup for Microsoft 365 will use a secure connection to transmit email notifications. |
from | string | Specifies email address of the notification sender. |
to | string | Specifies email address of the notification recipient. For listing multiple recipients, use semicolon (;) as a separator. |
subject | string | Specifies the subject for email notifications. The subject of an email notification displays information according to the following variables:
|
For example:
Request Body: { "enableNotification": true, "smtpServer": "smtp.office365.com", "port": 590, "useAuthentication": true, "username": "john.smith@tech.com", "useSSL": true, "from": "vbo@tech.com", "to": "admin@tech.com", "subject": "[Audit] %OrganizationName% - %DisplayName% - %Action% initiated by %InitiatedByUserName% at %StartTime%" } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
None.
Example
The example shows how to update audit notification settings.
Request: PUT https://abc.tech.local:4443/v6/AuditEmailSettings
Request Header: Authorization: Bearer <Access-Token>
Request Body: { "enableNotification": true, "smtpServer": "smtp.office365.com", "port": 590, "useAuthentication": true, "username": "john.smith@tech.com", "useSSL": true, "from": "vbo@tech.com", "to": "admin@tech.com", "subject": "[Audit] %OrganizationName% - %DisplayName% - %Action% initiated by %InitiatedByUserName% at %StartTime%" }
Response: 200 OK |