Check quota for site / mailbox via remoting api

Discussion in 'Developers' Forum' started by ispcomm, Mar 12, 2014.

  1. ispcomm

    ispcomm Member

    I need to implement some type of control over site usage and mailbox usage.

    This needs to be done via remote scripting (i.e. using the remoting api).

    Is there a way to get quota usage for a site (hd and traffic) and for a mailbox (hd and traffic) ?

    Thank you
    ispcomm
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no function for that in the 3.0.5 branch, but a remote function to query the current quota has been added in the git master branch, if I remember correctly.
     
  3. ispcomm

    ispcomm Member

    Yes, I see a branch for remote_api merged back to master. Do you think it's safe to use the remoting class in the 3.0.5 branch ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The remoting has changed a lot in master branch, so it might be better to just cherry pick the functions that you need and insert them in the remoting.inc.php from your current version.
     

Share This Page