Api for ftp : CMD_API_FTP

Version 1.213

Feature
Finished

CMD_API_FTP CMD_API_FTP_SETTINGS CMD_API_FTP_SHOW CMD_API_FTP Shows list of accounts and ftp paths. DOMAIN=domain.com returns: user=/path/ftp&user2@domain.com=/path/ftp2 CMD_API_FTP Create ftp account. action=create domain=domain.com user=user (without @domain.com) type=system|domain|ftp|user|custom domain: /home/username/domains/domain.com ftp: /home/username/domains/domain.com/public_ftp user: /home/username/domains/domain.com/public_html/user passwd=pass passwd2=pass (if type=custom) custom_val=/home/user/path/to/custom/path CMD_API_FTP Change Ftp Password / Account type. action=modify domain=domain.com user=user (without @domain.com) type=system|domain|ftp|user|custom system: system user /home/username domain: /home/username/domains/domain.com ftp: /home/username/domains/domain.com/public_ftp user: /home/username/domains/domain.com/public_html/user passwd=pass passwd2=pass (if type=custom) custom_val=/home/user/path/to/custom/path CMD_API_FTP Delete ftp account(s) action=delete domain=domain.com select0=user (without @domain.com) (select1=user2) (...) CMD_API_FTP_SHOW Show an ftp account domain=domain.com user=user (without @domain.com) returns: fulluser=user@domain.com&type=usertype&user=user "type" can be system|domain|ftp|user|custom "user" is just the user, without @domain.com, but fulluser is the exact login name, whether it be user or user@domain.com. CMD_API_FTP_SETTINGS Get current ftp settings. domain=domain.com returns: Anonymous=no&AnonymousUpload=no&AuthUserFile=/usr/local/directadmin/data/users/usrename/ftp.passwd&DefaultRoot=/home/anixs/domains/steve.com/public_ftp&ExtendedLog=/var/log/proftpd/1.2.3.4.bytes&MaxClients=20&MaxLoginAttempts=3&ServerAdmin=webmaster@domain.com&ServerName=ProFTPd&defaultdomain=no&ip=1.2.3.4&message=Ftp welcome message text. Note that many of those settings are not going to be of any use to you. (some/many may not be used for the ftp setup ie: maxclients etc.) CMD_API_FTP_SETTINGS Set current settings. domain=domain.com action=modify anon=yes|no anonup=yes|no message=welcome message text

Interested to try DirectAdmin? Get a 30-day Free Trial!