ManageEngine® Applications Manager


邮件动作配置

<< 上一页

主页

下一页t >>

邮件动作配置API

 

这些API允许管理员用户配置告警邮件。邮件动作配置API支持GET和POST请求:

请求参数


关于执行该API的请求参数如下:

 

字段 描述        
emailactionname

动作的显示名称。如果邮件动作的显示名称中包含特殊字符,比如 # , & or + :
  • # 应该替换为 %23
  • & 应该替换为 %26
  • + 应该替换为 %2B

然后在RESTAPI中传递emailactionname参数。

subject
邮件的主题。
message
邮件的消息。
businesstype

可能的值有:

  • 1 - 在工作时间执行
  • 0 - 在工作时间以外执行
mailformat
消息格式:HTML、纯文本或两者兼备。
smtpserver SMTP服务器运行的主机名称或服务器IP。
smtpport
SMTP默认端口号为25。
businesshouraction
如果工作时间需要与该动作关联时为true。
businessid
业务ID
appendmessage 选择是否附加Applications Manager生成的告警信息。True或false
toaddress 收件人的邮件地址。
fromaddress 发件人的邮件地址。

创建邮件动作

该API允许管理员用户在Applications Manager中创建邮件动作。

 

语法:

对于XML响应:

http://[ APM Host ]:[ APM 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 ]

对于JSON响应:

http://[ APM Host ]:[ APM 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 ]

示例

http://app-windows:59090/AppManager/xml/actions/emailaction?apikey=09eebdd6893db4d20e16b84dff6664f1&subject=(Admin) Alarm from the Applications Manager&businesstype=1&mailformat=both&smtpserver=smtp&fromaddress=vijay@appmanager.com&emailactionname=Applications manager&businesshouraction=true&message=This information has been generated by the Applications Manager&businessid=10000&toaddress=vijayakumar.mariappan@zohocorp.com&appendmessage=true&smtpport=25

 

更新邮件动作

该API允许管理员用户在Applications Manager中编辑邮件动作配置。

 

语法:

对于XML响应:

http://[ APM Host ]:[ APM 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 ]

 

对于JSON响应:

http://[ APM Host ]:[ APM 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 ]

示例

http://app-windows:59090/AppManager/xml/actions/emailaction?apikey=09eebdd6893db4d20e16b84dff6664f1&subject=(Admin) Alarm from the Applications Manager&businesstype=0&mailformat=html&smtpserver=smtp&fromaddress=vijay@appmanager.com&businesshouraction=true&message=This information has been generated by the Applications Manager&emailactionid=10000&businessid=10000&toaddress=vijayakumar.mariappan@zohocorp.com&appendmessage=true&displayname=Applications manager&smtpport=25

删除邮件配置

该API允许管理员用户在Applications Manager中删除邮件动作。

 

语法:

对于XML响应:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/actions/emailaction?apikey=[ API Key ]&businessid=[Business Id],&TO_DELETE=true

 

对于JSON响应:

http://[ APM Host ]:[ APM Port ]/AppManager/json/actions/emailaction?apikey=[ API Key ]&businessid=[Business Id],&TO_DELETE=true

示例

http://app-windows:59090/AppManager/xml/actions/emailaction?apikey=09eebdd6893db4d20e16b84dff6664f1&emailactionid=10000,&TO_DELETE=true

邮件动作列表

该API允许管理员用户在Applications Manager中列出邮件动作。

 

语法:

对于XML响应:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/actions/emailaction?apikey=[ API Key ]

 

对于JSON响应:

http://[ APM Host ]:[ APM Port ]/AppManager/json/actions/emailaction?apikey=[ API Key ]

示例

http://app-windows:59090/AppManager/xml/actions/emailaction?apikey=09eebdd6893db4d20e16b84dff6664f1

Top

<< 上一页

主页

下一页t >>

域配置

事件日志配置