I'd like to use the rest api to load a new desired state (update existing desired state).
Reading on this page https://github.com/linkedin/glu/wiki/Console there's a description of the console's rest API. I know it's a work in progress and that there's a CLI in the works.
Here's my question though:
The description for PUT /system/model says: Body contains a query string rootUrl=file:/xxx&release=yyy.
Perhaps it's my misunderstanding, but I was expecting a method (POST or PUT) which will let me upload a json document to the console to use as the desired state. If I understand correctly, the PUT /system/model will look for a URL. (rootUrl). Is this a URL of where such a json document should exist? Is there another method that simply puts a new desired state?
What is the recommended way to use the console's API to load a json document describing the desired state?
You are entirely correct. The method should be a POST and allow for the system in the body rather than providing a query string with the root. In its current state it is not even going to work for 2 reasons: