editCredential


SoftLayer_Network_Storage::editCredential

This method will change the password of a credential created using the ‘addNewCredential’ method.

Description

This method will change the password of a credential created using the ‘addNewCredential’ method. If the credential exists on multiple storage volumes it will change for those volumes as well.

Parameters

Name Type Description
username string A username assigned to the current volume
newPassword string The new password you would like the username to have.

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • “Problem editing a credential assigned to the volume. The network storage type is not supported for credential editing in this manner.”
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/{SoftLayer_Network_StorageID}/editCredential'