Query real-time locations, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual

Page 213: Returned result, Interface uri access method returned result

Advertising
background image

Query Real-Time Locations

Query real-time locations with certain criteria.

Interface URI

/res/access/realtimeLocate

Access Method

HTTP

GET

Parameters

Query parameters

Location type. 1 for MAC address. 2 for IP address.

type

Integer type. Required. The default value is 2.

Location address.

value

String type. Required. The default value is an empty string.

Only the number of records that meet the requirements is returned.

total

Boolean type. Optional. The default value is false. When the value is true, the returned message
body is empty, and the Total attribute of the message header returns the number of records that meet
the requirements.

Returned Result

Status codes

200 (OK): Success.

Message header

When the total parameter takes true, the Total attribute returns the total number of records that
meet the requirements. The message body is empty.

HTTP/1.1 200 OK
Total: 976

Message body

<list>
<realtimeLocation>
<locateIp>10.153.89.1</locateIp>
<deviceIp>10.153.89.77</deviceIp>
<ifDesc>Ethernet0/6</ifDesc>
</realtimeLocation>
...
</list>

Query Real-Time Locations

213

Advertising