• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

API: How can I get the list of domains?

I

IrinaK

Guest
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?
 
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...
 
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:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Ns -e "select cr_date,name from domains order by cr_date"
 
yes, I so this field... but it's only creation date... no information about update or remove
 
Back
Top