API License Module createPleskLicenseRequest
From Openprovider API documentation
(Difference between revisions)
(→Raw XML) |
(→Raw XML) |
||
Line 51: | Line 51: | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<openXML> | <openXML> | ||
- | + | <credentials> | |
- | + | <username>username</username> | |
- | + | <password>password</password> | |
- | + | </credentials> | |
- | + | <createPleskLicenseRequest> | |
- | + | <title>Plesk Web Admin with features</title> | |
- | + | <period>1</period> | |
- | + | <items> | |
- | + | <array> | |
- | + | <item>PLESK-12-WEB-ADMIN-1M</item> | |
- | + | <item>FT-PLESK-DEVELOPER-PACK-1M</item> | |
- | + | <item>FT-PLESK-WPB-10-SITES-1M</item> | |
- | + | <item>FT-PLESK-1-LANGUAGE-PACK-1M</item> | |
- | + | <item>FT-PLESK-DISABLE-SITEBUILDER</item> | |
- | + | <item>FT-PLESK-EMAIL-SECURITY-PACK-WITH-KASPERSKY-AV</item> | |
- | + | <item>FT-PLESK-CLOUDFLARE-SERVERSHIELD-PLUS-ADVANCED</item> | |
- | + | </array> | |
+ | </items> | ||
+ | <attachedKeys> | ||
+ | <array> | ||
+ | <item>ADD-DNSSEC-1M</item> | ||
+ | <item>ADD-ADDENDIO-DOCKER-BUSINESS-1M</item> | ||
+ | </array> | ||
+ | </attachedKeys> | ||
+ | <restrictIPBinding>true</restrictIPBinding> | ||
+ | </createPleskLicenseRequest> | ||
</openXML> | </openXML> | ||
Line 76: | Line 85: | ||
<desc /> | <desc /> | ||
<data> | <data> | ||
- | <id> | + | <id>236278</id> |
</data> | </data> | ||
</reply> | </reply> | ||
</openXML> | </openXML> |
Revision as of 12:01, 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> <title>Plesk Web Admin with features</title> <period>1</period> <items> <array> <item>PLESK-12-WEB-ADMIN-1M</item> <item>FT-PLESK-DEVELOPER-PACK-1M</item> <item>FT-PLESK-WPB-10-SITES-1M</item> <item>FT-PLESK-1-LANGUAGE-PACK-1M</item> <item>FT-PLESK-DISABLE-SITEBUILDER</item> <item>FT-PLESK-EMAIL-SECURITY-PACK-WITH-KASPERSKY-AV</item> <item>FT-PLESK-CLOUDFLARE-SERVERSHIELD-PLUS-ADVANCED</item> </array> </items> <attachedKeys> <array> <item>ADD-DNSSEC-1M</item> <item>ADD-ADDENDIO-DOCKER-BUSINESS-1M</item> </array> </attachedKeys> <restrictIPBinding>true</restrictIPBinding> </createPleskLicenseRequest> </openXML>
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> < code>0</code> <desc /> <data> <id>236278</id> </data> </reply> </openXML>