Get Information about a Specific Product

This API returns license information regarding a specific Network Virtualization product that has been installed on the machine.

Parameters:

productid - Network Virtualization product key; this parameter is used when requesting specific product information.

Return value:

installedProduct - the installed product's name.

Request

JSON

URL http://ip:port/shunra/api/license/products/{productid}
HTTP Method GET
HTTP Headers

Content-Type: application/json

Accept: application/json

Authorization: See Web Services Authentication.

Body None

XML

URL http://ip:port/shunra/api/license/products/{productid}
HTTP Method GET
HTTP Headers

Content-Type: application/xml

Accept: application/xml

Authorization: See Web Services Authentication.

Body None

 

Response

JSON

HTTP Response Code 200 - OK
HTTP Headers

Date: Thu, 15 Mar 2014 15:36:11 GMT

Content-Type: application/json; charset=UTF-8

Accept-Ranges: bytes

HTTP Body
{
    "productSummary": {
        "name": "HPE Network Virtualization",
        "description": "HPE Network Virtualization",
        "version": "9.13",
        "buildVersion": "0.11 "
    },
    "licenseSpecification": {
        "productKey": "66",
        "isCheckoutAllowed": false,
        "haspId": "1116231439444135755",
        "isCheckedOut": true,
        "isExpired": false,
        "fingerprint_change": null,
        "productFeatures": {
            "67": {
                "name": "Run analytics",
                "friendlyName": "Run analytics",
                "id": "67",
                "type": "Expiration",
                "value": "2013 10 20 6:42:15",
                "internalValue": "2013 10 20 6:42:15"
            },
            "66": {
                "name": "Access HPE Global Library",
                "friendlyName": "Access HPE Global Library",
                "id": "66",
                "type": "Limited",
                "value": "Not Installed",
                "internalValue": "Not Installed"
            },
            "68": {
                "name": "Run multi-user mode",
                "friendlyName": "Run multi-user mode",
                "id": "68",
                "type": "Expiration",
                "value": "2013 10 20 6:42:15",
                "internalValue": "2013 10 20 6:42:15"
            },
            "69,72,73,74,75,76,77,78": {
                "name": "Maximum number of concurrent test flows",
                "friendlyName": "Maximum number of concurrent test flows",
                "id": "69,72,73,74,75,76,77,78",
                "type": "Limited",
                "value": "100",
                "internalValue": "100"
            },
            "23": {
                "name": "Run network emulation",
                "friendlyName": "Run network emulation",
                "id": "23",
                "type": "Expiration",
                "value": "2013 10 20 6:42:15",
                "internalValue": "2013 10 20 6:42:15"
            },
            "24": {
                "name": "Utilize packet lists",
                "friendlyName": "Utilize packet lists",
                "id": "24",
                "type": "Expiration",
                "value": "2013 10 20 6:42:15",
                "internalValue": "2013 10 20 6:42:15"
            }
        }
    }
}

XML

HTTP Response Code 200 - OK
HTTP Headers

Date: Thu, 15 Mar 2014 15:36:11 GMT

Content-Type: application/xml; charset=UTF-8

Accept-Ranges: bytes

HTTP Body
<?xml version="1.0" encoding="UTF-8"?>
<shunraProductSpecification>
    <productSummary>
        <name>HPE Network Virtualization</name>
        <description>HPE Network Virtualization</description>
        <version>9.13</version>
        <buildVersion>0.11</buildVersion>
    </productSummary>
    <licenseSpecification>
        <productKey>66</productKey>
        <isCheckoutAllowed>false</isCheckoutAllowed>
        <haspId>1116231439444135755</haspId>
        <isCheckedOut>true</isCheckedOut>
        <isExpired>false</isExpired>
        <productFeatures>
            <entry>
                <key>67</key>
                <value>
                    <name>Run analytics</name>
                    <friendlyName>Run analytics</friendlyName>
                    <id>67</id>
                    <type>Expiration</type>
                    <value>2013 10 20 6:42:15</value>
                    <internalValue>2013 10 20 6:42:15</internalValue>
                </value>
            </entry>
            <entry>
                <key>66</key>
                <value>
                    <name>Access HPE Global Library</name>
                    <friendlyName>Access HPE Global Library</friendlyName>
                    <id>66</id>
                    <type>Limited</type>
                    <value>Not Installed</value>
                    <internalValue>Not Installed</internalValue>
                </value>
            </entry>
            <entry>
                <key>68</key>
                <value>
                    <name>Run multi-user mode</name>
                    <friendlyName>Run multi-user mode</friendlyName>
                    <id>68</id>
                    <type>Expiration</type>
                    <value>2013 10 20 6:42:15</value>
                    <internalValue>2013 10 20 6:42:15</internalValue>
                </value>
            </entry>
            <entry>
                <key>69,72,73,74,75,76,77,78</key>
                <value>
                    <name>Maximum number of concurrent test flows</name>
                    <friendlyName>Maximum number of concurrent test flows</friendlyName>
                    <id>69,72,73,74,75,76,77,78</id>
                    <type>Limited</type>
                    <value>100</value>
                    <internalValue>100</internalValue>
                </value>
            </entry>
            <entry>
                <key>23</key>
                <value>
                    <name>Run network emulation</name>
                    <friendlyName>Run network emulation</friendlyName>
                    <id>23</id>
                    <type>Expiration</type>
                    <value>2013 10 20 6:42:15</value>
                    <internalValue>2013 10 20 6:42:15</internalValue>
                </value>
            </entry>
            <entry>
                <key>24</key>
                <value>
                    <name>Utilize packet lists</name>
                    <friendlyName>Utilize packet lists</friendlyName>
                    <id>24</id>
                    <type>Expiration</type>
                    <value>2013 10 20 6:42:15</value>
                    <internalValue>2013 10 20 6:42:15</internalValue>
                </value>
            </entry>
        </productFeatures>
    </licenseSpecification>
</shunraProductSpecification>