Description
This function lists FTP account information.
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 |
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, this 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, this function returns all FTP account types. |
Notes:
|
main|anonymous |
Returns
Return |
Type |
Description |
Possible values |
Example |
type |
string |
The type of FTP account. |
|
main |
homedir |
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/ |
user |
string |
The FTP account username. |
The username for an FTP account on the cPanel account. |
ftpaccount |