Retrieve network storage accounts by username.
Description
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
Optional Headers
Return Values
Error Handling
- Throw the exception “Please provide a username” if no username is passed to this function.
- Throw the exception “Please provide a storage account type” if no storage type is passed to this function.
Associated Methods
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage_Iscsi/getByUsername'