Currently, the The License Statistics API lets you generate data from the User historyHistory report. This report shows statistics for license usage per user, during any period that usage was tracked.
Showing sessions at a specific point in time
If you want to retrieve information about usage history at a particular point in time, we recommend that you use the following URL request template.
...
Field | Type | Description |
---|---|---|
uid | integer | User Id. |
un | string | Username. |
hn | string | Hostname. |
sst | string | Date returned in YYYY-MM-DD HH:MM format; for example, 2016-01-20 11:00. |
set | string | Date returned in YYYY-MM-DD HH:MM format (for example, 2016-01-20 11:00), "Unknown", or "Still in use". |
il | boolean | This field indicates whether user details have been imported from LDAP directory. Note that currently you cannot filter and order data by this field. |
message | string | Error message returned on failure. |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl --data "limit=100" --data "offset=0" --data-urlencode "sdt=2015-10-30 00:00" -H "X-Auth-token: token" "http://yourdomain/api/report/user-history/3/json" |
Showing sessions over a specific time period
If you want to retrieve information about usage history over a specific period of time, we recommend that you use the following URL request template:
...
Field | Type | Description |
---|---|---|
uid | integer | User Id. |
un | string | Username. |
hn | string | Hostname. |
sst | string | Date returned in YYYY-MM-DD HH:MM format; for example, 2016-01-20 11:00. |
set | string | Date returned in YYYY-MM-DD HH:MM format (for example, 2016-01-20 11:00), "Unknown", or "Still in use". |
il | boolean | This field indicates whether user details have been imported from LDAP directory. Note that currently you cannot filter and order data by this field. |
message | string | Error message returned on failure. |
...