Get Local License Servers

This API returns information about all the machines that:

  • Are visible in the network segment
  • Support checkout license operation for the installed product
  • Have an appropriate license pool installed

Parameters:

productid - the ID of the Network Virtualization product for which the AutoPass License Server should support checkout of licenses.

Return value:

licenseServers - the name (descriptors) of the visible local AutoPass License Servers that have product license pools, supporting checkout of licenses.

Request

JSON

URL http://ip:port/shunra/api/license/servers/{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/servers/{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
{
    "licenseServers": [{
        "hostname": "2008-SP2-64",
        "ip": "172.30.2.30",
        "osname": "Windows Server (R) 2008 Standard without Hyper-V",
        "osversion": "Build 6002",
        "version": "14.1",
        "name": "2008-SP2-64",
        "architecture": "Intel64 Family 6 Model 26 Stepping 5",
        "fingerprint": null,
        "id": "175417794145172862",
        "uptime": "4339400",
        "time": "50 days 5 hours 23 minutes",
        "maxCheckoutDays": "9999"
    }]
}

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
<localLicenseServerSummary>
    <licenseServers>
        <hostname>2008-SP2-64</hostname>
        <ip>172.30.2.30</ip>
        <osname>Windows Server (R) 2008 Standard without Hyper-V</osname>
        <osversion>Build 6002</osversion>
        <version>14.1</version>
        <name>2008-SP2-64</name>
        <architecture>Intel64 Family 6 Model 26 Stepping 5</architecture>
        <id>175417794145172862</id>
        <uptime>4339356</uptime>
        <time>50 days 5 hours 22 minutes</time>
        <maxCheckoutDays>9999</maxCheckoutDays>
    </licenseServers>
</localLicenseServerSummary>