License Module API retrievePleskLicenseRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module Licenses > Retrieve Product== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |Licenses |- style="background-color:#EEEEEE;" |'''Command…') |
(→License Module > Retrieve Product) |
||
(14 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | ==Module | + | ==License Module > Retrieve Product== |
{| border="1" cellpadding="4" | {| border="1" cellpadding="4" | ||
|- style="background-color:#BBBBBB;" | |- style="background-color:#BBBBBB;" | ||
|'''Module''' | |'''Module''' | ||
- | | | + | |License |
|- style="background-color:#EEEEEE;" | |- style="background-color:#EEEEEE;" | ||
|'''Command name''' | |'''Command name''' | ||
- | | | + | |retrievePleskLicenseRequest |
|- | |- | ||
|'''Use''' | |'''Use''' | ||
- | |Returns | + | |Returns details about the requested license |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Input''' | |'''Input''' | ||
| | | | ||
- | *''' | + | *'''keyId''' |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Output''' | |'''Output''' | ||
Line 25: | Line 25: | ||
===Using PHP class=== | ===Using PHP class=== | ||
$request = new OP_Request; | $request = new OP_Request; | ||
- | $request->setCommand(' | + | $request->setCommand('retrievePleskLicenseRequest') |
->setAuth(array('username' => 'username', 'password' => 'password')) | ->setAuth(array('username' => 'username', 'password' => 'password')) | ||
->setArgs(array( | ->setArgs(array( | ||
- | ' | + | 'keyId' => 04879719, |
)); | )); | ||
===Raw XML=== | ===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"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<openXML> | <openXML> | ||
Line 38: | Line 39: | ||
<password>password</password> | <password>password</password> | ||
</credentials> | </credentials> | ||
- | < | + | <retrievePleskLicenseRequest> |
- | < | + | <keyId>04867003</keyId > |
- | </ | + | </retrievePleskLicenseRequest> |
</openXML> | </openXML> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<openXML> | <openXML> | ||
- | + | <reply> | |
- | + | <nowiki><code>0</code></nowiki> | |
- | + | <desc> | |
- | + | </desc> | |
- | + | <data> | |
- | + | <title>test</title> | |
- | + | <comment>comment</comment> | |
- | + | <product>plesk</product> | |
- | + | <contract>2014</contract> | |
- | + | <keyId>4867003</keyId> | |
- | + | <parentKeyId> | |
- | + | </parentKeyId> | |
- | + | <keyNumber>PLSK.04867003</keyNumber> | |
- | + | <billingType>lease</billingType> | |
- | + | <period>1</period> | |
- | + | <status>DEL</status> | |
- | + | <orderDate>2018-08-28 07:18:54</orderDate> | |
- | + | <expirationDate>0000-00-00 00:00:00</expirationDate> | |
- | + | <items> | |
- | + | <array> | |
- | + | <item>PLESK-12-VPS-WEB-ADMIN-1M</item> | |
- | + | </array> | |
- | + | </items> | |
- | + | <skuValues> | |
- | + | <PLSKVPS-ADM-M>1</PLSKVPS-ADM-M> | |
- | + | </skuValues> | |
- | + | <activationCode>A00B00-******-4MDN86-******-DVE103</activationCode> | |
- | + | <ipAddressBinding>127.0.0.33</ipAddressBinding> | |
- | + | <key> | |
- | + | <product>plesk</product> | |
- | + | <title>Plesk for VPS Web Admin Edition</title> | |
- | + | <item>PLESK-12-VPS-WEB-ADMIN-1M</item> | |
- | + | <group> | |
- | + | <product>plesk</product> | |
- | + | <name>plesk-12-onyx-keys</name> | |
- | + | <description>Plesk 12/Onyx keys</description> | |
- | + | <itemsType>key</itemsType> | |
- | + | </group> | |
- | + | <subgroup> | |
- | + | <id> | |
- | + | </id> | |
- | + | <title> | |
- | + | </title> | |
- | + | </subgroup> | |
- | + | <compatibility> | |
- | + | <vps>1</vps> | |
- | + | <standalone>0</standalone> | |
- | + | </compatibility> | |
- | + | <skuValues> | |
- | + | <PLSKVPS-ADM-M>1</PLSKVPS-ADM-M> | |
- | + | </skuValues> | |
- | + | </key> | |
- | + | <features/> | |
- | + | <extensions/> | |
- | + | </data> | |
- | + | </reply> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</openXML> | </openXML> |
Current revision as of 08:56, 11 September 2018
Contents |
License Module > Retrieve Product
Module | License |
Command name | retrievePleskLicenseRequest |
Use | Returns details about the requested license |
Input |
|
Output |
|
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('retrievePleskLicenseRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'keyId' => 04879719, ));
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> <retrievePleskLicenseRequest> <keyId>04867003</keyId > </retrievePleskLicenseRequest> </openXML>
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> <code>0</code> <desc> </desc> <data> <title>test</title> <comment>comment</comment> <product>plesk</product> <contract>2014</contract> <keyId>4867003</keyId> <parentKeyId> </parentKeyId> <keyNumber>PLSK.04867003</keyNumber> <billingType>lease</billingType> <period>1</period> <status>DEL</status> <orderDate>2018-08-28 07:18:54</orderDate> <expirationDate>0000-00-00 00:00:00</expirationDate> <items> <array> <item>PLESK-12-VPS-WEB-ADMIN-1M</item> </array> </items> <skuValues> <PLSKVPS-ADM-M>1</PLSKVPS-ADM-M> </skuValues> <activationCode>A00B00-******-4MDN86-******-DVE103</activationCode> <ipAddressBinding>127.0.0.33</ipAddressBinding> <key> <product>plesk</product> <title>Plesk for VPS Web Admin Edition</title> <item>PLESK-12-VPS-WEB-ADMIN-1M</item> <group> <product>plesk</product> <name>plesk-12-onyx-keys</name> <description>Plesk 12/Onyx keys</description> <itemsType>key</itemsType> </group> <subgroup> <id> </id> <title> </title> </subgroup> <compatibility> <vps>1</vps> <standalone>0</standalone> </compatibility> <skuValues> <PLSKVPS-ADM-M>1</PLSKVPS-ADM-M> </skuValues> </key> <features/> <extensions/> </data> </reply> </openXML>