Example – HP Intelligent Management Center Licenses User Manual
Page 345

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://imc_host:port/imcrs/perf/task/1
Example
Add an index named test.
Request
POST http://imc_host:8080/imcrs/perf/task
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...
<perfItem>
<itemName>Added Task</itemName>
<unitType>1</unitType>
<selectDefaultUnit>10</selectDefaultUnit>
<userAddUnit>bps</userAddUnit>
<unit>kb/s</unit>
<indexType>[index1[2]:interface:1:0]</indexType>
<indexDesc>1.3.6.1.2.1.2.2.1.2</indexDesc>
<itemFunction>((1.3.6.1.2.1.2.2.1.10-1.3.6.1.2.1.2.2.1.10')+(1.3.6.1.2.1.2.2.1.16-1.3.6.1.2.1.2.2.1.16'))/t</itemFunction>
</perfItem>
Response
HTTP/1.1 201 Created
Location: http://imc_host:port/imcrs/perf/task/1
Add Custom Performance Index 345