ManageEngine Applications Manager提供REST API,用于从Applications Manager服务器获取数据。该API允许用户取消管理监视器。
用于取消管理监视器的API:
http://[ Host ]:[ Port ]/AppManager/xml/UnmanageMonitor?apikey=[ API key ]&resourceid=[ RESOURCEID ]
http://[ Host ]:[ Port ]/AppManager/xml/UnmanageMonitor?apikey=[ API key ]&haid=[ MONITORGROUPID ]
请求参数:
字段 | 描述 |
---|---|
API Key | 通过“管理”标签中的“生成API密钥”选项生成的密钥 。 |
resourceid | resourceid=[ RESOURCEID ] 其中 RESOURCEID 是要取消管理的监视器的AM_ManagedObject.RESOURCEID。 |
haid | 要取消管理的业务组的resourceid。 |
示例输入:
http://app-windows:9090/AppManager/xml/UnmanageMonitor?apikey=65d0fa3e1f6c6bdcce1c3969f24c39a8&resourceid=10000056
http://app-windows:9090/AppManager/xml/UnmanageMonitor?apikey=65d0fa3e1f6c6bdcce1c3969f24c39a8&haid=10
示例输出:
<AppManager-response uri="/AppManager/xml/UnmanageMonitor">
<result>
<response response-code="4000">
<message>Monitor with resourceID 10000056 unmanaged successfully</message>
</response>
</result>
</AppManager-response>