This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API License Module createVirtuozzoLicenseRequest

From Openprovider API documentation

Revision as of 06:33, 13 May 2021 by WikiSysop (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

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
  • id

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>
Views
Personal tools