API Guide
/api/AlertService/AlertDestinations/SMTPConfiguration
This URI represents the SMTP configuration.
GET method for SMTPConfiguration
This method returns a collection of SMTP configuration.
Description Returns a collection of SMTP configuration.
Privilege VIEW
HTTP response
codes
200
Example
response body
{
"@odata.context":
"$metadata#Collection(AlertDestinations.SMTPConfiguration)",
"@odata.count": 1,
"value": [
{
"DestinationAddress": "10.35.12.7",
"UseCredentials": false,
"PortNumber": 25,
"UseSSL": false,
"Credential": null
}
]
}
Table 44. Attributes
Attribute name Description
DestinationAddress Destination address of SMTP.
PortNumber Port number of SMTP.
UseCredentials Indicates if credentials are used.
UseSSL Indicates if SSL is used.
POST method for SMTPConfiguration
This method configures SMTP to send emails.
Description
Configures SMTP.
Privilege MONITORING_SETUP
HTTP response
codes
200
Example request
body
{
"DestinationAddress":"10.35.12.7",
"PortNumber":25,
"UseCredentials":false,
"UseSSL" : false,
"Credential": {
"User":"root",
"Password":"calvin"
}
}
74 Application settings