This page refers to functionality that has been removed from License Statistics. This information no longer applies to License Statistics v6.3 and newer.

The Currently Borrowed Licenses endpoint delivers license usage metrics specific to the Currently Borrowed Licenses report, allowing you to monitor borrowed licenses for all servers or for a selected server.

Obtaining information about borrowed licenses

You can easily list currently borrowed licenses by sending the following HTTP request.

GET /api/v1/report/license-server/${licenseServerId}/borrowed-licenses/${returnType}

where $ indicates a variable value that you can replace with a value that best suits your needs. The possible parameters are described below.

Parameter
Required
Type
Description
${licenseServerId}Yesinteger/stringInternal License Statistics identification of the license server for which you want to gather data about currently borrowed licenses. You can set this parameter to 'all' to gather data from all license servers. 
${returnType}YesstringStandard format option. See Making an API request for details.
standard report optionsNovarious

See Making an API request for details.


Response

On success, the report will contain one row for each borrow on specified server or servers. Each row consists of the following columns: 

Column
Full name
Type
Description
Visible by default in export
lsid

License Server ID

integerInternal License Statistics identification of the server hosting the borrowed feature.(minus) No
lsnLicense ServerstringName of the server hosting the borrowed feature.(tick) Yes
fidFeature IDintegerInternal License Statistics identification of the borrowed feature.(minus) No
fnsFeature NamestringName of the borrowed feature.(tick) Yes
fvFeature VersionstringVersion of the borrowed feature.(tick) Yes
ftypeFeature TypeenumerationType of the borrowed feature. See feature type descriptions for further details.(tick) Yes

lus

Licenses used

integer

Total number of licenses borrowed by user on host.

(tick) Yes

lco

Checked Time

date and time

Time when licenses were checked out.

(tick) Yes

lbe

Borrow Expiration

date and time

Time when the borrow expires.

(tick) Yes
uidUser IDintegerInternal License Statistics identification of user that borrowed licenses.(minus) No

un

User

string

Name of user that borrowed licenses.

(tick) Yes

hn

Host

string

Name of host where licenses are borrowed to.

(tick) Yes

uil

User is from LDAP

boolean

Indicates whether user details have been imported from an LDAP directory. Note that you cannot filter and order data by this field.

(error) Unavailable

Note that the order in the table is the default order of the columns in the exported file.

Example

The following example shows a command that downloads data about currently borrowed licenses on all servers, in CSV format.

curl -H "X-Auth-token: token" "http://yourdomain/api/v1/report/license-server/all/borrowed-licenses/csv