ManageEngine® Applications Manager 启用/禁用动作API | ||
ManageEngine Applications Manager为批量启用/禁用监视器或监控组报警动作提供了REST API。
启用/禁用监视器报警API
http://[ Host ]:[ Port ]/AppManager/xml/EnableDisableAlarmsAction?apikey=[ API key ]&resourceid=[ RESOURCEID]&alteraction=[enable/disable]
http://[ Host ]:[ Port ]/AppManager/xml/EnableDisableAlarmsAction?apikey=[ API key ]&haid=[ MONITORGROUPID ]&alteraction=[enable/disable]
请求参数
字段 | 描述 |
API Key | 管理标签下"生成API Key" 选项生成的Key。 |
resourceid | 资源标识=[ RESOURCEID ] 非托管监控下的AM_ManagedObject.RESOURCEID。 |
alteraction | 启用或禁用动作。 |
启用/禁用报警动作API示例:
http://app-windows:9090/AppManager/xml/EnableDisableAlarmsAction?apikey=65d0fa3e1f6c6bdcce1c3969f24c39a8&resourceid=10000056&alteraction=enable
示例输出:
<AppManager-response uri="/AppManager/xml/EnableDisableAlarmsAction"><result><response response-code="4000"><message>Enable/Disable alarms done successfully.</message></response></result></AppManager-response> |
删除监视器API |
执行动作API |