Schedule demo

Email Action Configuration APIs


These APIs allow an admin user to configure e-mail to be sent to specified persons in the event of an alarm. Email Action Configuration APIs are designed to support GET and POST requests:

Supported HTTP methods: GET, POST

Allowed roles: Administrator, Operator, User

Request Parameters

The parameters involved in executing this API request are:

FieldDescription
emailactionnameAny display name for the action. If the display name of the email action contains a special character like # , & or + :
  • # should be replaced with %23
  • & should be repalced with %26
  • + should be replaced with %2B

while passing the emailactionname parameter in the RESTAPI.

subjectThe subject of the e-mail.
messageThe message of the e-mail.
businesstype

Possible Values are:

  • 1 - Execute during business hour
  • 0 - Execute outside business hour
mailformatThe format of the message: HTML, Plain Text or Both.
smtpserverThe Server IP or host name of the host in which the SMTP server runs.
smtpportSMTP Port. 25 by default.
businesshouractionTrue if a business hour needs to be associated to this action
businessidBusiness ID
appendmessageChoose whether to append the alarm information generated by Applications Manager to the Email. True or false
toaddressThe receiver's address.
fromaddressThe sender's address

Create Email Action

This API allows an admin user to create an email action in Applications Manager.

Syntax

For XML Response:

https://[HOST]:[PORT]/AppManager/xml/actions/emailaction?apikey=[ API Key ]&subject=[ Subject]&businesstype=[ Type]&mailformat=[ HTML/Plain Text/Both]&smtpserver=[ SMTP Server]&fromaddress=[ Sender address]&emailactionname=[ Name ]&businesshouraction=[ True/False ]&message=[ Message Text ]&businessid=[ Business ID]&toaddress=[ Receiver's Address]&appendmessage=[ True/False ]&smtpport=[ Port ]

For JSON Response:

https://[HOST]:[PORT]/AppManager/json/actions/emailaction?apikey=[ API Key ]&subject=[ Subject]&businesstype=[ Type]&mailformat=[ HTML/Plain Text/Both]&smtpserver=[ SMTP Server]&fromaddress=[ Sender address]&emailactionname=[ Name ]&businesshouraction=[ True/False ]&message=[ Message Text ]&businessid=[ Business ID]&toaddress=[ Receiver's Address]&appendmessage=[ True/False ]&smtpport=[ Port ]

Example

https://apm-prod-server:8443/AppManager/xml/actions/emailaction?apikey=aaaaaabbbbbbccccccddddddeeeeee&subject=(Admin) Alarm from the Applications Manager&businesstype=1&mailformat=both&smtpserver=smtp&fromaddress=mailid@appmanager.com&emailactionname=Applications manager&businesshouraction=true&message=This information has been generated by the Applications Manager&businessid=10000&toaddress=mailid@domain.com&appendmessage=true&smtpport=25

Update Email Action

This API allows an admin user to edit any email action configured in Applications Manager.

Syntax

For XML Response:

https://[HOST]:[PORT]/AppManager/xml/actions/emailaction?apikey=[ API Key ]&subject=[ Subject]&businesstype=[ Business Type]&mailformat=[ HTML/Plain Text/Both]&smtpserver=[ SMTP Server]&fromaddress=[ Sender address]&businesshouraction=[ True/False ]&message=[ Message Text ]&emailactionid=[ ID ]&businessid= ID ]&toaddress=[ Receiver's Address]&appendmessage=[ True/False ]&displayname=[ Display Name]&smtpport=[ Port ]

For JSON Response:

https://[HOST]:[PORT]/AppManager/json/actions/emailaction?apikey=[ API Key ]&subject=[ Subject]&businesstype=[ Business Type]&mailformat=[ HTML/Plain Text/Both]&smtpserver=[ SMTP Server]&fromaddress=[ Sender address]&businesshouraction=[ True/False ]&message=[ Message Text ]&emailactionid=[ ID ]&businessid= ID ]&toaddress=[ Receiver's Address]&appendmessage=[ True/False ]&displayname=[ Display Name]&smtpport=[ Port ]

Example

https://apm-prod-server:8443/AppManager/xml/actions/emailaction?apikey=aaaaaabbbbbbccccccddddddeeeeee&subject=(Admin) Alarm from the Applications Manager&businesstype=0&mailformat=html&smtpserver=smtp&fromaddress=mailid@appmanager.com&businesshouraction=true&message=This information has been generated by the Applications Manager&emailactionid=10000&businessid=10000&toaddress=mailid@domain.com&appendmessage=true&displayname=Applications manager&smtpport=25

Delete Email Action

This API allows an admin user to delete an email action in Applications Manager.

Syntax

For XML Response:

https://[HOST]:[PORT]/AppManager/xml/actions/emailaction?apikey=[ API Key ]&emailactionid=[Business Id],&TO_DELETE=true

For JSON Response:

https://[HOST]:[PORT]/AppManager/json/actions/emailaction?apikey=[ API Key ]&emailactionid=[Business Id],&TO_DELETE=true

Example

https://apm-prod-server:8443/AppManager/xml/actions/emailaction?apikey=aaaaaabbbbbbccccccddddddeeeeee&emailactionid=10000,&TO_DELETE=true

List Email Actions

This API allows an admin user to list down the email actions in Applications Manager.

Syntax

For XML Response:

https://[HOST]:[PORT]/AppManager/xml/actions/emailaction?apikey=[ API Key ]

For JSON Response:

https://[HOST]:[PORT]/AppManager/json/actions/emailaction?apikey=[ API Key ]

Example

https://apm-prod-server:8443/AppManager/xml/actions/emailaction?apikey=aaaaaabbbbbbccccccddddddeeeeee

Loved by customers all over the world

"Standout Tool With Extensive Monitoring Capabilities"

It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.

Reviewer Role: Research and Development

carlos-rivero
"I like Applications Manager because it helps us to detect issues present in our servers and SQL databases."
Carlos Rivero

Tech Support Manager, Lexmark

Trusted by thousands of leading businesses globally