Last modified by Pascal Robert on 2023/08/10 22:21

From version 156.1
edited by simon
on 2010/12/01 07:47
Change comment: There is no comment for this version
To version 154.1
edited by simon
on 2010/12/01 07:43
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -220,16 +220,20 @@
220 220  
221 221  {{/code}}
222 222  
223 -{{code title="Delete an Instance"}}
223 +{{code title="Delete an Instance :"}}
224 224  
225 225  curl -X GET http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1
226 226  
227 227  {{/code}}
228 228  
229 -{{code title="Configuring the Site"}}
229 +{{code title="Adding a New Instance"}}
230 230  
231 -curl -X PUT -d "{woAdaptor:'www.mydomain.com'}" http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json
231 +{color:#808080}curl \-X PUT \-d "{woAdaptor:'{color}{color:#2a5db0}www.mydomain.com{color}{color:#808080}'}"{color} {color:#2a5db0}http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/ra/mSiteConfig.json{color}
232 232  
233 233  {{/code}}
234 234  
235 -Note that before configuring the site you must first add a host. If you attempt to configure the site prior to adding a host you will get an InvalidStateException.
235 +{{code title="Delete an Instance :"}}
236 +
237 +
238 +
239 +{{/code}}