list_hosts
Retrieve host records from Foreman with optional search filters and field selection, narrowing results by location, OS, or other attributes.
Instructions
List hosts from Foreman with optional search filter and field filtering.
CONTEXT OPTIMIZATION: Default per_page=10 to prevent overflow. Use search filters like 'location ~ SYD03' or 'os ~ Windows' to narrow results. Total hosts available: ~1000+. Always use search parameter for large inventories.
Field filtering: By default returns essential fields only (id, name, ip, os, location, status). Use include_fields="all" for complete data, or specify comma-separated fields like "id,name,ip,mac".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| search | No | ||
| per_page | No | ||
| include_fields | No |