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:
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
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";
?>
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