getUpdateInfo()
The function getUpdateInfo() gets license update information.
Synopsis
string LicenseServiceClient::getUpdateInfo();
Return Value
License update information as a JSON.
Details
The function getUpdateInfo() gets license update information as a JSON:
{
"lastUpdateResult": {
"errorcode": 0,
"errortext": "operation \"autoupdate\" completed successfully",
"internalerrorcode": 0,
"internalerrortext": ""
},
"NextUpdateCheck": "2025-11-12T10:16:28.545Z", /* State of the license portal. Possible options are: "UNAVAILABLE"
"UNKNOWN", "AVAILABLE" */
"LicenseCentralState": "AVAILABLE"
}
{
"lastUpdateResult": {
"errorcode": 15,
"errortext": "gateway call to read auto update licenses for cmcontainer \"130-2111743414\" failed",
"internalerrorcode": "",
"internalerrortext": ""
},
"NextUpdateCheck": "2025-11-12T10:16:28.545Z",
"LicenseCentralState": "UNAVAILABLE" /* State of the license portal. Possible options are: "UNAVAILABLE"
"UNKNOWN", "AVAILABLE" */
}
Example
The example returns license update information as a JSON.
#uses "classes/sbl/LicenseServiceClient"
main(mapping event)
{
LicenseServiceClient licenseServiceClient;
DebugN(licenseServiceClient.getUpdateInfo());
}
Assignment
Availability
UI, CTRL
