Ftp
FTP Accounts
Return FTP accounts and disk usage
This function lists FTP account and disk usage information.
Important:
When you disable the FTP role, the system disables this function.
get/Ftp/list_ftp_with_disk
Query parameters
include_acct_typesstring
Example:main|anonymous
A pipe-delimited 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.
Valid types for this list are:
- anonymous
- logaccess
- main
- sub
skip_acct_typesstring
Example:main|anonymous
A pipe-delimited 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.
Valid types for this list are:
- anonymous
- logaccess
- main
- sub
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "list_ftp_with_disk",
"module": "Ftp",
"result": {
"data": [
{
"_diskquota": "476.84",
"_diskused": "2.34",
"accttype": "sub",
"deleteable": 1,
"dir": "/home/user/public_ftp",
"diskused": "2.34",
"diskusedpercent": 21,
"diskusedpercent20": 20,
"humandiskquota": "477 MB",
"humandiskused": "2 MB",
"login": "ftpaccount",
"reldir": "public_ftp",
"serverlogin": "ftpaccount@example.com"
}
],
"metadata": {
"transformed": 1
},
"status": 1
}
}