list-quota cli

How about a new API/cli ?

virtualmin list-quota

So that we can list the quotas for all domains or just one.

I am going to ask the WHMCS guys to add support to the virtualmin server mod to add support for this so we can bill for extra quota on the fly when the client needs more space.

Status: 
Closed (fixed)

Comments

This isn't really needed .. you can already get all domains and quotas with an API command like :

virtualmin list-domains --multiline

I think WHMCS needs something simpler then that.

Matt was telling me he needs something like I asked for.

virtualmin list-quotas borgnet.net

Does he want quotas for mailboxes, or quotas for domains?

I suppose a simpler command could be added, but really it shouldn't be too hard to parse the output from list-domains and list-users .

quota for the whole domain -- WHMCS does not do mailboxes just the whole domain

btw.. the virtualmin list-bandwidth can you add a switch to just show the current bandwidth used that month ?

eg; virtualmin list-bandwidth --month-total

What you shows is not very useful because it shows all bandwidth from the creation of the domain.

You can get the bandwidth used for the current month also from the virtualmin list-domains --domain whatever.com --multiline call. It's in the Bandwidth usage line.

Can WHCMS really not parse this output format?

You can get the bandwidth used for the current month also from the virtualmin list-domains --domain whatever.com --multiline call. It's in the Bandwidth usage line.

Can WHCMS really not parse this output format?

I'm working(paying) with Matt to come up with a away to do this.

Automatically closed -- issue fixed for 2 weeks with no activity.