Description
This function retrieves a cPanel account's statistics.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
|
Parameter |
Type |
Description |
Possible values |
Example |
|
display |
string |
Required A list of the account's statistics. |
Note: Separate each value with a pipe character (|). |
perlversion|operatingsystem |
|
warnings |
Boolean |
Required Whether to return all results. |
|
0 |
|
warninglevel |
integer |
Required The minimum level at which to return warnings. |
A positive integer. |
87 |
|
warnout |
Boolean |
Required Whether to display results with a value of 100%. |
|
0 |
|
infinityimg |
string |
Required The full filepath to an alternative infinity symbol. |
A valid image's filepath. |
/home/example/infinity.png |
|
infinitylang |
string |
Required A phrase to represent infinity that the locales system can use. |
A string value. |
infinity |
|
rowcounter |
string |
Required The type of row. |
|
even |
Returns
|
Return |
Type |
Description |
Possible vales |
Example |
|
zeroisunlimited |
Boolean |
Whether a value of 0 means unlimited or zero. |
|
1 |
|
percent10 |
integer |
The percentage of value. |
A positive integer that the system rounds to the nearest ten if applicable. |
0 |
|
percent |
integer |
The percentage of value, if applicable. |
An integer value. |
0 |
|
item |
string |
A human-readable version of the queried item. |
A string value. |
Disk Space Usage |
|
max |
string |
The queried value's limit. |
A string value. |
unlimited |
|
langkey |
string |
The value's display locale. |
A string value. |
INDXDiskUsage |
|
percent5 |
integer |
The percentage of value. |
An integer value that the system rounds to the nearest five if applicable. |
0 |
|
id |
string |
The display key. |
A string value. |
diskusage |
|
module |
string |
The module that retrieved the information. |
A string value. |
Quota |
|
count |
string |
The queried data's value. |
A string value. |
0.77 |
|
_count |
string |
The queried data's value. |
A string value. |
0.77 |
|
name |
string |
The display key. |
A string value. |
diskusage |
|
_max |
string |
The queried parameter's limit. |
A string value. |
unlimited |
|
normalized |
Boolean |
Whether the function normalized the output values. |
|
1 |
|
_percent20 |
integer |
The percentage of value. |
An integer value that the system rounds to the nearest twenty if applicable. |
0 |
|
_maxed |
Boolean |
Whether the values reached their maximum value. |
|
0 |
|
units |
string |
The queried value's unit of measure. |
A string value. |
MB |
|
near_limit_phrase |
string |
A maketext-formatted message that the interface displays when the user approaches their maximum allowed value. Note: We introduced this return in cPanel & WHM version 56. |
A string value with Template Toolkit tags. |
|
|
maxed_phrase |
string |
The maketext-formatted message that the interface displays when the user reaches their maximum allowed value. Note: We introduced this return in cPanel & WHM version 56. |
A string value with Template Toolkit tags. |
|
