assignCredential


SoftLayer_Network_Storage_Iscsi::assignCredential

This method will assign an existing credential to the current volume.

Description

This method will assign an existing credential to the current volume. The credential must have been created using the ‘addNewCredential’ method. The volume type must support an additional credential.

Parameters

Name Type Description
username string A username assigned to a different volume.

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

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