1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

API: How can I get the list of domains?

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by IrinaK, Feb 5, 2011.

  1. IrinaK

    IrinaK Guest

    0
     
    Hello!
    I want to set my script on events "create/update/remove domain". Can I get the name of added/removed domain by API?
    or can I get a full list of domains in Plesk Panel by API?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    What about just

    ?
     
  3. IrinaK

    IrinaK Guest

    0
     
    Great!!! Thanks a lot!

    do you know how to get domain name which was changed last? or how I can get domain name that was removed from system 5 minutes ago...
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Not sure that it is possible. There is only Creation date (cr_date) field in domains table and you can sort it with something like:

     
  5. IrinaK

    IrinaK Guest

    0
     
    yes, I so this field... but it's only creation date... no information about update or remove
     
Loading...