• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • 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 RPC API

oerlemans

New Pleskian
I am working on an application to add clients and domain automatic to Plesk.
When I add a domain, I get this error

<?xml version="1.0" ?>
<packet version="1.3.1.0">
<domain>
<add>
<result>
<status>error</status>
<errcode>2204</errcode>
<errtext>Can not set physical hosting for domain domein.ext on IP address 1: IP address does not belong to domain owner's IP pool</errtext>
</result>
</add>
</domain>
</packet>

When I check within Plesk, the given IP address is in de IP pool of the client. When I add the IP address again, I get the same error.

Is there anyone who can help my with this, so I can solve this?
 
> domein.ext on IP address 1

For domain creation you should specify IP address value, not database ID
 
This is the XML I send to Plesk. I use the IP Address value.


Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="1.3.1.0">
  <domain>
    <add>
      <gen_setup>
        <name>domein.ext</name>
        <client_id>12</client_id>
        <htype>vrt_hst</htype>
        <ip_address>87.233.130.132</ip_address>
      </gen_setup>

      <hosting>
        <vrt_hst>
          <ftp_login>user</ftp_login>
          <ftp_password>pass</ftp_password>
          <fp>false</fp>

          <php>true</php>
          <ssi>true</ssi>
          <mod_perl>true</mod_perl>
          <mod_python>false</mod_python>
          <asp>false</asp>
          <coldfusion>false</coldfusion>
          <webstat>none</webstat>
          <cgi>true</cgi>
          <errdocs>true</errdocs>
          <at_domains>false</at_domains>
        </vrt_hst>
      </hosting>

      <limits>
        <max_subdom>5</max_subdom>
        <disk_space>100000000</disk_space>
        <max_traffic>5555555</max_traffic>
        <max_db>7</max_db>
        <max_box>8</max_box>
      </limits>

      <prefs>
        <www>true</www>
        <stat_ttl>555</stat_ttl>
      </prefs>

      <user>
        <enabled>true</enabled>
        <password>112233</password>
        <perms>
          <manage_phosting>true</manage_phosting>
          <manage_subdomains>true</manage_subdomains>
          <manage_log>true</manage_log>
          <manage_crontab>true</manage_crontab>
          <manage_webapps>true</manage_webapps>
          <manage_maillists>true</manage_maillists>
          <manage_drweb>true</manage_drweb>
          <make_dumps>true</make_dumps>
        </perms>
      </user>
    </add>
  </domain>
</packet>
 
Errorcode: 2204

Try to specify vrt_hst/ip_address also ???

hello,

i have the same problem to add a domain with vrt_hst. I don't have a solution for this problem, can anyone help me? It is very important for me to use this API function.
 
you must specify the ip address twice for some reason. it's also required at the bottom of the vrt_host node:

<ip_address></ip_address> </vrt_hst>
</hosting>
 
Back
Top