Comment 2 for bug 1923315

Revision history for this message
Tom Kivlin (tomkivlin) wrote :

OK, couple of things have changed since I opened this.

Firstly, I re-read the main API docs and realised that I needed to pass the parameters as multipart/form-data. I did that but still had the same problem.

Secondly, I noticed that the "distro" parameter needed to be "distro_series". Not sure if I just missed that when I looked before or it changed, or I was looking at an old version of the doc but whatever.

So using http://{{maas-url}}/MAAS/api/2.0/machines/8qtcnf/?op=deploy as the URL for the POST request, with the following form-data worked fine.

|KEY |VALUE|
|osystem |esxi |
|distro_series|7.0 |