ServerMania logo

Get Software License Details

To get details for a particular software license, use the following request:

GET /software_licenses/:id.xml
GET /software_licenses/:id.json

XML Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/software_licenses/3.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/software_licenses/3.json 

XML Output Example

<software_license>
<created_at type="datetime">2011-03-01T12:42:03+02:00</created_at>
<updated_at type="datetime">2011-03-08T13:54:17+02:00</updated_at>
<license>TTXTC-R6FFF-9FF3V-DYDY4-T628B</license>
<total type="integer">100</total>
<arch>x86</arch>
<id type="integer">11</id>
<distro>2003</distro>
<count type="integer">2</count>
<tail></tail>
<edition type="array">
<string>STD</string>
</edition>
</software_license> 

Where:

created_at – the date when the record in DB was created

updated_at - the date when the record in DB was updated

license – the license for the software on which the template will be based

total – the total number of machines allowed by the license

arch – Windows OS architecture (x64 or x86)

id – the ID of the record

distro – Windows OS distribution (2003, 2008, Windows 7)

count – the number of licenses used of a total allowed

tail – parameter specifies the updated release of Windows OS distribution. If updated, than parameter is R2, otherwise – empty.

edition – Windows OS edition or an array of editions if allowed by the license (STD – Standard, ENT –Enterprise, WEB – web and DC – Data center)