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

Page 100

Advertising
background image

telnetParameter sub-elements

Password.

userPassword

String type. Optional. If the element does not exist, the value is not changed. If the element exists,
the value cannot be null.

Super password.

superPassword

String type. Optional. If the element does not exist, the value is not changed. If the element exists,
the value cannot be null.

Timeout time.

timeout

Long integer type. Optional. If the element does not exist, the value is not changed. If the element
exists, the value cannot be null.

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 Telnet settings for the device with the ID 10.

Request

PUT http://imc_host:8080/imcrs/plat/res/device/10/updateTelnet
accept: application/xml
...
<telnetParameter>
<authType>1</authType>
<userName>admin</userName>
<userPassword>admin</userPassword>
<superPassword>admin</superPassword>
<timeout>5</timeout>
</telnetParameter>

Response

HTTP/1.1 204 No Content
...

100 Network Resource Management

Advertising