From Openprovider API documentation
Warning: Deprecated
License Module > Create License
Module
| License
|
Command name
| createVirtuozzoLicenseRequest
|
Use
| Order a new license
|
Input
|
- title text
- comment text
- items License Items for Virtuozzo
- attachedKeys Extension keys
- parentKeyId key number of a parent license(optional)
- period = 1, 12, 24
- pcsCapacity = 1:100000
- ipAddressBinding ipv4/ipv6 address
- restrictIPBinding 0 | 1
|
Output
|
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('createVirtuozzoLicenseRequest')
->setAuth(['username' => 'username', 'hash' => 'hash'])
->setArgs([
'period' => '12',
'product' => 'virtuozzo',
'title' => 'VZ Storage 10GB',
'comment' => 'test',
'items' => [
'Virtuozzo storage'
],
'pcsCapacity' => '1',
'restrictIPBinding' => '1'
]);
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>
<password></password>
</credentials>
<createVirtuozzoLicenseRequest>
<title></title>
<comment></comment>
<product>virtuozzo</product>
<period>12</period>
<items>
<array>
<item>Virtuozzo storage</item>
</array>
</items>
<attachedKeys/>
<pcsCapacity>1</pcsCapacity>
<restrictIPBinding>1</restrictIPBinding>
</createVirtuozzoLicenseRequest>
</openXML>