← Back to team overview

maas-devel team mailing list archive

Re: Allow API to use <system_id | hostname> for all operations that currently require the system_id

 

On 29 May 2014 15:17, Andres Rodriguez <andres.rodriguez@xxxxxxxxxxxxx> wrote:
>> > @Andres & al. don't you think that, if you had access (through a very
>> > clear
>> > call to the CLI) to the system_id of a node using its hostname, this
>> > would
>> > solve your usability problem?
>>
>> Were scripts possible to write in straight Python, using a Python
>> client API, we'd make a lot of people happy. Then the CLI becomes all
>> about satisfying humans, and something like jsonpath would make this
>> even more powerful.
>
>
> I'm not against having to write scripts using the API. I agree that the CLI
> won't solve every single problem we have out there, but at least, we should
> make sure that the basics are well supported and usable. For example, the
> only way to adding/removing tags (if not scripted) is via the CLI. Right,
> now, we basically deal with this on the daily basis and something that could
> take us 10 seconds to do, is taking us minutes. And this is from real user
> experience.

A combination of maas and jq would get this working, albeit with a
duct-tape feel. A proper client library would give you the means to
write your own, more robust, tooling.

Aside: I wonder why we haven't yet added the ability to set tags via the UI?


References