• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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