Description
This function retrieves the account's disk space usage data. The results include content outside of the home directory, such as databases, mailing lists, and mail archives.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
quotaused |
integer |
The account's disk space usage. |
A positive integer, in bytes. |
16383592 |
pgsql |
integer |
The account's PostgreSQL® disk space usage. |
A positive integer, in bytes. |
27095040 |
skipmailman |
Boolean |
Whether to skip Mailman for statistics. |
|
1 |
homedir |
hash |
A hash of the home directory's contents. |
A hash that contains the owner, usage,name, contents,user_contained_usage,contained_usage, type, andtransversible returns. |
|
owner |
string |
The file object's owner. The function returns this value in the homedirhash. |
A valid string. |
example |
usage |
integer |
The file object's size. The function returns this value in the homedirhash. |
A positive integer, in bytes. |
4096 |
name |
string |
The file object's name. The function returns this value in the homedirhash. |
A valid string. |
.autorespond |
contents |
integer |
The count of this file object's contents. The function returns this value in the homedirhash. |
A non-negative integer. |
0 |
user_contained_usage |
integer |
The file object's size, in bytes. The function returns this value in the homedirhash. |
A positive integer, in bytes. |
8192 |
contained_usage |
integer |
The size of file objects that this file object contains. The function returns this value in the homedirhash. |
A positive integer, in bytes. |
8192 |
type |
string |
The file object's type. The function returns this value in the homedirhash. |
dir is the only possible value. |
dir |
traversible |
Boolean |
Whether the file object is traverisble. The function returns this value in the homedirhash. |
|
1 |
mysql |
integer |
The account's MySQL® disk space usage. |
A positive integer, in bytes. |
0 |
quotalimit |
integer |
The account's disk space usage limit. |
A positive integer, in bytes. |
null |
mailarchives |
integer |
The account's mail archive disk space usage. |
A positive integer, in bytes. |
null |
mailman |
integer |
The account's Mailman disk space usage. |
A positive integer, in bytes. |
142952 |
reason |
string |
A reason for failure. Note: This function only returns areasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |