Example – HP Intelligent Management Center Licenses User Manual
Page 64
Message body
<list>
<deviceCategory>
<id>0</id>
<name>Router</name>
<preDefined>true</preDefined>
<link rel=”self” href=”http://imc_host:port/imcrs/plat/res/category/0”/>
</deviceCategory>
. . .
<link rel=”next” href=”http://imc_host:port/imcrs/plat/res/category?start=1–&size=10”/
</list>
For the description on each field of the returned value, see the API document for Query Device
Type.
Example
Query all device types.
Request
Get http://imc_host:8080/imcrs/plat/res/category?start=0&size=1000
accept: application/xml
. . .
Response
HTTP/1.1 200 OK
Content-Type: application/xml
. . .
<list>
<deviceCategory>
<id>0</id>
<name>Router</name>
<preDefined>true</preDefined>
<link rel=”self” href=”http://imc_host:port/imcrs/plat/res/category/0”/>
</deviceCategory>
<deviceCategory>
<id>1</id>
<name>Switch</name>
<preDefined>true</preDefined>
<link rel=”self” href=”http://imc_host:port/imcrs/plat/res/category/1”/>
</deviceCategory>
. . .
</list>
64
Network Resource Management