Network
SoftLayer_Network_Storage::assignCredential

Overview

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

username

string

A username assigned to a different volume.

Headers

n/a
authenticate, SoftLayer_Network_StorageInitParameters

Return Values

boolean

Error Handling

  • SoftLayer_Exception_Network_Storage_AssignCredential: "Problem assigning a credential to the volume. The network storage type is not supported for credential assigning in this manner."
  • SoftLayer_Exception_Network_Storage_Iscsi_EqualLogic_Version3_AssignCredential_DuplicateDesignation: "Username is already assigned to volume."
  • SoftLayer_Exception_Network_Storage_Iscsi_EqualLogic_Version3_AssignCredential_ConsoleError: "A console error was encountered when trying to remove username from Iscsi volume, please contact development."