Description
This function lists FTP account and disk usage information.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameters |
Type |
Description |
Possible values |
Example |
skip_acct_types |
string |
A list of the FTP account types to exclude from the function's results. If you do not specify this parameter, the function does not exclude any account types |
Notes:
|
main|anonymous |
include_acct_types |
string |
A list of the FTP account types to include in the function's results. If you do not specify this parameter, the function returns all FTP account types. |
Notes:
|
main|anonymous |
Returns
Return |
Type |
Description |
Possible values |
Example |
diskquota |
string |
The FTP account's quota. |
|
unlimited |
diskusedpercent |
integer |
The percentage of the disk space quota that the account currently uses. |
A positive integer. |
20 |
humandiskquota |
string |
The FTP account's quota, in human-readable format. |
|
250 MB |
_diskused |
integer |
The amount of disk space that the account currently uses. |
A positive integer. |
10 |
reldir |
string |
The path to the FTP account's document root. |
The path to the FTP account's document root, relative to the cPanel account's home directory. This value includes the prefix home:. |
home:public_html/ftp/ |
accttype |
string |
The type of FTP account. |
|
main |
dir |
string |
The absolute path to the FTP account's document root. |
The absolute path to the FTP account's document root. |
/home/user/public_html/ftp/ |
login |
string |
The FTP account username. |
The username for an FTP account on the cPanel account. |
ftpaccount |
deleteable |
Boolean |
Whether the function's caller can delete the account. |
|
1 |
htmldir |
string |
The path to the FTP account's HTML directory. |
The path to the FTP account's HTML directory, or null. |
null |
serverlogin |
string |
The full FTP login name. |
The full login name for the FTP account, in user@example.com format, whereuser is the FTP account username, andexample.com is the domain. |
ftpaccount@example.com |
diskusedpercent20 |
integer |
The percentage of disk space that the account currently uses. |
A positive integer. |
20 |
humandiskused |
integer |
The amount of disk space that the account currently uses, in human-readable format. |
A positive integer that represents the amount of disk space in Megabytes (MB), a space, and the characters MB. |
10 MB |