API License Module createVirtuozzoLicenseRequest
From Openprovider API documentation
(Difference between revisions)
												
			
		m  (Created page with '==License Module > Create License== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |License |- style="background-color:#EEEEEE;" |'''Command nam…')  | 
		|||
| Line 1: | Line 1: | ||
| + | ===Warning: Deprecated===  | ||
| + | |||
==License Module > Create License==  | ==License Module > Create License==  | ||
{| border="1" cellpadding="4"  | {| border="1" cellpadding="4"  | ||
Current revision as of 06:33, 13 May 2021
Contents | 
Warning: Deprecated
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>