• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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