API Guide
HTTP response
codes
200
Example
Input:
Output:
{
"@odata.context":
"$metadata#Collection(AlertDestinations.SMTPConfiguration)",
"@odata.count": 1,
"value": [
{
"DestinationAddress": "10.35.12.7",
"UseCredentials": false,
"PortNumber": 25,
"UseSSL": false,
"Credential": null
}
]
}
Table 46. 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
Input:
{
"DestinationAddress":"10.35.12.7",
"PortNumber":25,
"UseCredentials":false,
"UseSSL" : false,
"Credential": {
"User":"root",
"Password":"calvin"
}
}
Output:
{
"DestinationAddress": "10.35.12.7",
"PortNumber": 25,
"UseCredentials": false,
"UseSSL": false,
"Credential": null
}
Table 47. Attributes
Attribute name Description
DestinationAddress Destination address of SMTP.
72 Application settings