DirectAdmin API: howto show reseller usage including reseller's users?

HindrikOxilion

Verified User
Joined
Sep 23, 2011
Messages
33
Hey all,

We're managing some DirectAdmin servers via the API, including Reseller accounts for our customers.

Via the panel GUI, it's easy to view the total reseller's quota-usage, which consists of the reseller's own user-data, plus all user-data for all the reseller's users. This is relevant information for our customers as this total usage determines which package they need.

Our customer portal acquires information via the API, but there seems to be no way to gather the reseller's total disk usage, including that of their subordinate users. Currently, we can only retrieve the reseller user's own usage, which is (close to) zero if they only manage hosting via subordinate users.

If we wanted to, we could probably write some function to iterate the CMD_API_SHOW_USER_USAGE over all the users owned by the reseller concerned. But, as the GUI panel shows this information by default, I wonder if there's an (undocumented?) API call that performs the same function already.

In short: we're looking for the most efficient way to show the total reseller's disk (and bandwidth) usage, including their owned users, via the API.

Any hints or suggestions are welcome.
 
It has been just about 2 weeks now, without any response and few views.

I'm guessing there's no easy/quick solution for this issue then, or this subject is not interesting enough ;)

Ow well, then we'll think of another way to get the info we need, or learn to live with it as it is...
 
Back
Top