Introduction
It is sometimes useful to list the accounts under a reseller at command line to automate a process for each of those accounts. This article covers how to list the accounts associated with a reseller.
Procedure
The API call below will list the accounts, where $USERNAME is the reseller's username.
uapi --user=$USERNAME Resellers list_accounts
The command below will clean up the output to show only the usernames of the accounts, which will be useful for passing to other API calls.
uapi --user=$USERNAME Resellers list_accounts|grep "user:"|awk '{print $2}'
More information about this can be found in our documentation.
Comments
0 comments
Article is closed for comments.