"manageService"
JSON ADMIN "manageService"
action configures settings for a FairCom Edge service
The "manageService"
action configures the general settings of a FairCom Edge service.
"manageService"
can also send standard actions to the engine to pause, resume, restart, shutdown, and startup the service.A service either collects data and stores it in an integration table or it takes data in an integration table and delivers it to an external system.
Request examples
Minimal request
{ "api": "admin", "authToken": "anAuthorizationTokenFromTheServer ", "action": "manageService", "requestId": "00000012", "params": { "serviceName": "MODBUS" } }
{ "api": "admin", "authToken": "anAuthorizationTokenFromTheServer", "action": "manageService", "params": { "serviceName": "MODBUS", "authTokens": [ "authToken1", "authToken2" ] } }
{ "api": "admin", "requestId": "3", "authToken": "anAuthorizationTokenFromTheServer", "api": "admin", "action": "manageService", "params": { "serviceName": "MODBUS", "authTokens": [ "authToken1", "authToken2" ] }, "responseOptions": { "binaryFormat": "hex", "dataFormat": "objects", "numberFormat": "string" }, "apiVersion": "1.0", "debug": "max" }
{ "result": { "sessions": [ { "authToken": "authToken", "username": "accountName", "description": "optional session description", "defaultOwnerName": "admin", "defaultDatabaseName": null, "defaultBinaryFormat": "hex", "defaultResponseOptions": { "binaryFormat": "base64", "dataFormat": "arrays", "numberFormat": "number" }, "idleCursorTimeoutSeconds": 600, "idleConnectionTimeoutSeconds": 3600 } ] }, "errorCode": 0 }
{ "requestId": "2", "result": { }, "errorCode": -1, "errorMessage": "authToken invalid or expired.", "debugInfo": { "request": { "requestId": "2", "authToken": "anAuthorizationTokenFromTheServer", "api": "admin", "action": "manageService", "params": { "authTokens": [ "an AuthToken to be described" ] }, "responseOptions": { "binaryFormat": "hex", "dataFormat": "objects", "numberFormat": "string", "includeFields": [ ], "excludeFields": [ ], "includePaths": [ ], "excludePaths": [ ] }, "apiVersion": "1.0", "debug": "max" }, "serverSuppliedValues": { }, "errorData": { }, "warnings": [ { "warningCode": 0, "warningMessage": "", "warningData": { } } ], "executionPlan": { } } }
Use the manageService API action to configure the general settings of a FairCom Edge service
The "params"
property is an object that contains an action's parameters. Each action defines its own required and optional properties.
Properties summary
"params"
properties summaryProperty | Description | Default | Type | Limits (inclusive) |
---|---|---|---|---|
authTokens | contains one or more authorization token strings |
| array | At least one |
The "result"
property is a required object set by the server that contains the result of an action.
It is a required part of the jsonAction specification standard.
Its properties vary with each action.
Properties summary
"result"
properties summaryProperty | Description | Type | Limits (inclusive) | |||||
---|---|---|---|---|---|---|---|---|
contains session objects where each session minimally describes a session | array of objects | |||||||
| specifies that the client is authenticated and authorized | string | 0 to 255 bytes | |||||
| specifies the default value for the | string |
| |||||
| specifies the default value of the | string | 1 to 64 bytes | |||||
| specifies a default value for | object |
| |||||
| specifies the initial value of the | string | 0 to 256 bytes | |||||
| describes an object for later identificaion | string | 0 to 65,500 bytes | |||||
| specifies the name of the host device | string | ||||||
| specifies the universal identifier of the server instance | string | ||||||
| specifies the IP addresses of the host | array of strings | ||||||
| specifies the server's ISAM port or server name | string | ||||||
| specifies the server's SQL port | string | ||||||
| specifies the number of seconds that a session with no activity will stay open | integer |
| |||||
| specifies the number of seconds to keep a cursor open | integer |
| |||||
| specifies the UTC date and time in ISO 8601 format of when the session was created | string | ||||||
| specifies the UTC date and time in ISO 8601 format of when the session last received a JSON Action message including the last time the session was pinged | string | ||||||
| specifies the account name of a user or application | string | 1 to 64 bytes |
The "sessions"
property is an array of session objects where each session object minimally describes a session.