> Hi,
>
> I would like to use the API to set / edit host parameters for a node in
> foreman.
> I had a look at the wiki for some examples but cannot get it to work
>
> API - Foreman
> API - Smart Proxy - Foreman
>
> Creating a node works
>
> curl -s -H "Accept:application/json"
> -k -u $USER:$PASS
> -d "host[name]=$NAME" -d "host[hostgroup_id]=$HOSTGROUP_ID"
> $FOREMAN_URL/hosts
>
> How do I set host parameters for node? Any help will be really
> appreciated.
>
I've created a simply ruby script to implement both adding new params, and
updating existing ones at [1]
as part of the new api version (v2) we will make param, classes etc updates
much more trivial and rest friendly.
for those of you who already use this api, don't worry, as we've introduced
multiple API versioning, so you could choose which version of the API you
want to you use.
How do I set host parameters for node? Any help will be really
appreciated.
I’ve created a simply ruby script to implement both adding new params, and
updating existing ones at [1]
as part of the new api version (v2) we will make param, classes etc
updates much more trivial and rest friendly.
for those of you who already use this api, don’t worry, as we’ve
introduced multiple API versioning, so you could choose which version of
the API you want to you use.