• 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 12.5.30 API propertie List ?

Chris-The-Tuner

New Pleskian
Hello together,

i'm using PLesk since 6 years, but i ran into a Problem now.
I try to implement Plesk within my Customers Panel, but i'm missing something in the doc for the API.
I try to create a Service-Plan for every customer (i know not needed but it's keeping me organized...).

I use PHP to query the API via the PleskApiClient, and try to use the following:
Code:
require_once('PleskApiClient.php');
$host = "config.mydomain.eu";
$client = new PleskApiClient($host);
$client->setCredentials("MYUSER", "MYPASS");
$request = "<packet>
<service-plan>
<add>
  <name>test_plan</name>
  <hosting>
  <property>
  <name>ssl</name>
  <value>false</value>
  </property>
     <property>
  <name>disk_space</name> ### THIS IS MY PROBLEM ###
  <value>1024</value>
  </property>
  </hosting>

</add>

</service-plan>
</packet> ";
$response = $client->request($request);
echo $response . "\n";
?>
In the Space of "### THIS IS MY PROBLEM ###" basicly thats what i ask.
Is there any List of property names that i can set ?
I need to create a Plan with certain Traffic limits, Webspace, Domains etc...
But i have search for hours and did not find any Doc where theese could be listed.

Can anyone help me here ?
Possible i'm going the wrong way, if so please tell me how to do it :)

Greetings Christian
 
This works for us:

<packet version=\"1.6.3.0\">
<service-plan>
<add>
<name>MyServicePlan</name>
<limit>
<name>disk_space</name>
<value>1073741824</value>
</limit>
<limit>
<name>disk_space_soft</name>
<value>968884224</value>
</limit>
</add>
</service-plan>
</packet>
 
Hi Christian,

<name>max_site</name>
<value>1</value>
</limit>
<limit>
<name>max_subdom</name>
<value>-1</value>
</limit>
<limit>
<name>max_dom_aliases</name>
<value>1</value>
</limit>
 
Back
Top