API License Module createPleskLicenseRequest
From Openprovider API documentation
(Difference between revisions)
(→License Module > Create License) |
(→Raw XML) |
||
Line 55: | Line 55: | ||
<password>password</password> | <password>password</password> | ||
</credentials> | </credentials> | ||
- | < | + | <createPleskLicenseRequest> |
<productId>7</productId> | <productId>7</productId> | ||
<title>Linux server APOLLO</title> | <title>Linux server APOLLO</title> | ||
Line 67: | Line 67: | ||
<virtualization>unified</virtualization> | <virtualization>unified</virtualization> | ||
</options> | </options> | ||
- | </ | + | </createPleskLicenseRequest> |
</openXML> | </openXML> | ||
Revision as of 11:48, 13 September 2018
Contents |
License Module > Create License
Module | License |
Command name | createPleskLicenseRequest |
Use | Order a new license |
Input |
|
Output |
|
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('createPleskLicenseRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'productId' => 7, 'title' => 'Linux server APOLLO', 'options' => array( 'version' => 12, 'type' => 'webHost', 'period' => 12, 'langPacks' => 1, 'pack' => 'POWERPACK', 'sites' => 30, 'virtualization' => 'unified' ) ));
Raw XML
Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.
<?xml version="1.0" encoding="UTF-8"?> <openXML> <credentials> <username>username</username> <password>password</password> </credentials> <createPleskLicenseRequest> <productId>7</productId> <title>Linux server APOLLO</title> <options> <version>12</version> <type>webHost</type> <period>12</period> <langPacks>1</langPacks> <pack>POWERPACK</pack> <sites>30</sites> <virtualization>unified</virtualization> </options> </createPleskLicenseRequest> </openXML>
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> < code>0</code> <desc /> <data> <id>1446</id> </data> </reply> </openXML>