This function lists FTP account and disk usage information.
Important:
When you disable the FTP role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Ftp \ list_ftp_with_disk
{- "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",
- "diskquota": "476.84",
- "diskused": "2.34",
- "diskusedpercent": 21,
- "diskusedpercent20": 20,
- "htmldir": null,
- "humandiskquota": "477 MB",
- "humandiskused": "2 MB",
- "login": "ftpaccount",
- "reldir": "public_ftp",
- "serverlogin": "ftpaccount@example.com"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}