/ftp
0.1.0Unchanged since publicationGet the server's FTP status and connection settings
filesreadallThe ftp object reports installed, enabled, active, running, state, require_tls, port, passive_ports, version, and unit. The running value reflects whether ProFTPD responds when UrbeStack can probe it and falls back to process status otherwise. The passive_ports value is a hyphen-separated range. The closed_ports object identifies firewall closures for the FTP port or passive port range and gives the note, since, and id for each matching rule.
UrbeStack installs the Linux distribution's ProFTPD package on request and manages its configuration and service unit. FTP supports explicit TLS on port 21 using UrbeStack's certificate. TLS is required unless ftp.require_tls is off.
Customers can sign in with their UrbeStack username and password. The session is rooted at the customer's container and starts in the home directory, with the same filesystem view as SFTP. An FTP account has its own login in the form <name>@<domain> and is confined to a directory in the customer's home. Every FTP session runs with the customer's permissions.
Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/ftp" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"ftp": {
"active": true,
"enabled": true,
"installed": true,
"passive_ports": "text",
"port": 8443,
"require_tls": true,
"running": true,
"state": "up",
"unit": "text",
"version": "0.0.1"
}
}Errors
1 error, each a status and a sentence401Authentication requiredurbestack.com/docs/api/get-ftp/