Modify ssh settings, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual

Page 101: Interface uri access method

Advertising
background image

Modify SSH Settings

Modify SSH settings for a device based on device ID.

Interface URI

/plat/res/device/{id}/updateSsh

Access Method

HTTP

PUT

Parameters

Path parameter

Device ID.

id

Long integer type. Required. No default value.

Message body

<device>
<sshParameter>
<authType>0</authType>
<userName>admin</userName>
<password>admin</password>
<port>22</port>
<timeout>5</timeout>
<retries>5</retries>
</sshParameter>
</device>
or
<device>
<sshTmplId>156</sshTmplId>
</device>

Element description

device sub-elements

SSH settings.

sshParameter

Element type. See the following description.

SSH template ID.

sshTmplId

Integer type. If both sshTmplId and sshParameter exist, sshParameter is preferred, and sshTmplId is
omitted.

sshParameter sub-elements

Authentication mode. 0: Password authentication. 3: Key authentication + super password. Integer
type. Optional. If the element does not exist, the value is not changed. If the element exists, the value
cannot be null.

authType

Username.

userName

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

Password.

password

Modify SSH Settings

101

Advertising