I will certainly have a look. Thank you. André Envoyé de mon iPhone
> Le 5 nov. 2015 à 06:44, Samuel Cozannet <samuel.cozan...@canonical.com> 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). Have > a look if you're doing something similar :) > > Repo (a bit outdated now): https://github.com/SaMnCo/ob-zabbix/ > video: https://www.youtube.com/watch?v=IF7bUgDCYMM > > ++ > Sam > > > > > -- > Samuel Cozannet > Cloud, Big Data and IoT Strategy Team > Business Development - Cloud and ISV Ecosystem > Changing the Future of Cloud > Ubuntu / Canonical UK LTD / Juju > samuel.cozan...@canonical.com > mob: +33 616 702 389 > skype: samnco > Twitter: @SaMnCo_23 > > >> On Thu, Nov 5, 2015 at 12:19 AM, André Moreira <andre....@gmail.com> wrote: >> Thank you, Adam. This is exactly what I was looking for. >> André >> >> 2015-11-04 14:21 GMT-02:00 Adam Stokes <adam.sto...@canonical.com>: >>> 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', >>> 'Request': 'Login', >>> 'RequestId': 1, >>> 'Params': {'AuthTag': 'user-admin', >>> 'Password': None}} >>> >>> The above library is a single file which is pretty easy to grok and has >>> good documentation on what the functions do. >>> >>>> On Wed, Nov 4, 2015 at 11:04 AM, André Moreira <andre....@gmail.com> wrote: >>>> 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 <adam.sto...@canonical.com>: >>>>> 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 <andre....@gmail.com> >>>>>> wrote: >>>>>> 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 <m...@ubuntu.com>: >>>>>>> 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 making an >>>>>>> official one. Someone closer to that work would be able to provide more >>>>>>> insight, including whether it will be based on one like >>>>>>> http://python-jujuclient.readthedocs.org/ or whether it's a fresh start. >>>>>>> >>>>>>> Mark >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> Le doux charme de maint songe >>>>>> Par leur bel art inventé >>>>>> Sous les habits du mensonge >>>>>> Nous offre la vérité. >>>>>> -La Fontaine >>>>>> >>>>>> -- >>>>>> Juju mailing list >>>>>> Juju@lists.ubuntu.com >>>>>> Modify settings or unsubscribe at: >>>>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>> >>>> >>>> >>>> -- >>>> >>>> Le doux charme de maint songe >>>> Par leur bel art inventé >>>> Sous les habits du mensonge >>>> Nous offre la vérité. >>>> -La Fontaine >> >> >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju