Network
SoftLayer_Network_Storage::getByUsername

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

username

string

The full username you wish to search for.

type

string

The type of storage accounts you wish to search.

Headers

SoftLayer_Network_StorageObjectMask, SoftLayer_ObjectMask
authenticate

Return Values

an array of SoftLayer_Network_Storage

Associated Methods

SoftLayer_Network_Storage::getObject

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.