Display Device on Google Map API

 
Purpose: To display an already added device on Google Map.
Prerequisite: Google Map should be working in OpManager and the device you want to display should be added already.
Request URL: http://<opmanager-server:port>/api/xml/discovery/addDeviceToGMap?apiKey=APIKEY&deviceName=DEVICE-NAME
&latitude=LATITUDE&longitude=LONGITUDE

Request Parameters:

Parameter
Description
apiKey* API Key to access your OpManager server.
deviceName*
Name of the device to be added in business view.
latitude*
Latitude of the location where the device is present.
longitude*
Longitude of the location where the device is present.
* - Mandatory parameters

Sample Form (Post Method):
<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>

Example:

Copyright © 2012, ZOHO Corp. All Rights Reserved.
Network Monitoring Software from ManageEngine