This function retrieves account bandwidth information.
month | integer [ 1 .. 12 ] The month to query, in numeric format. This value defaults to the current month. Example: month=12 |
search | string A Perl Compatible Regular Expression (PCRE)
that filters the results. The system matches the PCRE against the If you do not specify a value for both the Example: search=ownername |
searchtype | string The account information to query.
If you do not specify a value for both the Example: searchtype=owner |
showres | string The reseller to query. If you do not specify a value, the function queries all users. Example: showres=reseller_user |
year | integer The year to query. This value defaults to the current year. Example: year=2019 |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ showbw
{- "data": {
- "acct": [
- {
- "bwusage": [
- {
- "deleted": 0,
- "domain": "example.com",
- "usage": 0
}
], - "deleted": 0,
- "limit": 0,
- "maindomain": "example.com",
- "owner": "root",
- "reseller": 0,
- "totalbytes": 352,
- "user": "user"
}
], - "month": 12,
- "reseller": "root",
- "totalused": 352,
- "year": 2019
}, - "metadata": {
- "command": "showbw",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}