CMD_API: catch-all, pop passwords, frontpage, protected dirs, ssl certs

Version 1.24.4


Catch-all email account API: CMD_API_EMAIL_CATCH_ALL pass via GET or POST: you get: value=:fail:|:blackhole:|fowareder value (username or email address). CMD_API_EMAIL_CATCH_ALL pass via GET or POST catch=:fail:|:blackhole:|address value=email value, if you chose address for 'catch' update=Update Change email password: CMD_API_POP GET or POST action=modify user=bob passwd=newpass passwd2=newpass quota=# (0 is unlimited) OPTIONAL: newuser=bob2 to rename bob to bob2. Eg: ...&user=bob&newuser=bob2&... Frontpage Extensions CMD_API_FRONTPAGE returns: status=enabled|disabled user=username set frontpage extensions CMD_API_FRONTPAGE method GET or POST action=onoff (yes, "onoff", one word) passwd=system password for this user. Must match their actual password. ON=Enable *or* OFF=Disable Password Protected Directories CMD_API_PROTECTED_DIRECTORIES method: GET returns path list of protected directories. CMD_API_FILE_MANAGER View a protected directory's settings. method: GET action=protect path=/domains/ returns: enabled=yes|no name=protected name (eg, 'members area') 1=user1 2=user2 etc... returns the user list too. CMD_API_FILE_MANAGER Set a protected directories settings and add users. method: POST action=protect path=/domain/etc.. enabled=yes (don't pass 'enabled' at all for "no") name=members area user=username (you can leave this blank if you only want to set the enabled or name). passwd=pass passwd2=pass CMD_API_FILE_MANAGER Delete a protected directory user method: GET or POST action=delete path=/domain/etc.. select0=bob (select1=fred) etc.. You can delete several users at once. SSL Certificates CMD_API_SSL returns: ssl_on=yes|no (if the domain has ssl enabled.) server=yes|no (if the cert being used is the server cert, or a pasted one) certificate=the whole cert, if it exists for the user key=the whole key, if it exists for the user. CMD_API_SSL method: POST action=save type=server|create|paste type=create: also include: request=yes|no (to make a request, else self signed cert) country, province, city, company, division,,, keysize=2048 if request=yes, it returns: request=the certificate request. type=paste: also include: certificate=cert and key. add n between them, and at the end. CMD_SSL view the cacert and setting for it. view=cacert returns: enabled=yes|no cacert=the ca root cert, should it exist yet. CMD_SSL set the cacert and settings. GET or POST action=save type=cacert active=yes (dont' pass 'active' at all, for 'no') cacert=the ca certificate Site Redirection already exists:

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