Return FTP server's active sessions

This function lists the FTP server's active sessions.

Important:

When you disable the FTP role, the system disables this function.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Ftp/list_sessions
Request samples
uapi --output=jsonpretty \
  --user=username \
  Ftp \
  list_sessions
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "list_sessions",
  • "module": "Ftp",
  • "result": {
    • "data": [
      • {
        • "cmdline": "pure-ftpd (IDLE)",
        • "file": "",
        • "host": "localhost",
        • "login": "Tue Apr 23 16:23:23 2020",
        • "pid": 6735,
        • "status": "IDLE",
        • "user": "ftpaccount"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}