Get host parameters

> I need acces to host parameters from API.
>
> Try /host/<id>/parameters and other combinations but don't works.
>
> After read API - Foreman, i have no
> ideas.

As the page notes, this is mostly documenting the pre-1.1 API.

> Is posible have access to host parameters from API.

Have a look at the hosts docs in the current API documentation, e.g.
viewing a host gives a host_parameters hash in the JSON response:

http://theforeman.org/api/apidoc/hosts/show.html

The full API v1 docs (for Foreman 1.1+) are linked from the API link in
the black header bar of the web site:

http://theforeman.org/api.html

··· On 22/04/13 13:33, Israel Calvete wrote:


Dominic Cleal
Red Hat Engineering

> > I need acces to host parameters from API.
> >
> > Try /host/<id>/parameters and other combinations but don't works.
> >
> > After read API - Foreman, i have no
> > ideas.
>
> As the page notes, this is mostly documenting the pre-1.1 API.
>
> > Is posible have access to host parameters from API.
>
> Have a look at the hosts docs in the current API documentation, e.g.
> viewing a host gives a host_parameters hash in the JSON response:
>
> http://theforeman.org/api/apidoc/hosts/show.html
>
> The full API v1 docs (for Foreman 1.1+) are linked from the API link in
> the black header bar of the web site:
>
> Foreman

v2 of the API (expected in 1.2 or in the current develop branch) supports
/api/hosts/fqdn/parameters <-- full rest / CRUD

Ohad

··· On Mon, Apr 22, 2013 at 3:47 PM, Dominic Cleal wrote: > On 22/04/13 13:33, Israel Calvete wrote:


Dominic Cleal
Red Hat Engineering


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.