Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » Appliance upgrades
  •  
nhoague

Messages: 853
Karma: 18
Send a private message to this user
As my number of installed appliances continues to rise, I am finding it ever more necessary to stay on top of versions.

Using the API is it possible to

A) make sure the download new versions is always on
B) force an upgrade

I would like to do this for Control and Operator.

Is it also possible to check that the backup to samepage is enabled via API?

Thanks!
  •  
Miroslav Osladil (Kerio)

Messages: 188

Karma: 27
Send a private message to this user
Hi Nick,

sorry for late response.

Ad backup)

For Kerio Operator, there is a method SystemBackup.get with following self-describing values:

Request:
{"jsonrpc":"2.0","id":1,"method":"SystemBackup.get"}

Response:
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "autoSettings": [
      {
        "enabled": true,
        "description": "System Backup",
        "sections": {
          "SYSTEM_DATABASE": true,
          "VOICE_MAIL": true,
          "SSL_CERTIFICATES": true,
          "SYSTEM_LOG": false,
          "CALL_LOG": true,
          "LICENSE": true,
          "RECORDED_CALLS": false,
          "TFTP": true
        },
        "type": 1,
        "path": "https://samepage.io/app/#!/72f3...96c2/page-123-Backups",
        "period": 432000,
        "rotation": 7,
        "startAt": 3600
      }
    ],
    "statusRestore": {
      "RUNNING": false,
      "FILE_AVAILABLE": false,
      "TIMESTAMP": 0,
      "ERROR": false,
      "ERROR_MESSAGE": "",
      "SECTIONS": {}
    },
    "statusRestoreUpload": {
      "RUNNING": false,
      "FILE_AVAILABLE": false,
      "TIMESTAMP": 0,
      "ERROR": false,
      "ERROR_MESSAGE": "",
      "SECTIONS": {}
    },
    "statusBackup": {
      "RUNNING": false,
      "FILE_AVAILABLE": false,
      "TIMESTAMP": 0,
      "ERROR": false,
      "ERROR_MESSAGE": "",
      "SECTIONS": {}
    },
    "statusBackupAuto": {
      "RUNNING": false,
      "FILE_AVAILABLE": false,
      "TIMESTAMP": 1379372433,
      "ERROR": false,
      "ERROR_MESSAGE": "",
      "SECTIONS": {
        "SYSTEM_DATABASE": true,
        "VOICE_MAIL": true,
        "SSL_CERTIFICATES": true,
        "SYSTEM_LOG": false,
        "CALL_LOG": true,
        "LICENSE": true,
        "RECORDED_CALLS": false,
        "TFTP": true
      }
    }
  }
}


The same way for Kerio Control.

Request:
{"jsonrpc": "2.0","id": 1,"method": "ConfigurationBackup.get"}

Response:
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "config": {
      "enabled": true,
      "username": "mosladil<_at_>kerio.com",
      "password": "",
      "url": "https://samepage.io/app/#!/72f3...96c2/page-123-Backups"
    }
  }
}


Ad update checker)
This is more complex matter but generally it is possible. It requires a few pragmatical steps such as checking for a new version and if yes download the binary image and finally perform upgrade. I am attaching the developer documentation in the IDL file where are all the methods documented. It applies for Kerio Control and Operator as well.

Please note that fully automated upgrade using API is not available for Windows installations.


Miroslav Osladil
Senior Developer
Kerio Technologies

The views I express are my own and do not necessarily reflect the views of Kerio Technologies.
Previous Topic: Trigger on new or update user
Next Topic: Kerio Connect API - Java version
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Wed Oct 18 01:58:22 CEST 2017

Total time taken to generate the page: 0.00443 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.