setOperatingSystemPassword


SoftLayer_Hardware_SecurityModule::setOperatingSystemPassword

Changes the password stored in our system for a servers’ Operating System

Description

Changes the password that we have stored in our database for a servers’ Operating System

Parameters

Name Type Description
newPassword string The password to be set for the administrator/root of the operating system.

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • Throws the exception ‘No operating system could be found for this server.’ When there is no operating system installed on a server.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware_SecurityModule/{SoftLayer_Hardware_SecurityModuleID}/setOperatingSystemPassword'