Re: Juju service commands or communitation protocol

2015-11-05 Thread André Moreira
Sure! My intentions are on Java, but I haven't decided anything yet. André Envoyé de mon iPhone > Le 5 nov. 2015 à 12:39, Mark Shuttleworth a écrit : > >> On 05/11/15 15:19, Adam Stokes wrote: >>> On Thu, Nov 5, 2015 at 8:24 AM, Mark Shuttleworth wrote: >>> On 05/11/15 00:19, André Mor

Re: Juju service commands or communitation protocol

2015-11-05 Thread André Moreira
I will certainly have a look. Thank you. André Envoyé de mon iPhone > Le 5 nov. 2015 à 06:44, Samuel Cozannet a > écrit : > > Hi André, > > Not sure about your use case, but we've used this integration (python native > I am afraid) to do some Juju autoscaling with a metrology tool (Zabbix)

Re: Juju service commands or communitation protocol

2015-11-05 Thread Mark Shuttleworth
On 05/11/15 15:19, Adam Stokes wrote: > On Thu, Nov 5, 2015 at 8:24 AM, Mark Shuttleworth wrote: > >> On 05/11/15 00:19, André Moreira wrote: >>> Thank you, Adam. This is exactly what I was looking for. >>> André >> If you end up making bindings for another language like Ruby or Node >> then we'll

Re: Juju service commands or communitation protocol

2015-11-05 Thread Adam Stokes
On Thu, Nov 5, 2015 at 8:24 AM, Mark Shuttleworth wrote: > On 05/11/15 00:19, André Moreira wrote: > > Thank you, Adam. This is exactly what I was looking for. > > André > > If you end up making bindings for another language like Ruby or Node > then we'll be glad to publicise that to the communit

Re: Juju service commands or communitation protocol

2015-11-05 Thread Mark Shuttleworth
On 05/11/15 00:19, André Moreira wrote: > Thank you, Adam. This is exactly what I was looking for. > André If you end up making bindings for another language like Ruby or Node then we'll be glad to publicise that to the community too! Mark -- Juju mailing list Juju@lists.ubuntu.com Modify setti

Re: Juju service commands or communitation protocol

2015-11-05 Thread Samuel Cozannet
Hi André, Not sure about your use case, but we've used this integration (python native I am afraid) to do some Juju autoscaling with a metrology tool (Zabbix). Have a look if you're doing something similar :) Repo (a bit outdated now): https://github.com/SaMnCo/ob-zabbix/ video: https://www.youtu

Re: Juju service commands or communitation protocol

2015-11-04 Thread André Moreira
Thank you, Adam. This is exactly what I was looking for. André 2015-11-04 14:21 GMT-02:00 Adam Stokes : > You'll have to check out some of the bindings code: > > > http://bazaar.launchpad.net/~juju-deployers/python-jujuclient/trunk/view/head:/jujuclient.py > > That should give you a good indicati

Re: Juju service commands or communitation protocol

2015-11-04 Thread Adam Stokes
You'll have to check out some of the bindings code: http://bazaar.launchpad.net/~juju-deployers/python-jujuclient/trunk/view/head:/jujuclient.py That should give you a good indication of what the juju api server requires. For example the credentials need to be in a form of {'Type': 'Admin', '

Re: Juju service commands or communitation protocol

2015-11-04 Thread André Moreira
Hi Adam, What I mean is how do I construct the json requests and how should I expect the json response to be provided. Do you know where do I find this kind of documentation? I mean, is there a doc for it without needing to read the source code? André 2015-11-04 11:34 GMT-02:00 Adam Stokes : > If

Re: Juju service commands or communitation protocol

2015-11-04 Thread Adam Stokes
If you're going to use Go or creating bindings of your own the api documentation is https://godoc.org/github.com/juju/juju/api. On Wed, Nov 4, 2015 at 8:30 AM, André Moreira wrote: > Thank you, Mark, for the reply. > Nice to know there is this library and there will be an official one! > But, if

Re: Juju service commands or communitation protocol

2015-11-04 Thread André Moreira
Thank you, Mark, for the reply. Nice to know there is this library and there will be an official one! But, if I want to use the REST api without the python library, where can I find documentation for it? Thanks in advance, André 2015-11-04 6:32 GMT-02:00 Mark Shuttleworth : > On 04/11/15 09:02, M

Re: Juju service commands or communitation protocol

2015-11-04 Thread Mark Shuttleworth
On 04/11/15 09:02, Merlijn Sebrechts wrote: > I'm very interested to hear more about that python library! Is this > something that will be discussed at the summit? It could be. There have been a couple of informal variations on this theme from various sources, we recently decided it was worth maki

Re: Juju service commands or communitation protocol

2015-11-04 Thread Peter Sabaini
On 04.11.15 04:12, André Moreira wrote: > Is there a REST API for juju or the only possible ways to > communicate with it are either by juju command-line or juju gui? A > service can communicate with juju main agent and, for instance, add > a new unit or start another service? What is the proper wa

Re: Juju service commands or communitation protocol

2015-11-04 Thread Merlijn Sebrechts
Hi Mark I'm very interested to hear more about that python library! Is this something that will be discussed at the summit? Kind regards Merlijn 2015-11-04 7:36 GMT+01:00 Mark Shuttleworth : > Hi André > > Yes, there is a REST API, which is what the GUI uses, and there will also > shortly be

Re: Juju service commands or communitation protocol

2015-11-03 Thread Mark Shuttleworth
Hi André Yes, there is a REST API, which is what the GUI uses, and there will also shortly be a nice official Python library that wraps it if that is helpful for you. Mark On 04/11/15 04:12, André Moreira wrote: > Is there a REST API for juju or the only possible ways to communicate with > it ar

Juju service commands or communitation protocol

2015-11-03 Thread André Moreira
Is there a REST API for juju or the only possible ways to communicate with it are either by juju command-line or juju gui? A service can communicate with juju main agent and, for instance, add a new unit or start another service? What is the proper way to do this? Is it possible to a charm to ask j