<div dir="ltr">Got it squared away, being able to replicate `juju list-controllers` didn't have a remote api. So I will continue to read from ~/.local/share/juju/controllers.yaml. My intention was to basically see what controllers were already bootstrapped and gather the models for those controllers using the remote juju api. But that doesn't exist so I will mimic what `juju list-controllers` does and read from the yaml file for controllers that are local to my admin and users.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 29, 2016 at 9:40 PM, Tim Penhey <span dir="ltr"><<a href="mailto:tim.penhey@canonical.com" target="_blank">tim.penhey@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It is the controller that you have logged into for the API.<br>
<br>
What are you wanting?<br>
<br>
You need a different API connection for each controller.<br>
<br>
Tim<br>
<span class=""><br>
On 01/03/16 15:05, Adam Stokes wrote:<br>
> Right, but how do you specify which controller you want to list the<br>
> models for? The only way I can see is to manually `juju switch<br>
> <controller>` then re-login to the API and run the AllModels method. Is<br>
> there a way (as an administrator) to specify which controller you want<br>
> to list the models for?<br>
><br>
> On Mon, Feb 29, 2016 at 8:46 PM, Ian Booth <<a href="mailto:ian.booth@canonical.com">ian.booth@canonical.com</a><br>
</span><span class="">> <mailto:<a href="mailto:ian.booth@canonical.com">ian.booth@canonical.com</a>>> wrote:<br>
><br>
><br>
><br>
> On 01/03/16 11:25, Adam Stokes wrote:<br>
> > On Mon, Feb 29, 2016 at 7:24 PM, Tim Penhey<br>
</span>> <<a href="mailto:tim.penhey@canonical.com">tim.penhey@canonical.com</a> <mailto:<a href="mailto:tim.penhey@canonical.com">tim.penhey@canonical.com</a>>><br>
<div class="HOEnZb"><div class="h5">> > wrote:<br>
> ><br>
> >> On 01/03/16 03:48, Adam Stokes wrote:<br>
> >>> Is there a way to list all models for a specific controller?<br>
> >><br>
> >> Yes.<br>
> ><br>
> ><br>
> > Mind pointing me to the api docs that has that capability?<br>
> ><br>
><br>
> <a href="https://godoc.org/github.com/juju/juju/api/controller#Client.AllModels" rel="noreferrer" target="_blank">https://godoc.org/github.com/juju/juju/api/controller#Client.AllModels</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>