This function returns the FTP port.
Important:
When you disable the FTP role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Ftp \ get_port
{- "apiversion": 3,
- "func": "get_port",
- "module": "Ftp",
- "result": {
- "data": {
- "port": 21
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}