Article ID: 120141, created on Feb 14, 2014, last review on May 2, 2014

  • Applies to:
  • Plesk Automation 11.5

Symptoms

How to configure custom system user parameters via API?. That is possible when creating the susbcription from the GUI, but I want to do it via API.

Cause

Parallels Plesk Automation is consist of two components: management system (Parallels Automation) and hosting system (Plesk Panel). As a result sometimes it is not possible to perform some GUI operations using one API request. In this particular case it is not possible to set system username during subscription creation using PPA API request.

You should configure system user parameters after subscription creation using Plesk API RPC, example belows shows how to do this using domain name as a filter:

ftp_login - system user name;

ftp_password - system user password;

<packet version="1.6.3.0">
<webspace>
<set>
<filter>
     <name>example.com</name>
</filter>
<values>
   <gen_setup>
      <name>example.com</name>
   </gen_setup>
      <hosting>
        <vrt_hst>
          <property>
            <name>ftp_login</name>
            <value>systemusername</value>
          </property>
          <property>
            <name>ftp_password</name>
            <value>passwordhere</value>
          </property>
          <ip_address>10.39.87.61</ip_address>
        </vrt_hst>
      </hosting>
 </values>
</set>
</webspace>

Request should be send to Management Node Plesk API:

https://<..mn_ip_address..>:8443/enterprise/control/agent.php

PPA 11.5 uses Plesk 11.5 as a backend, thus please use documentation for Plesk 11.5 API.

You can find more in our documentation.

Search Words

webspace subscription api system user plesk automation

33a70544d00d562bbc5b17762c4ed2b3 e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF