License usage
Query the installed license types and their usage.
In this topic:
Breakdown of installed licenses
Query the license types installed on your space, and their current usage.
Request
GET .../api/shared_spaces/<space_id>/tenant_licenses
Response
"total_count": 14, "data": [{ "type": "license", "id": "1001", "license_id": "123101", "expiration_date": "2024-08-31T23:59:59Z", "start_date": "2024-06-20T00:00:00Z", "editions": "ENTERPRISE", "consumed": 1, "license_model": "Concurrent", "license_type": "Functional Test Execution Concurrent Runs", "license_type_logical_name": "license_type.ft.cc.runs", "capacity": 2 },{ "type": "license", "id": "1002", "license_id": "118102", "expiration_date": "2030-12-31T23:59:59Z", "start_date": "2024-06-02T00:00:00Z", "editions": "ENTERPRISE", "consumed": 6, "license_model": "Named", "license_type": "VSM Quality Named", "license_type_logical_name": "license_type.team.quality.named.users", "capacity": 10 },{ "type": "license", "id": "1003", "license_id": "120103", "expiration_date": "2030-12-31T23:59:59Z", "start_date": "2024-06-06T00:00:00Z", "editions": "ENTERPRISE", "consumed": 16, "license_model": "Named", "license_type": "ValueEdge Aviator Add-On", "license_type_logical_name": "license_type.aviator.named.users", "capacity": 20 },{ "type": "license", "id": "1004", "license_id": "118103", "expiration_date": "2030-12-31T23:59:59Z", "start_date": "2024-06-02T00:00:00Z", "editions": "ENTERPRISE", "consumed": 126, "license_model": "Concurrent", "license_type": "VSM Quality Concurrent", "license_type_logical_name": "license_type.vsm.quality.cc.users", "capacity": 200 }]
The consumed attribute means the following:
-
Concurrent licenses: The amount of licenses currently in use.
-
Named licenses: The amount of licenses allocated to active users, regardless of whether they are currently logged on.
Concurrent license usage
The license_usage resource enables you to query the maximum daily usage of concurrent licenses. You can also request a report of the license usage grouped by license type.
Permissions
Space administrators can run the license_usage report on their own spaces.
Legacy and new formats
The new report format groups peak usage by license type. The legacy format, that reports non-grouped overall peak usage, is still supported. For backward compatibility, the default option is the legacy format.
Note: The default option will change to the new format in a future release.
To use the new format, you can either set a space parameter, which will set the behavior off all license_usage requests, or include an attribute in individual requests.
-
Space parameter: Set the LICENSE_USAGE_REPORT_IN_LEGACY_FORMAT to false. For details, see Configuration parameters.
-
Request attribute: Add the old_report=false attribute to the request. For details, see Attributes.
Syntax
GET .../api/shared_spaces/<space_id>/license_usage
The following attributes can be used to filter the results:
Attribute | Description | Example |
---|---|---|
start_date | The start date of the reporting period (YYYY-MM-DD). | start_date=2024-09-07 |
end_date | The end date of the reporting period (YYYY-MM-DD). | end_date=2024-10-09 |
old_report | Use to override the LICENSE_USAGE_REPORT_IN_LEGACY_FORMAT parameter (boolean) | old_report=false |
license_type | Relevant for the new report format. The specific license type to filter by. Use the license logical name. |
|
Request
GET /api/shared_spaces/1001/license_usage?start_date=2024-10-30&end_date=2024-10-31
Response (new report)
{
"license_usage": [
{
"license_type_display_name": "VSM Quality Concurrent",
"license_type_logical_name": "license_type.vsm.quality.cc.users",
"usage_peaks": [
{
"point": "2024-10-30T00:00:00Z",
"max_peak": 131
},
{
"point": "2024-10-31T00:00:00Z",
"max_peak": 122
}
]
},
{
"license_type_display_name": "ValueEdge Ultimate Evaluation Concurrent",
"license_type_logical_name": "license_type.ultimate.cc.users",
"usage_peaks": [
{
"point": "2024-10-30T00:00:00Z",
"max_peak": 98
},
{
"point": "2024-10-31T00:00:00Z",
"max_peak": 104
}
]
},
{
"license_type_display_name": "ALL CONCURRENT",
"license_type_logical_name": "license_type.aggregated.cc.all",
"usage_peaks": [
{
"point": "2024-10-30T00:00:00Z",
"max_peak": 150
},
{
"point": "2024-10-31T00:00:00Z",
"max_peak": 143
}
]
}
],
"start_date": "2024-10-30",
"end_date": "2024-10-31",
"space_id": 1001
}
Note: The All Concurrent data represents the peak concurrent usage of across all license types. It typically comprises of the highest peaking license type, plus other licenses that were also in use at the peak period.
Response (old report)
{
"license_usage": {
"2024-10-30:00:00.000+0000": 150,
"2024-10-31:00:00.000+0000": 143
}
"space_id":1001,
"start_date": "2024-10-7",
"end_date": "2024-10-13",
}