ManageEngine® Applications Manager


执行动作

<< 上一页

主页

下一页 >>

执行动作

 

这个API可以用来执行Applications Manager中配置的动作,对于操作员,他只能执行指派给他的动作。

 

XML响应API

http://[ APM Host ]:[ APM Port ]/AppManager/xml/ExecuteAction?apikey=[ API Key ]&ActionId=10000056

 

JSON响应API

http://[ APM Host ]:[ APM Port ]/AppManager/json/ExecuteAction?apikey=[ API Key ]&ActionId=10000056

 

 

请求参数

字段 描述
ActionId 这个值为指定动作的ID号,可以帮助API执行对应的动作。可以通过列出动作API来获取该ID。
<AppManager-response uri="/AppManager/xml/ExecuteAction">
<result>
<response response-code="4000">
<ExecuteAction ActionTypeID="2" Status="Success" ActionExecPath="/common/executeSMS.do?method=testAction&actionID=10000004" Message="The action test1 has been successfully executed" ActionName="test1" ActionID="10000004" ActionType="SMS Action(s)"/>
</response>
</result>
</AppManager-response>

JSON语法

http://apm-prod1:9090/AppManager/json/ExecuteAction?apikey=c4e547c2330e2eb92d3e7af2262da9e9&ActionId=10000056

JSON响应

{"response-code":"4000","response":{"uri":"/AppManager/json/ExecuteAction","result":[{"ActionTypeID":"1","Status":"Success","ActionExecPath":"/common/executeAction.do?method=testAction&actionID=20000003","Message":"The action alert_mail has been successfully executed","ActionName":"alert_mail","ActionID":"20000003","ActionType":"E-mail Action(s)"}]}}

 

注意: 对于在在客户端中要求用户发送测试邮件或执行动作如Ec2实例/虚拟机动作/服务动作(启动/停止/重启),在这里将会执行执行。


<< 上一页

主页

下一页 >>

删除监视器

管理监视器