Results 1 to 4 of 4

Thread: How to check via API if ftp account suspended or not?

  1. #1
    Join Date
    May 2018
    Posts
    4

    How to check via API if ftp account suspended or not?

    Like in subject.
    How to check via API if ftp account suspended or not?
    CMD_FTP return this information but CMD_API_FTP not.
    CMD_API_FTP_SHOW doesn't return this information too.

    Using CMD_API_FTP I can suspend or unsuspend ftp account but how to check by API if ftp account is active or not.

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,400
    Hello,

    I believe you need to contact Directadmin developers via https://tickets.directadmin.com/ and request this to be added (fixed).

  3. #3
    Added extended=yes to the GET options:
    https://www.directadmin.com/features.php?id=2174

    Note you can alternatively already use JSON for even more info, eg:
    Code:
    CMD_FTP?domain=domain.com&json=yes&full_json=yes
    John

  4. #4
    Join Date
    May 2018
    Posts
    4
    Unfortunately even if by CMD_FTP I set ftp account suspended and CMD_FTP shows the ftp account is really suspended , CMD_API_FTP (using extended=yes) returns suspended=no for this account.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •