Example – HP Intelligent Management Center Licenses User Manual

Page 152

Advertising
background image

Message header

If the operation succeeds, the Location field gives the URI of the new resource. The message body
is empty.

HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/plat/res/view/interface/3

Example

Add an interface view named yourIfView. The device with ID 5 and interface indexes 1 and 3 is
added to the interface view.

Request

POST http://imc_host:8080/imcrs/plat/res/view/interface
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...
<interfaceView>
<name>yourIfView</name>
<desc>yourIfView</desc>
<ifInfo>
<deviceId>55</deviceId>
<ifIndex>1</ifIndex>
</ifInfo>
<ifInfo>
<deviceId>55</deviceId>
<ifIndex>3</ifIndex>
</ifInfo>
</interfaceView>

Response

HTTP/1.1 201 Created
Location: http://localhost:8080/imcrs/plat/res/view/interface/3

152

Network Resource Management

Advertising