Ftp
FTP Accounts
Return FTP accounts
This function lists FTP account information.
Important:
When you disable the FTP role, the system disables this function. For more information, read our How to Use Server Profiles documentation.
get/Ftp/list_ftp
Query parameters
include_acct_typesstring
Example:main|anonymous
A list of the FTP account types to include in the function's results.
- anonymous
- logaccess
- main
- sub
If you do not specify this parameter, this function returns all FTP account types.
Note:
- Separate multiple types with the pipe character (|).
- In browser-based calls, use %7C.
skip_acct_typesstring
Example:main|anonymous
A list of the FTP account types to exclude from the function's results.
- anonymous
- logaccess
- main
- sub
If you do not specify this parameter, this function does not exclude any account types.
Note:
- Separate multiple types with the pipe character (|).
- In browser-based calls, use %7C.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "list_ftp",
"module": "Ftp",
"result": {
"data": [
{
"homedir": "/home/user/public_html/ftp/",
"type": "main",
"user": "ftpaccount"
}
],
"metadata": {
"transformed": 1
},
"status": 1
}
}