• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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