• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

ftp_quota dont work with RPC API

J

jarandm@

Guest
Hi!
I`m trying to creating a hosting account, from a script with Plesk RPC API. Its working great, but i cant manage to set the ftp_quota.

My XML looks like this:

<packet version=\"1.4.0.0\">
<domain>
<add>
<gen_setup>
<name>" . $domenenavn . "</name>
<client_id>" . $klient . "</client_id>
<htype>vrt_hst</htype>
<ip_address>84.234.251.130</ip_address>
<status>0</status>
</gen_setup>

<hosting>
<vrt_hst>
<ftp_login>" . $brukernavn . "</ftp_login>
<ftp_password>" . $passord . "</ftp_password>
<ftp_quota>20</ftp_quota>
<ip_address>84.234.251.130</ip_address>
</vrt_hst>
</hosting>

<limits>
<disk_space>20971520</disk_space>
<max_traffic>1048576000</max_traffic>
<max_db>1</max_db>
</limits>
</add>
</domain>
</packet>

Help anyone?
 
Pass in value in bytes. Pass in 20 bytes and it'll read as 0MB. Multiply it by a million and it should work.
 
Back
Top