• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: REST routes in JavaMonitor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REST routes in JavaMonitor


  • Subject: Re: REST routes in JavaMonitor
  • From: Pascal Robert <email@hidden>
  • Date: Wed, 29 Sep 2010 10:14:33 -0400

Le 2010-09-29 à 10:10, Kieran Kelleher a écrit :

> Good job Robert, er, sorry I meant Elvis ;-)

Just a note, it's not for Elvis the singer, it's for Elvis Gratton :

	http://www.youtube.com/watch?v=FVHs12e-Fgc

> On Sep 29, 2010, at 6:55 AM, Pascal Robert wrote:
>
>> Good morning!
>>
>> Yesterday, I committed REST routes inside JavaMonitor, this is the stuff that was demonstrated at WOWODC 2010. With those routes + the direct actions Anjo added last year, you can control almost everything remotely (make sure JavaMonitor is not open to the world!). The code was added to the trunk of Wonder (the Wonder53 build) so if you want to play with it, make sure you get it from this build.
>>
>> Below is a couple of call examples. Please note that if JavaMonitor requires a password, you need to append ?passwd=XXXXX at the end of the URLs.
>>
>> ------------
>>
>> Fetching the details of all applications :
>>
>> curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
>>
>> Adding a new application :
>>
>> curl -X POST -d "{id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'}" http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json
>>
>> Adding a new instance :
>>
>> curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstance&host=localhost
>>
>> Delete an application :
>>
>> curl -X DELETE http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json
>>
>> Delete an instance :
>>
>> curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1
>>
>> Adding a new host :
>>
>> curl -X POST -d "{id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'}" http://127.0.0.1:56789/apps/WebObjects/JavaMonitor.woa/ra/mHosts.json
>>
>>
>> --
>> Pascal Robert
>> email@hidden
>>
>> AIM/iChat : MacTICanada
>> LinkedIn : http://www.linkedin.com/in/macti
>> Twitter : pascal_robert
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >REST routes in JavaMonitor (From: Pascal Robert <email@hidden>)
 >Re: REST routes in JavaMonitor (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: REST routes in JavaMonitor
  • Next by Date: Re: UNIQUE constraint on Entity Modeler
  • Previous by thread: Re: REST routes in JavaMonitor
  • Next by thread: UNIQUE constraint on Entity Modeler
  • Index(es):
    • Date
    • Thread