在Google地图中显示设备API

 
目的: 在Google地图中显示已添加的设备
先决条件: Google地图在OpManager中可以工作,相关设备已添加
请求URL: http://<opmanager-server:port>/api/xml/discovery/addDeviceToGMap?apiKey=APIKEY&deviceName=DEVICE-NAME
&latitude=LATITUDE&longitude=LONGITUDE

请求参数:

参数
描述
apiKey* API键,用来访问OpManager服务器
deviceName*
设备名称
latitude*
设备位置的纬度
longitude*
设备位置的经度
* - 必需参数

格式(Post方法):
<form method="POST" action="http://opman-vm-win7-2/api/xml/discovery/addDeviceToGMap?apiKey=[APIKEY]">
<input type="hidden" name="deviceName" value="[DEVICE-NAME]">
<input type="hidden" name="latitude" value="[LATITUDE]">
<input type="hidden" name="longitude" value="[LONGITUDE]">
<input type="submit" value="Display Device in GM" name="submit">
</form>

示例:



Copyright © 2005-2013, ZOHO Corp.,All Rights Reserved.