• 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!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Resolved List domains and plans on Windows

AlexFlores

New Pleskian
Hey guys
Is there any way to get a list of domains with the plan associated?

I have seen some commands like
"%plesk_bin%\dbclient.exe" --direct-sql --sql="select status,name from domains;"

But i havent seen any way to get the plan associated to the website.

Any help?
 
SQL query is a more complicated here. Try to use something like that:

SELECT dom.id as domain_id, dom.name as domain, ps.plan_id, t.name as plan_name from domains dom LEFT JOIN Subscriptions s ON (dom.id=s.object_id AND s.object_type='domain') LEFT JOIN PlansSubscriptions ps ON ps.subscription_id=s.id LEFT JOIN Templates t ON t.id=ps.plan_id;
 
Last edited:
Back
Top