Get All Licenses

Description

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. 

Request URL

http://{controllerMachine}:{controllerPort}/api/v3/license/all

Examples

Curl

curl -X GET --header 'Accept: application/json' --header 'AccessKey: Mo87Nc4qDAtzJNDb' 'http://{controllerMachine}:{controllerPort}/api/v3/license/all'

PowerShell 

$headers = @{}
$headers.Add("AccessKey","Mo87Nc4qDAtzJNDb")
Invoke-WebRequest -Uri "http://{controllerMachine}:{controllerPort}/api/v3/license/all" -ContentType "application/json" -Headers $headers -Method GET

Response Body

List of variables:

[

    {

        "$id": "1",

        "LicenseId": "5d13fce3-2233-167f-10db-ba9c8c378b4f",

        "DateActivated": "2019-08-07T12:01:52+00:00",

        "ExpireDays": 251,

        "LicenseType": "Trial"

     }

]

Response Object

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.

Response Code

List of response codes:

200 (OK)

404 (Not Found)

401 (Unauthorized)

400 (Bad Request)

500 (Internal Server Error)