GetAccountByName

You can use GetAccountByName to get details about a specific account, given its username.

Parameters

This method has the following input parameters:

Name Description Type Default value Required
username Username for the account. string None Yes

Return value

This method has the following return value:

Name Description Type
account Account details. account

Request example

Requests for this method are similar to the following example:

{
   "method": "GetAccountByName",
   "params": {
     "username"  : "jimmyd"
   },
   "id" : 1
}

Response example

This method returns a response similar to the following example:

{
   "id" : 1,
   "result" : {
     "account" : {
       "accountID" : 3,
       "attributes" : {},
       "initiatorSecret" : "initiatorsecret",
       "status" : "active",
       "targetSecret" : "initiatorsecret",
       "username" : "jimmyd",
       "volumes" : [
         14,
         15,
         16
       ]
     }
   }
}