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

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