getDetails()

The function getDetails() returns license details and update information.

Synopsis

string LicenseServiceClient::getDetails();

Return Value

License details and update information.

Details

The function getDetails() returns license details and update information as a JSON string:

{
  "LicenseCentralState\": \"AVAILABLE\",                  /* State of the license portal. Possible options are: "UNAVAILABLE"
                                                           "UNKNOWN", "AVAILABLE" */
  "contractExpirationDate": "2026-01-02T00:00:00.000Z",
  "state": "VALID",
  "contractRemainingMinutes": 82823,
  "gracePeriodDays": 30,
  "type": "DEVELOPER",                                      /* The license type. Options: "PERPETUAL", 
                                                            "SUBSCRIPTION"
                                                            "DEMO"
                                                            "DEVELOPER"
                                                            "NOLICENSE" */
  "demoPeriodDays": 30,
  "expirationDate": "2026-02-01T00:00:00.000Z",
  "remainingMinutes": 43119,
  "container": "130-2111743414",
  "lastUpdateResult": {
    "errorcode": 0,
    "errortext": "operation \"autoupdate\" completed successfully",
    "internalerrorcode": 0,
    "internalerrortext": ""
  },
  "NextUpdateCheck": "2025-11-12T10:16:28.545Z",
  "LicenseCentralState": "AVAILABLE"
}

Example

The example returns license details and update information as a JSON string.

#uses "classes/sbl/LicenseServiceClient"
main(mapping event)
{
  LicenseServiceClient licenseServiceClient;
  DebugN(licenseServiceClient.getDetails());
}

Assignment

Licensing

Availability

UI, CTRL