You can use GetAccountByID to get details about a specific account, given its accountID.
This method has the following input parameters:
Name | Description | Type | Default value | Required |
---|---|---|---|---|
accountID | Specifies the account for which details are gathered. | integer | None | Yes |
This method has the following return value:
Name | Description | Type |
---|---|---|
account | Account details. | account |
Requests for this method are similar to the following example:
{ "method": "GetAccountByID", "params": { "accountID" : 3 }, "id" : 1 }
This method returns a response similar to the following example:
{ "id" : 1, "result" : { "account" : { "accountID" : 3, "attributes" : {}, "initiatorSecret" : "initiatorsecret", "status" : "active", "targetSecret" : "initiatorsecret", "username" : "account3", "volumes" : [ 14, 15, 16 ] } } }