• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Plesk 11 api rpc - no hosting

DaveyG

New Pleskian
Hi Guys, hoping for some insight on how to create a service plan with no hosting via api rpc.

From reading the limited information Parallels offer in their documents I believe I have to create the xml with a hosting tag and then a none tag inside it; like so

<hosting>
<none></none>
</hosting>

I have also tried the following:

<hosting/>

<hosting>
<none/>
</hosting>

as well as completely removing the hosting tag, but all of the above creates the template with hosting.

can anyone help in determining how to create this service plan with no hosting.

thanks in advance :)
 
Well i eventually created a ticket with parallels support. So if anyone else wonders how to do this here is the solution:

First create a normal service plan with hosting, setting the limits and permissions you desire. Then in the same packet, send a set command like so:

Code:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
 <packet version=\"1.6.3.0\">
  <service-plan>
   <add>
    <name>NO-HOSTING</name>
     <mail>
      <nonexistent-user>
       <reject/>
      </nonexistent-user>
      <webmail>horde</webmail>
     </mail>
     <limits>
...various limits...
     </limits>
      <preferences>
       <stat>3</stat>
       <maillists>false</maillists>
       <dns_zone_type>master</dns_zone_type>
      </preferences>
      <hosting>
       <property>
...various properties...
(I set everything to false for ease of use / security)
      </property>
     </hosting>
     <permission>
      <name>allow_license_stubs</name>
      <value>false</value>
    <permissions>
     <permission>
....various permissions....
(I set everything to false for ease of use / security)
     </permission>
    </permissions>
   </add>
   <set>
    <filter>
     <name>NO-HOSTING</name>
   </filter>
   <hosting>
    <none></none>
   </hosting>
   </set>
  </service-plan>
 </packet>
 
Back
Top