Juju service commands or communitation protocol
Peter Sabaini
peter.sabaini at canonical.com
Wed Nov 4 08:12:56 UTC 2015
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 way to do
> this? Is it possible to a charm to ask juju to start another
> machine, add instances of a service or destroy instances? For
> instance, by doing something simular to the juju gui: how juju gui
> performs the creation of machines? I´d like to have a service that
> monitors other services and add instances to scale out, for instance.
FWIW I've been using this: http://python-jujuclient.readthedocs.org
It's using websocket API, and did the job for my light usage, ie.
tools and queries.
> --
>
> Le doux charme de maint songe
> Par leur bel art inventé
> Sous les habits du mensonge
> Nous offre la vérité.
> -La Fontaine
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151104/39916286/attachment.pgp>
More information about the Juju
mailing list