Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http://server:port/restservices/admin/shutdown

No optional parameters

Description

Shuts down the server!

Example URLS

http://localhost:5300/restservices/admin/shutdown

Output example

{"status": "Shutting down server!"}



http://server:port/restservices/admin/reloadconfiguration

No optional parameters

Description

Tells the config server to reload all configuration

Example URLS

http://localhost:5300/restservices/admin/reloadconfiguration

Output example

{"status": "Reloading all configuration"}



http://server:port/restservices/admin/listServices

No optional parameters

Description

Lists all services known to the config server with connection and status information

Example URLS

http://localhost:5300/restservices/admin/listServices

Output example

[
{
"name": "axis",
"status": {
"running": false,
"connecting": false,
"notConnected": true,
"disconnecting": false,
"disconnected": true,
"connected": false,
"starting": false,
"stopping": false,
"shuttingDown": false,
"shutDown": false,
"stopped": true
},
"pingTime": -1,
"alias": null,
"routeNodeName": null,
"type": null,
"memoryFree": 0,
"memoryTotal": 0,
"memoryUsed": 0,
"memoryMax": 0,
"cpuProcess": -1,
"cpuSystem": -1,
"pingtime": -1
},
{
"name": "configserver1",
"status": {
"running": true,
"connecting": false,
"notConnected": true,
"disconnecting": false,
"disconnected": true,
"connected": false,
"starting": false,
"stopping": false,
"shuttingDown": false,
"shutDown": false,
"stopped": false
},
"pingTime": 0,
"alias": "",
"routeNodeName": "configserver1@127.0.0.1",
"type": null,
"memoryFree": 695644,
"memoryTotal": 974336,
"memoryUsed": 278692,
"memoryMax": 974336,
"cpuProcess": 0.0012769606407561649,
"cpuSystem": 0.09321413231377008,
"pingtime": 0
},

....... More services listed here

]

...

http://server:port/restservices/admin/startserver?server=xx

http://server:port/restservices/admin/stopserver?server=xx

Required parameter is a server.

Description

starts or stops a server with a given name

Example URLS

http://localhost:5300/restservices/admin/startserver?server=useradmin1

Output example{"status": "Starting server useradmin1"}



http://server:port/restservices/admin/getconfigurationentries

No required paramaters

Description

Returns all configuration entries known to the config server

Example URLS

http://localhost:5300/restservices/admin/getconfigurationentries

Output example

[
{
"name": "applications",
"description": "Application server settings",
"extend": null,
"type": "abstract",
"groups": [ {
"name": "general",
"description": "General configuration",
"properties": [
{
"key": "ppagent.synctimewithserver",
"value": "false",
"description": "Synchronize time with PP server upon startup"
},
{
"key": "useradmin.server",
"value": "nios://localhost:15000?validateservercert=false",
"description": "Useradmin servers"
},
{
"key": "sessioncontrollers",
"value": "nios://localhost:21343?validateservercert=false",
"description": ""
},
{
"key": "useradmin.userid",
"value": "admin",
"description": "Userid for useradmin client"
},
{
"key": "reconnectToPrimarySessionCtrl",
"value": "false",
"description": "If true, agent will try to reconnect to primary sessionctrl"
},
{
"key": "useradmin.password",
"value": "password",
"description": "Password for useradmin client"
},
{
"key": "exitOnOutOfMemory",
"value": "true",
"description": "If true, JVM will exit when out of memory"
},
{
"key": "agentvalidator",
"value": "dk.itp.security.passticket.DefaultValidator",
"description": "Code which e.g. checks group memberships or permissions"
}
]
}]
},
{
"name": "axis",
"description": "Axis WebService server",
"extend": "applications",
"type": "app",
"groups": []
},
{
"name": "configserver1",
"description": "master config server",
"extend": "configservers",
"type": "config",
"groups": [
{
"name": "cluster",
"description": "cluster server configuration",
"properties": [
{
"key": "cluster.server",
"value": "master",
"description": "valid values=\"master\" and \"slave\""
},
{
"key": "cluster.server.master",
"value": "nios://localhost:21233?validateservercert=false",
"description": "host and port of master server"
}
]
},

........

}

...

http://server:port/restservices/admin/loggingevents?server=xx

Required server name

Description

Returns latest log entries for the given server stored in the log server memory

Example URLS

http://localhost:5300/restservices/admin/loggingevents?server=configserver1

Output example

[
{
"categoryName": "root",
"ndc": null,
"renderedMessage": "Launching configserver1...",
"threadName": "localhost: main",
"timeStamp": 1498488495896,
"level": {"syslogEquivalent": 6},
"loggerName": "dk.itp.managed.service.PPLaunch",
"throwableStrRep": null,
"properties": {},
"message": "Launching configserver1...",
"logger": null,
"throwableInformation": null,
"fqnofLoggerClass": null,
"locationInformation": {
"fullInfo": null,
"className": "?",
"fileName": "?",
"lineNumber": "?",
"methodName": "?"
},
"propertyKeySet": []
},

{
"categoryName": "root",
"ndc": null,
"renderedMessage": "listenURLs changed from null to null, will need to restart.",
"threadName": "localhost: main",
"timeStamp": 1498488495999,
"level": {"syslogEquivalent": 6},
"loggerName": "dk.itp.managed.service.ConfigurationService",
"throwableStrRep": null,
"properties": {},
"message": "listenURLs changed from null to null, will need to restart.",
"logger": null,
"throwableInformation": null,
"fqnofLoggerClass": null,
"locationInformation": {
"fullInfo": null,
"className": "?",
"fileName": "?",
"lineNumber": "?",
"methodName": "?"
},
"propertyKeySet": []
},

....

]




http://server:port/restservices/admin/recentaccessedurls?server=xx

Required server name

Description

Returns latest accessed URLs for a dispatcher

Example URLS

http://localhost:5300/restservices/admin/recentaccessedurls?server=dispatcher1

Output example

....