• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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