This function calls a UAPI function through the WHM API. This function's output will match the UAPI function that it calls.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ uapi_cpanel \ cpanel.function='get_stats' \ cpanel.module='StatsBar' \ cpanel.user='username'
{- "data": {
- "uapi": {
- "data": [
- {
- "_count": "0",
- "_max": "unlimited",
- "_maxed": 0,
- "count": "0",
- "feature": "addondomains",
- "id": "addondomains",
- "is_maxed": 0,
- "item": "Addon Domains",
- "max": "unlimited",
- "maxed_phrase": "You are using your maximum allotment ([numf,_1]) of addon domains.",
- "module": "Park",
- "name": "addondomains",
- "near_limit_phrase": "You are using [numf,_1] of [numf,_2] available addon [numerate,_2,domain,domains].",
- "percent": 0,
- "percent10": 0,
- "percent20": 0,
- "percent5": 0,
- "phrase": "Addon Domains",
- "role": "WebServer",
- "zeroisunlimited": 0
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}, - "metadata": {
- "command": "uapi_cpanel",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}