• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Plesk API Issue

M

MitchelC

Guest
Hello, I'm sending this XML:

<packet version="1.6.3.0">
<webspace>
<add>
<gen_setup>
<name>Basic.com</name>
<owner-login>stevelow</owner-login>
<htype>vrt_hst</htype>
<ip_address>20.14.25.2</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ftp_login</name>
<value>ftp16se4fdf0</value>
</property>
<property>
<name>ftp_password</name>
<value>qweqwe</value>
</property>
<ip_address>20.14.25.2</ip_address>
</vrt_hst>
</hosting>
<plan-name>Basic</plan-name>
</add>
</webspace>
</packet>


And getting this back:

<?xml version="1.0" encoding="UTF-8"?><packet version="1.6.3.0"><webspace><add><result><status>error</status><errcode>1023</errcode><errtext>Unable to accept the template: the following limitations are exceeded.
Description Requested Allowed
Webmail Horde IMP None
Retain web and traffic statistics 3 6</errtext></result></add></webspace></packet>


How should I write my XML to set webmail to "horde" and web stats to "6"?
 
Igor,

I've read the documentation and I'm able to create a customer via the API but not the plan subscription.

I could not find the specific mail settings in the documentation. Also, I fear that if I found them I still would not understand how to put that XML into the webspace-add packet that I need to send to Plesk.

Could you provide an example?

Thank you,
Mitchel
 
U use plan (Basic) with webmail = Horde, but seems like horde is not installed. There are next ways for issue fix:
1. edit plan Basic, set webmail = none.
2. install webmail horde.
 
Fogelf, I think you are right. I will take this course to fix the problem.

I wonder if there is a way to spy on the api calls by Plesk when I manipulate accounts through the web interface?

Thank you,
Mitchel C.
 
Plesk itself won't use the XML API, but you can turn on mysql logging and see what's done in the database though...
 
PPadron, I was thinking I could do that, but of course using the XML API seems like the right way.
 
Back
Top