Foreman API "id" parameters

Given this in the API V2 documentation:

GET /api/hosts/:host_id/reports/last

so, I created a query that substituted

:1

didn't work.

1
didn't work

How should the :host_id parameter be passed?

> Given this in the API V2 documentation:
>
> GET /api/hosts/:host_id/reports/last
>
> so, I created a query that substituted
>
> :1
>
> didn't work.
>
> 1
> didn't work
>
> How should the :host_id parameter be passed?

Usually the host name is the easiest id for a host, there's also an internal id
number but I think you have to do a request through the api to get it

··· On 12/01 20:24, Peter Berghold wrote:


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.
For more options, visit https://groups.google.com/d/optout.


David Caro

Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D

Tel.: +420 532 294 605
Email: dcaro@redhat.com
IRC: dcaro|dcaroest@{freenode|oftc|redhat}
Web: www.redhat.com
RHT Global #: 82-62605