Description
This function returns an account's disk usage statistics.
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 |
spacelimit |
string |
The account's disk space quota. |
|
10 MB |
file_upload_remain |
string |
The account's available file upload space. |
|
5 MB |
filesused_humansize |
string |
The disk space that the files on the account use. |
|
1.11 KB
|
filesremain |
string |
The disk space that remains on the account. |
|
∞
|
spaceremain_humansize |
string |
The disk space that still remains on the account. |
|
∞ |
filesused |
integer |
The number of files on the account. |
|
1138
|
fileslimit_humansize |
string |
The account's disk space quota that is reserved for files. |
|
0 bytes |
spaceremain |
string |
The disk space that still remains on the account. |
|
∞ |
spaceused_humansize |
string |
The disk space that still remains on the account. |
|
42.9 MB |
file_upload_remain_humansize |
string |
The file upload space that still remains on the account. |
|
∞ |
spaceused |
string |
The amount of disk space used. |
|
44985851 |
file_upload_max_bytes_humansize |
string |
The amount of disk space that must be available to avoid quota issues due to file uploads. |
|
90.95 TB |
file_upload_max_bytes |
string |
The maximum file size that you can upload through theFile Manager. |
|
99999999999999 |
file_upload_must_leave_bytes |
string |
The amount of disk space that must be available to avoid quota issues due to file uploads. |
|
5242880 |
spacelimit_humansize |
string |
The account's disk space quota. |
|
∞ |
filesremain_humansize |
string |
The upload file space that still remains on the account. |
|
∞ |
file_upload_must_leave_bytes_humansize |
string |
The amount of disk space that must be available to avoid issues due to file uploads. |
|
5 MB |
fileslimit |
string |
The account's disk space quota that is reserved for files. |
|
0 |
reason |
string |
A reason for failure Note: This function only returns a reasonvalue if there was an error. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |