• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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