• 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.

Seting FTP QUOTA with

S

sdunga

Guest
Seting FTP QUOTA with Plesk rpc-api

Hi guys,

I'm implementing one API to create one hosting pack with a Plesk 8.0 server, and I'm having problems setting up the FTP QUOTA, all the rest goes ok, seems like I'm not being able to parse int values, all I parse I get 0 defined as result

I get a good reply, from the server, I may be making some mistache, but for this version there is no documentation available, and I had to study the last versions and see XML schema.

I'm sending this:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="$proto">
<domain>
<add>
<gen_setup>
<name>store.$domain</name>
<client_id>1</client_id>
<htype>vrt_hst</htype>
<ip_address>62.193.242.204</ip_address>
status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<ip_address>62.193.242.204</ip_address>
<ftp_login>$login</ftp_login>
<ftp_password>$password</ftp_password>
<ftp_quota>500</ftp_quota>
<ssl>1</ssl>
<php>1</php>
<ssi>1</ssi>
<cgi>1</cgi>
<mod_perl>1</mod_perl>
<mod_python>1</mod_python>
<asp>1</asp>
<asp_dot_net>1</asp_dot_net>
<coldfusion>0</coldfusion>
<webstat>webalizer</webstat>
<webstat_protected>1</webstat_protected>
<errdocs>0</errdocs>
<php_safe_mode>1</php_safe_mode>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>


I get as result:

<?xml version="1.0" ?>
<packet version="1.3.5.1">
<domain>
<add>
<result>
<status>ok</status>
<id>57</id>
</result>
</add>
</domain>
<output>set php_safe_mode</output>
</packet>
 
Pass in value as bytes. Pass in 500 bytes and it'll read as 0MB. Multiply it by a million and it should work.
 
Back
Top