HP Intelligent Management Center Extended API User Guide
Example
Add a device with the IP address 192.168.1.100.
Request
POST http://imc_host:8080/imcrs/plat/res/device
accept: application/xml
Content-Type: application/xml; charset=UTF-8
...
<device>
<nameOrIp>192.168.1.100</nameOrIp>
<label>Dev Label1</label>
<mask></mask>
<loginType>1</loginType>
<registerTrap>true</registerTrap>
<supportPing>true</supportPing>
<forceAdd>false</forceAdd>
<loopbackAsMgrIp>false</loopbackAsMgrIp>
<snmpTmplId>10</snmpTmplId>
<telnetTmplId>11</telnetTmplId>
<sshTmplId>12</sshTmplId>
</device>
Response
HTTP/1.1 201 Created
Location: http://imc_host:port/imcrs/res/device/1
Add Device 83