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 Current Usage endpoint delivers current license usage metrics, as detailed below.

Obtaining information about usage on multiple hosts (Current Usage On Multiple Hosts report)

You can easily list users that are using licenses on multiple hosts by sending the following HTTP request.

 GET /api/v1/report/current-usage/on-multiple-hosts/${returnType}?(parameters, as needed)

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

ParameterRequiredTypeDescription
${returnType}YesstringStandard format option. See Making an API request for details.
standard report options Novarious

See Making an API request for details.

Response

On success, this report will contain one row for each feature-user pair, where user has checked out licenses of feature on multiple hosts. Each row consists of the following columns.


ColumnFull nameTypeDescriptionVisible by default in export
fidFeature Idinteger

Internal License Statistics identification of the feature.

(minus) No
fnsFeature NamestringName of feature.(tick) Yes
fvFeature VersionstringFeature version.(tick) Yes
ftypeFeature TypeenumerationSee feature type descriptions for details.(tick) Yes
vnVendorstringName of license server vendor hosting the feature.(tick) Yes
lsidLicense Server Idinteger

Internal identification of license server hosting the feature.

(minus) No
lsnLicense ServerstringName of license server hosting the feature.(tick) Yes
uidUser IdintegerInternal License Statistics identification of the user.(minus) No
unUserstringUser name.(tick) Yes
hlHostsstringList of hosts on which the user has checked out licenses of the feature, separated by a semicolon (;).(tick) Yes
uilUser is from LDAPbooleanIndicates 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 obtains information about users using features on multiple hosts.

curl -H "X-Auth-token: token" "http://yourdomain/api/v1/report/current-usage/on-multiple-hosts/json"

Obtaining information about usage above/below n hours (report Current Usage By Time Range

You can easily list data about features currently in use for more/less than n hours by sending the following HTTP request

GET /api/v1/report/current-usage/by-time-range/${returnType}?ab=${integer}&bl=${integer}&(additional parameters, as needed)

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
${returnType}YesstringStandard format option. See Making an API request for details.
abNointegerMinimum number of hours a license has to be used to be listed. If not provided constraint not imposed.
blNointeger

Maximum number of hours a license has to be used to be listed. If not provided, this constraint is not imposed.

Value must be greater than value of 'ab' parameter.

standard report options Novarious

See Making an API request for details.

Response

On success, this report will contain one row for each license session, with length within specified range. Each row consists of the following columns.

Column
Full name
Type
Description
Visible by default in export
fidFeature IDintegerInternal License Statistics identification of the used feature.(minus) No
fnsFeature NamestringName of the used feature.(tick) Yes
fvFeature VersionstringVersion of the used feature.(tick) Yes
ftypeFeature TypeenumerationType of the used feature. See feature type descriptions for further details.(tick) Yes

vn

VendorstringName license server vendor hosting the used feature.(tick) Yes
lsidLicense Server IdintegerInternal License Statistics identification of license server hosting the used feature.
(minus) No
lsnLicense ServerstringName of license server hosting the used feature.
(tick) Yes
uidUser IdintegerInternal License Statistics identification of user that checked out licenses.(minus) No

un

User

string

Name of user that checked out licenses.

(tick) Yes

hn

Host

string

Host on which licenses were checked out.

(tick) Yes

lus

Used

integer

Total number of licenses used by user on host.

(tick) Yes

tu

Time Used

string

Indicates how long licenses have been in use; e.g., 1d 2h 10 min. Note that you cannot filter on this field.

(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 in CSV format about features currently in use for at least 24 hours.

curl -H "X-Auth-token: token" "http://yourdomain/api/v1/report/current-usage/by-time-range/csv?ab=24"