Changes for page Wonder JavaMonitor and wotaskd
Last modified by Pascal Robert on 2023/08/10 22:21
From version 178.1
edited by Marc Guenther
on 2023/08/10 16:00
on 2023/08/10 16:00
Change comment:
API is missing sanity checks
To version 180.1
edited by Marc Guenther
on 2023/08/10 01:45
on 2023/08/10 01:45
Change comment:
fixed the download link to Jenkins
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -206,8 +206,6 @@ 206 206 207 207 If the control offered by the Direct Actions isn't enough, JavaMonitor allows additional control via [[REST>>doc:ERRest Framework]] calls. Between the two methods (Direct Actions, REST) you have almost full remote-control of JavaMonitor. Just make sure that your JavaMonitor installation is secure! Just like with Direct Actions, you need to append {{code language="none"}}?pw=XXXX{{/code}} to the URLs if your JavaMonitor is password protected. 208 208 209 -Be careful with these. This allows to do illegal stuff, that the UI wouldn't allow, for example, create two applications with the same name. 210 - 211 211 Examples of REST calls : 212 212 213 213 {{code title="Adding a New Host" 0="none"}} ... ... @@ -248,7 +248,7 @@ 248 248 249 249 {{code title="Adding a New Instance" 0="none"}} 250 250 251 -curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstance ?host=localhost249 +curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstance&host=localhost 252 252 253 253 {{/code}} 254 254 ... ... @@ -276,10 +276,6 @@ 276 276 277 277 Starting on August 10th 2012, wotaskd also have REST routes. By using them, you can do most of the tasks using REST and you might not even need JavaMonitor. Just like the JavaMonitor REST and Direct Actions, you need to append {{code language="none"}}?pw=XXXX{{/code}} to the URLs if wotaskd is password protected. 278 278 279 -Unfortunately, all changes you make in {{code language="none"}}wotaskd{{/code}} via this API will not be picked up by an already running {{code language="none"}}JavaMonitor{{/code}}, making all the modification endpoints here mostly useless. 280 - 281 -\\ 282 - 283 283 {{code title="Fetching Details for All Applications" 0="none"}} 284 284 285 285 curl -X GET http://wotaskdhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json