@PouicPouic, plenty of people manage MAAS with the CLI, including me. for example, you can take a look at this tutorial, where I walk the CLI thru its paces.
i’m not sure if your question is related to the post above. is there a specific question i can answer for you?
I have moved on from using the MAAS CLI as it’s not portable enough. I would like to use the API https://maas.io/docs/api. The reason for moving on from using the CLI is that I need to install it on a server and that limits useability. The API provides a lot more mileage, You can write a python or some other language that makes calls to the API directly and your code is portable. The link I posted above could use more documentation on how to make calls to the API with the examples, some python code examples or shell scripts examples would help a lot.
i try to use API too, in order to manage machine( creation/update)
but i don t find the way to configure the network part od the new machine. below my json file a load on my API call
did you know how to definet FABRIC ans DHCP mode on a machine with a API CALL ?
it sounds like there are some feature requests here, targeted toward the API. IIUC, you’ll want to explain the issues you’re having in more detail in the feature requests section of the forum, since that’s how these requests get picked up and noticed. obviously, we can’t respond to every feature request, but we do try, when we can work it into our roadmap.
hi
after some digging session , i arrvive to manage MAAS by ansible and call API , for the moment.
I look at some module but i prefer to do it myself ^^
Wow, i don’t even understand why I posted that? must of been a typo (late night working on MAAS), during the last month/half I have been using the MAAS API (https://maas.io/docs/api) to automate hardware provisioning.
I was able to commission but Having issues deploying a server, more specifically passing the osystem parameters
POST /MAAS/api/2.0/machines/{system_id}/?op=deploy
Passing the optionally parameters is not straightforward. It would be helpful it you guys were to provide examples of how this would be done!!!
and stormrider.io is back, along with the doc you’re referencing. my boss’ boss asked me to put it back up, as others were linking to it. be careful what you post!
@cmills, i’m going to try and bring this up with my team in a couple of weeks. can you give me some more detailed examples of where the API doc is failing?
Sorry for the late reply.
Let’s start with the api docs page https://maas.io/docs/api, this page mentions the various methods for doing updates, post, get(s) and so forth. This page should include at the top of the page https://maas.io/docs/api-authentication-reference. This reference is very important and the only reference to this is on the side halfway down the page. The contents of that reference I think should be place at the top of this page.
I also include some coding examples of how to use the methods mentioned; It took me some time to figure a lot of this out