The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

api for Show Accounts Over Quota

Discussion in 'cPanel Developers' started by kjg, Jan 26, 2016.

  1. kjg

    kjg Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. cPDavidN

    cPDavidN cPanel Developer
    Staff Member

    Joined:
    Mar 19, 2013
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    DataCenter Provider
    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
     
  3. kjg

    kjg Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    650
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page