getByUsername


SoftLayer_Network_Storage_Backup_Evault::getByUsername

Retrieve network storage accounts by username.

Overview

Retrieve network storage accounts by username and storage account type. Use this method if you wish to retrieve a storage record by username rather than by id. The “type” parameter must correspond to one of the available “nasType” values in the SoftLayer_Network_Storage data type.


Parameters

Name Type Description
username string The full username you wish to search for.
type string The type of storage accounts you wish to search.

Required Headers

  • authenticate

Optional Headers

  • SoftLayer_Network_Storage_Backup_EvaultObjectMask
  • SoftLayer_ObjectMask

Return Values

Associated Methods

Error Handling

  • SoftLayer_Exception_Public

Throw the exception “Please provide a username” if no username is passed to this function.

  • SoftLayer_Exception_Public

Throw the exception “Please provide a storage account type” if no storage type is passed to this function.