Returned result, Example, Returned result example – HP Intelligent Management Center Licenses User Manual

Page 56

Advertising
background image

Query parameter

Boolean type. Optional. The default value is false. It is valid only when the orderBy parameter
is specified.

Only records that match the sort criteria are returned.

total

Boolean type. Optional. The default value is false. When the value is true, the start and size
attributes are invalid, the returned message body is empty, and the Message Header field
gives the records that match the sort criteria.

Returned Result

Status codes

200 (OK): Success.

Message header

If the total parameter is true, the Total field gives all the records that match the sort criteria. No
message body is included.

HTTP/1.1 200 OK
Total: 150

Message body

HTTP/1.1 200 OK
Total: 150

For the description on each field of the returned value, see the API document for Query Device
Information.

Example

Query the 10th to the 20th pieces of information about devices whose IP address starts from
192.168.0.

Request

GET jttp://imc_host:8080/imcrs/plat/res/device?ip=192.168.0. *&start=10&size=10accept: application/xml
. . .

Response

HTTP/1.1 200 OK
Content-Type: application/xml
. . .

<list>
<device>
<id>122</id>
<label>Dev Label1</label>
<ip>192.168.0.1</ip>
<mask>255.255.255.0</mask>
<status>1</status>
<contact>My Address</contact>
<location>Device Location</location>
<sysOid>1.3.6.1.4.1.25506.1.160</sysOid>
<sysName>Dev1</sysName>
<link rel=”self” href=”http://imc_host:port/incrs/plat/res/device/122”/</device>
. . .
<link rel=”previous” href=”http://imc_host:port/imcrs/plat/res/device?start=0&size=10”/>
<link rel=”next” href=”http://imc_host:port/imcrs/plat/res/device?start=2–&size=10”/>
</list>

56

Network Resource Management

Advertising