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.
uapi --output=jsonpretty \ --user=username \ Ftp \ list_ftp
{- "apiversion": 3,
- "func": "list_ftp",
- "module": "Ftp",
- "result": {
- "data": [
- {
- "homedir": "/home/user/public_html/ftp/",
- "type": "main",
- "user": "ftpaccount"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}