You can view tool license usage details by calling the License Usage API. The API reads the ls_access.log.yyyy-MM-dd file stored in the DTP logs folder and returns information for the specified period. By default, logs are stored for the last 90 days. See Configuring License Server for information about changing how long logs are stored.
You can call the API from the SwaggerUI shipped with License Server, which provides a point-and-click interface for viewing license usage information. The SwaggerUI is available after logging in. No additional authentication is required.
You can right-click on an endpoint to copy the URL and use it in a script. You can also query the endpoint in your browser to quickly view the data. For example:
Paste the URL into a browser bar and add any additional queries.
http://<HOST>/licenseserver/usage/api/v1.0/toolsUsage?startDate=<yyyy-MM-dd>&endDate=<yyyy-MM-dd> |
You can use basic authentication or OIDC to authenticate. See Configuring OpenID Connect for more information about using OIDC.
The following endpoints are available:
/toolsUsageThis endpoint returns summary information about tool usage. URL
Example RequestThe following example returns tool usage information for the month of March.
/usageThis endpoint is similar to the URL
Example Request
/featuresUsageThis endpoint returns details about feature usage. URL
Example RequestThe following example returns feature usage information for the month of March.
/licenseUsageThis endpoint returns an array showing license usage, including features used, tools, and usage duration, per user. URL
Example RequestThe following example returns license usage information for the month of March.
/licenseRejectionThis endpoint returns an array of objects showing license requests that we were rejected by the server. URL
Example Request
|