API License Module createVirtuozzoLicenseRequest
From Openprovider API documentation
(Difference between revisions)
WikiSysop (Talk | contribs)
(Created page with '==License Module > Create License== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |License |- style="background-color:#EEEEEE;" |'''Command nam…')
Newer edit →
(Created page with '==License Module > Create License== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |License |- style="background-color:#EEEEEE;" |'''Command nam…')
Newer edit →
Revision as of 08:18, 14 September 2018
Contents |
License Module > Create License
| Module | License |
| Command name | createVirtuozzoLicenseRequest |
| Use | Order a new license |
| Input |
|
| 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>