• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Add database to Domain via XML API

R

Ryan French

Guest
Hi All,

I am currently implementing a site that integrates with Plesk. I am trying to add/create a database for a domain. To do this I am firstly grabbing the domain-id from Plesk using XML (gen_info node of the reply). When I try and add a database using the guid that is returned, I am getting an error that it is not a valid ID. I know that the ID that is returned is a string GUID, and that the ID that is expected by Plesk is an interger, so I'm just wondering where do I get the domains ID from that I can use for this?

Thanks for any help.
 
What about receiving domain_id with something like:

<packet version="1.6.0.0">
<domain>
<get>
<filter>
<domain-name>example.com</domain-name>
<domain-name>sample.com</domain-name>
</filter>
<dataset>
<hosting/>
</dataset>
</get>
</domain>
</packet>

Also you can find domain_id in browser status bar with putting mouse over domain name in domain's list.
 
Back
Top