Admin REST Service
Once admin REST services are enabled and properly configured they can be accessed as shown below.
The admin REST service supports many of the methods in the Administration API - and the REST methods and arguments are the same.
Please note that this REST API is an old version, which is superceded by API Management API - the newer version has Swagger/OpenAPI Specification available, and supports more features than this one does.
A more detailed description of each of the methods can also be find on the link above, as this REST service simply passes through the calls to the Administration API.
The supported methods are listed below.
No parameters | |
Description | Creates a JVM dump |
Example URLS | |
Output example | "-------------------- JVM Dump for statisticsserver1@localhost:58213@configclient_statisticsserver -------------------- -------------- Full JVM Dump: Runtime Information: -------------------- VN name: Java HotSpot(TM) 64-Bit Server VM, Vendor: Oracle Corporation, Version: 25.131-b11 JVM Started at: Mon, 26-Jun-17 16:41:45 CEST Uptime: 24 seconds, 290 msecs\nOS Name: Windows 10, version: 10.0 CPUs: 8\nArchitecture: amd64 Boot classpath: C:\\PortalProtect\\pp\\alpn\\alpn-boot-8.1.11.v20170118.jar;D:\\java\\jdk1.8.0_131\\jre\\lib\\resources.jar;D:\\java\\jdk1.8.0_131\\jre\\lib\\rt.jar;; ..... C:\\PortalProtect\\classes; .... and the dump continues |
No optional parameters | |
Description | Shuts down the server! |
Example URLS | |
Output example | {"status": "Shutting down server!"} |
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"} |
No optional parameters | |
Description | Lists all services known to the config server with connection and status information |
Example URLS | |
Output example | [ ....... More services listed here ] |
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 | [ ........ } |
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 | [ { .... ] |
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 | .... |
http://server:port/restservices/admin/updateconfigurationserverentry?server=xx&description=yy&extend=zz&type=kk | |
Required server name Optional description, extend and type | |
Description | Creates or updates a configuration server entry |
Example URLS | |
Output example | {"status": "ok"} |
http://server:port/restservices/admin/updateconfigurationgroupentry?server=xx&group=gg&description=yy | |
Required server and group name Optional description | |
Description | Creates or updates a configuration group entry under a server |
Example URLS | |
Output example | {"status": "ok"} |
http://server:port/restservices/admin/updateconfigurationproperty?server=xx&group=gg&key=kk&value=vv&description=yy | |
Required server, group, key name and value Optional description | |
Description | Creates or updates a configuration property entry under a server and group |
Example URLS | |
Output example | {"status": "ok"} |
http://server:port/restservices/admin/deleteconfigurationserverentry?server=ss http://server:port/restservices/admin/deleteconfigurationgroupentry?server=ss&group=gg http://server:port/restservices/admin/deleteconfigurationproperty?server=ss&group=gg&key=kk | |
Required server, group (group and property), key for property | |
Description | Deletes a server, group or single configuration property |
Example URLS | |
Output example | {"status": "ok"} |
© Ceptor ApS. All Rights Reserved.