Add database to plesk domain account via XML
Posted
by Ryan French
on Stack Overflow
See other posts from Stack Overflow
or by Ryan French
Published on 2010-04-10T23:00:43Z
Indexed on
2010/04/10
23:03 UTC
Read the original article
Hit count: 239
Hi All,
I'm currently working on trying to integrate a site with Plesk via the XML API and I've run into a bit of an issue. I've managed to get most things working but I'm trying to add a database to a domain and I keep getting an error.
When creating the database I extract a list of Domain Accounts associated with the current clients account, and use the domain guid that is returned in the XML to try and create the new database, but Plesk is returning an error stating that the id I am using is not a valid id. I've looked at the documentation and it is saying that the domain ID that I should be sending is an integer, but the only ID I can find for the domain is the guid, which is a string.
Anyone done anything like this before and know where I can get the ID from?
© Stack Overflow or respective owner