api: provide a way to map a model name to a model UUID

Bug #1737832 reported by Roger Peppe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

Currently in the Juju client API, in the absence of current cached models info, there appears to be no way to connect to a model with a given name other than by using a ListModels call to list all models, then doing a search for the model name in that to find its UUID.

It would feel more natural (and it would be more efficent) to be able to ask a controller for the UUID for a given model name, and/or to be able to make an API connection using a model name instead of a UUID.

For example, we could connect using /modelname/:user/:name/api to connect to a model with a particular name, or if we didn't want to constrain future possible model names, then some sort of quoting mechanism for the slashes in the model name could be used.

Revision history for this message
John A Meinel (jameinel) wrote :

it would want to be a controller level facade, and thus ultimately implemented by JEM for JAAS.
As such the response probably also needs to include information about ultimately what controller the model is running.

Changed in juju:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Wishlist → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.