Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Update SMTP alert profile

Updates an existing SMTP email profile.

Valid notification frequency values are: IMMEDIATELY, SUMMARY or NEVER. Information alerts can’t be sent more frequently than Warning alerts, and Warning alerts can’t be sent more frequently than Severe alerts.

HTTP request syntax (URI)
PATCH <base_URI>/v8/storage/file-devices/alerts/smtp/profiles/{profileId}
Parameters
Name Type Required Values Description
discloseDetailsBODYNbooleanDisclose details in the emails (IP addresses, etc).
excludeAttachmentsBODYNbooleanExcludes attachments for this profile.
htmlFormatBODYNbooleanSends the emails in HTML format.
ignoreNdmpEventsBODYNbooleanIgnore NDMP events in emails which are sent immediately.
isEnabledBODYNbooleanEnables/disables the profile.
maxEmailLengthBODYNintegerMaximum possible email length, in bytes.
notificationFrequencyInfoBODYNstringFrequency to send Information severity alerts.
notificationFrequencyWarningBODYNstringFrequency to send Warning severity alerts.
notificationFrequencySevereBODYNstringFrequency to send Severe severity alerts
profileIdURI_PARAMY stringSpecifies the email alert profile object ID.
recipientsBODYNlist of stringsList of all email recipients.
sendDailyStatusEmails BODYNbooleanSends a daily status email.
sendEmptyEmailsBODYNbooleanSends empty summary emails if there are no alerts to send.
summaryTimesBODYNlist of stringsList of times that summary emails will be sent. Times must be of the form HH:MM. Two summary times can be specified.
textBODYNstringArbitrary text to include at the beginning of the email body.
uuEncodeBODYNbooleanUuencode diagnostic emails.
Return codes
Code Data Description
204 No DataSMTP alert profile successfully updated.
400 Error Message Missing or invalid request contents.
403Error MessageOperation forbidden by access level.
500 Error message Error associated with the storage system.

Any HTTP status code other than 204 indicates that the API did not complete successfully.

Request example: Update profile to send daily status emails at 09:00 and 12:00
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/file-devices/alerts/smtp/profiles/6d61696e3a3a3a303a3a3a4f49445f24232140255f56 -X PATCH -d '{"summaryTimes":["09:00", "12:00"], "sendDailyStatusEmails":true}'
Response example
HTTP/1.1 204 No Content
Request example: Update profile to user HTML formatting, and send severe events immediately
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/file-devices/alerts/smtp/profiles/6d61696e3a3a3a303a3a3a4f49445f24232140255f56 -X PATCH -d '{"htmlFormat":true, "notificationFrequencySevere":"IMMEDIATELY"}'
Response example
HTTP/1.1 204 No Content

 

  • Was this article helpful?