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

Page 113

Advertising
background image

deviceService sub-elements

Integer type. Required. No default value.

Monitor services.

monitor

Boolean type. Optional. The default value is true.

Returned Result

Status codes

204 (No Content): Success.

404 (Not Found): No data is found with the ID.

409 (Conflict): Failure. See

Error Codes

.”

Message header

HTTP/1.1 204 No Content
...

Example

Change the service monitoring information for the device with the ID 10.

Request

PUT http://imc_host:8080/imcrs/plat/res/device/service/10
accept: application/xml
...
<device>
<deviceService>
<deviceId>10</deviceId>
<serviceBit>0</serviceBit>
<name>Telnet</name>
<port>23</port>
<type>1</type>
<status>1</status>
<monitor>false</monitor>
</deviceService>
<deviceService>
<deviceId>10</deviceId>
<serviceBit>1</serviceBit>
<name>FTP</name>
<port>21</port>
<type>1</type>
<status>0</status>
<monitor>true</monitor>
</deviceService>
</device>

Response

HTTP/1.1 204 No Content
...

Modify Service Monitoring Information

113

Advertising