The API returns plugload location for all plugloads in an area. The data is returned as X, Y coordinates of the measured and scaled-down distance from the lower-left corner of the uploaded floor plan.
Request
GET https://{em_ip_address_or_hostname}/ems/api/org/plugload/v1/location/list/area/{area_id}/1
Parameters
Request | |
em_ip_address or hostname: | The Manage IP address or hostname. |
area_id: | Area identifier. Use the Area ID returned in the Get all Areas API , or in EM, select Facility > Floor > Area in the left panel, and click the Settings tab to get the Area ID. |
Response | |
id: | Plugload identifier. |
name: | Plugload name. Default plugload name is in the format plugloadxxxxxx. |
xaxis: | Scaled measurement of distance in the horizontal dimension from the lower-left corner of the uploaded floor plan. |
yaxis: | Scaled measurement of distance in the vertical dimension from the lower-left corner of the uploaded floor plan. |
macaddress: | Plugload MAC address. |
groupid: | Profile group identifier. The ID of the profile associated with the plugload. |
Ignore the remaining parameters displayed |
Sample Code
For example, the Get all Areas API returned two areas: Hardware area with ID ‘9’ and Software area with ID ‘27’. Request the EM for the x- and y- coordinates of the scaled-down distance of the floor plan for all plugloads in the area with area ID ‘9’.
Get https://192.80.3.2/ems/api/org/plugload/v1/location/list/area/9/1 |
Comments
Article is closed for comments.