Blog
Read the latest blogs
Find tutorials, guides and use case examples in the
Learning centerGet All Licenses
Get All Licenses returns a list of all active and expired licenses residing on the Controller. The returned list of licences will give access to LicenseId, DateActivated, ExpireDays, and LicenseType licenses.
http://{controllerMachine}:{controllerPort}/api/v3/license/all
curl -X GET --header 'Accept: application/json' --header 'AccessKey: Mo87Nc4qDAtzJNDb' 'http://{controllerMachine}:{controllerPort}/api/v3/license/all'
$headers = @{}
$headers.Add("AccessKey","Mo87Nc4qDAtzJNDb")
Invoke-WebRequest -Uri "http://{controllerMachine}:{controllerPort}/api/v3/license/all" -ContentType "application/json" -Headers $headers -Method GET
List of variables:
[ { "$id": "1", "LicenseId": "5d13fce3-2233-167f-10db-ba9c8c378b4f", "DateActivated": "2019-08-07T12:01:52+00:00", "ExpireDays": 251, "LicenseType": "Trial" } ] |
Field | Type | Description | Values |
---|---|---|---|
$LicenseId | String | Unique license ID | |
DateActivated | Date | Date of license activation | |
ExpireDays | Integer | Days remaining for licence | |
LicenseType | string | Type of license | Trial/Platform etc. |
List of response codes:
200 (OK)
404 (Not Found)
401 (Unauthorized)
400 (Bad Request)
500 (Internal Server Error)
©2024, Leapwork. All rights reserved.