api for Show Accounts Over Quota
Hi
In WHM, you can easily show accounts over quota ( WHM -> Account Information -> Show Accounts Over Quota)
Is there any way to do this via API.
I know I could use WHM API1 listaccts and iterate through the entire list of accounts, but since there is no filter (search option) for quota on listaccts it fetches all accounts and with many small accounts on the server this is not too effective.
// kjg
-
Hello, Thanks for contacting us. Unfortunately, that part of WHM is not API-driven, so there's no call backing the "show users over quota" interface. Behind the scenes, it actually queries the repquota utility, then parses its output to determine which user accounts should be listed. I would suggest opening a feature request for such an API call, and using repquota in the meantime. Thank you for your understanding. David Nielson cPanel Developer 0 -
Hi David and thank you for the quick reply. Unfortunately I am not familiar with "repquota" and searching the docs gives me nothing. Can't find it in WHM api and not in Cpanel api/uapi either. I only find that running repquota -a can help when having problems with quota, and that is not my situation. What am I missing? Thank you. 0 -
Hello :) Additional information on "repquota" is available on a third-party URL such as: 7.2. Managing Disk Quotas It's a feature of the operating system, rather than cPanel. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments