This section handle the services management.

POST /console/TaskHandler

This method is used to execute any of the edinn tasks.

Request parameters:

    • taskName [mandatory]: The name of the task: ReportsCache, ReportsCacheUnschedule, Optimizer, Autocalendar, Updateserver, Bigdata.
    • company [mandatory]: the company Id.
    • host [mandatory]: the IP or name of the host.
    • port [mandatory]: the data base port.
    • directory [mandatory]: the directory of the service executable.
    • extParams: aditional parameters separated by "," on Autocalendar and Updateserver. Separated by blankspace on Bigdata.
    • session [mandatory]: the Id of the active session.

Response:

    • status: returns "0" on success, and an error code in any other case.
    • data: returns a boolean based on the result of the transaction.
    • message: "success" or a descriptive information of the error in any other case.

Example:

Content-Type: application/json

Request: /console/TaskHandler?taskName=BIGDATA&company=0000000001&host=192.168.133.1&port=10000&directory=Y:\VB6\edinnM2\Console&session=9hCSX9oBWVbeilKi0L7zjKDPq0hSusjPII1CVCQIdgGdTYv2IQ9wijp5Q2km&extParams=192.168.133.1 10000 0000000001 0 99999 999 A0L1 20170301070004 18991230000000 1 1 0


Reponse (success):

{

"status": "0",

"data": True,

"message": "Success"

}