This function queries an account's bandwidth data and returns a report.
Note:
This function also returns the bandwidth use of a distributed cPanel account.
uapi --output=jsonpretty \ --user=username \ Bandwidth \ query \ grouping='domain|protocol|year'
grouping=domain
{- "data": {
- "UNKNOWN": 70447164,
- "example.com": 815258916235,
- "parkedexample.com": 18861122614,
- "subdomain.example.com": 11407,
- "subdomain2.example.com": 683533
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1
}