Questions about Juju features

Gary Poster gary.poster at canonical.com
Sat Mar 16 14:48:57 UTC 2013


On 03/14/2013 05:22 PM, Clint Byrum wrote:
> Excerpts from Hongbin Lu's message of 2013-03-14 08:44:29 -0700:

...

>> 3. Does Juju provide any API besides CLI. Any restful/soap API exists? Or
>> any language-specific API exists?
>>
> 
> The (deprecated) python version has a REST API which the Juju GUI
> uses. 

It isn't REST in my book, though we've called it that.  It is a
websocket API whose current driver is the GUI.

> juju-core will in theory have one "real soon now" but probably
> not until after 2.0 is released.

This is in progress now.  Many commands are available in trunk.  I
believe we will have a full complement within the next two weeks.  The
API is very different in spelling from the one in the Python version of
Juju, but hasn't been too hard for the GUI to adapt to.

The API is not documented yet in either case.  Looking at the JS in the
GUI (in app/store/env) is arguably the most direct path to understanding
how to use it.

Gary



More information about the Juju mailing list