Host Parameters via API

hi all,

I have more than 20 Host Parameters.
When I want access them via API I get only 20 of them, is that limited to 20 ?
if yes how can I change it?

The command:
curl -s -H "Content-Type: application/json, Accept:application/json" -X GET -k -u "username:password" https://test-foreman.service/api/v2/hosts/7/parameters/

Thanks in advance

Hi Neeloj,

API pagination comes to mind.

See: Refactor #29909: Support fetching all records in API - Foreman and Foreman api not showing all facts?.

Best regards

1 Like

Thank you so much @dpenguins , I add ?per_page=10000 and it works :slight_smile:

1 Like