ManageEngine® Applications Manager Ping |
||
这个API可以用来Ping给定的服务器或给定的监视器的resourceid所对应的服务器,Ping命令将会被执行,结果将会作为请求返回。
XML响应API:
http://[ APM Host ]:[ APM Port ]/AppManager/xml/Ping?apikey=[ API Key ]&resourceid='10000157'
JSON响应API:
http://[ APM Host ]:[ APM Port ]/AppManager/json/Ping?apikey=[ API Key ]&host='hemachand-0591'
请求参数
字段 | 描述 |
resourceid | 这个值是监视器的 resourceid,方便我们可以ping监视器对应的主机 |
host | 这是任何服务器的主机,可以传送为从Applications Manager服务器ping的参数 |
响应明细
字段 | 描述 |
APIKey | 这是用户API Key |
Description | 这是用户账户在创建时的设置的描述信息 |
EmailID | 这是用户的电子邮件地址 |
GroupName | 这是用户账户的类型,包括:操作员、管理员、经理等 |
UserImage | 这是用户图案路径 |
UserID | 这是用户的ID |
UserName | 这是用户的用户名 |
<AppManager-response uri="/AppManager/xml/Ping"> <result> <response response-code="4000"> <PingResult Output="Pinging 127.0.0.1 with 32 bytes of data:<br>Reply from 127.0.0.1: bytes=32 time<1ms TTL=128<br><br>Ping statistics for 127.0.0.1:<br> Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),<br>Approximate round trip times in milli-seconds:<br> Minimum = 0ms, Maximum = 0ms, Average = 0ms<br>" Host="127.0.0.1" IPAddress="127.0.0.1"/> </response> </result> </AppManager-response> |
JSON输入 http://apm-prod1:9090/AppManager/json/Ping?apikey=c4e547c2330e2eb92d3e7af2262da9e9&host=apm-prod1 JSON响应 {"response-code":"4000","response":{"uri":"/AppManager/json/Ping","result":[{"Output":"Pinging apm-prod1.csez.zohocorpin.com [fe80::51a4:f642:390a:7e1f%14] with 32 bytes of data:<br>Reply from fe80::51a4:f642:390a:7e1f%14: time<1ms <br><br>Ping statistics for fe80::51a4:f642:390a:7e1f%14:<br> Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),<br>Approximate round trip times in milli-seconds:<br> Minimum = 0ms, Maximum = 0ms, Average = 0ms<br>","Host":"apm-prod1.csez.zohocorpin.com","IPAddress":"192.168.26.79"}]}} |
管理监视器 |
立即轮询 |