GET /api/hosts 200 { "total": 11, "subtotal": 11, "page": 1, "per_page": 5, "search": null, "sort": { "by": null, "order": null }, "results": [ { "ip": null, "ip6": null, "last_report": null, "mac": null, "realm_id": null, "realm_name": null, "sp_mac": null, "sp_ip": null, "sp_name": null, "domain_id": null, "domain_name": null, "architecture_id": null, "architecture_name": null, "operatingsystem_id": null, "operatingsystem_name": null, "subnet_id": null, "subnet_name": null, "subnet6_id": null, "subnet6_name": null, "sp_subnet_id": null, "ptable_id": null, "ptable_name": null, "medium_id": null, "medium_name": null, "pxe_loader": null, "build": false, "comment": null, "disk": null, "installed_at": null, "model_id": null, "hostgroup_id": null, "owner_id": 135138680, "owner_name": "Admin User", "owner_type": "User", "enabled": true, "managed": false, "use_image": null, "image_file": "", "uuid": null, "compute_resource_id": null, "compute_resource_name": null, "compute_profile_id": null, "compute_profile_name": null, "capabilities": [ "build" ], "provision_method": "build", "certname": "host400", "image_id": null, "image_name": null, "created_at": "2022-03-29 08:29:02 UTC", "updated_at": "2022-03-29 08:29:02 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "bmc_available": false, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "build_status": 0, "build_status_label": "Installed", "name": "host400", "id": 163, "puppet_proxy_id": null, "puppet_proxy_name": null, "puppet_ca_proxy_id": null, "puppet_ca_proxy_name": null, "puppet_proxy": null, "puppet_ca_proxy": null, "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "last_report": null, "mac": null, "realm_id": null, "realm_name": null, "sp_mac": null, "sp_ip": null, "sp_name": null, "domain_id": null, "domain_name": null, "architecture_id": null, "architecture_name": null, "operatingsystem_id": null, "operatingsystem_name": null, "subnet_id": null, "subnet_name": null, "subnet6_id": null, "subnet6_name": null, "sp_subnet_id": null, "ptable_id": null, "ptable_name": null, "medium_id": null, "medium_name": null, "pxe_loader": null, "build": false, "comment": null, "disk": null, "installed_at": null, "model_id": null, "hostgroup_id": null, "owner_id": 135138680, "owner_name": "Admin User", "owner_type": "User", "enabled": true, "managed": false, "use_image": null, "image_file": "", "uuid": null, "compute_resource_id": null, "compute_resource_name": null, "compute_profile_id": null, "compute_profile_name": null, "capabilities": [ "build" ], "provision_method": "build", "certname": "host401", "image_id": null, "image_name": null, "created_at": "2022-03-29 08:29:02 UTC", "updated_at": "2022-03-29 08:29:02 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "bmc_available": false, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "build_status": 0, "build_status_label": "Installed", "name": "host401", "id": 164, "puppet_proxy_id": null, "puppet_proxy_name": null, "puppet_ca_proxy_id": null, "puppet_ca_proxy_name": null, "puppet_proxy": null, "puppet_ca_proxy": null, "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "last_report": null, "mac": null, "realm_id": null, "realm_name": null, "sp_mac": null, "sp_ip": null, "sp_name": null, "domain_id": null, "domain_name": null, "architecture_id": null, "architecture_name": null, "operatingsystem_id": null, "operatingsystem_name": null, "subnet_id": null, "subnet_name": null, "subnet6_id": null, "subnet6_name": null, "sp_subnet_id": null, "ptable_id": null, "ptable_name": null, "medium_id": null, "medium_name": null, "pxe_loader": null, "build": false, "comment": null, "disk": null, "installed_at": null, "model_id": null, "hostgroup_id": null, "owner_id": 135138680, "owner_name": "Admin User", "owner_type": "User", "enabled": true, "managed": false, "use_image": null, "image_file": "", "uuid": null, "compute_resource_id": null, "compute_resource_name": null, "compute_profile_id": null, "compute_profile_name": null, "capabilities": [ "build" ], "provision_method": "build", "certname": "host402", "image_id": null, "image_name": null, "created_at": "2022-03-29 08:29:02 UTC", "updated_at": "2022-03-29 08:29:02 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "bmc_available": false, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "build_status": 0, "build_status_label": "Installed", "name": "host402", "id": 165, "puppet_proxy_id": null, "puppet_proxy_name": null, "puppet_ca_proxy_id": null, "puppet_ca_proxy_name": null, "puppet_proxy": null, "puppet_ca_proxy": null, "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "last_report": null, "mac": null, "realm_id": null, "realm_name": null, "sp_mac": null, "sp_ip": null, "sp_name": null, "domain_id": null, "domain_name": null, "architecture_id": null, "architecture_name": null, "operatingsystem_id": null, "operatingsystem_name": null, "subnet_id": null, "subnet_name": null, "subnet6_id": null, "subnet6_name": null, "sp_subnet_id": null, "ptable_id": null, "ptable_name": null, "medium_id": null, "medium_name": null, "pxe_loader": null, "build": false, "comment": null, "disk": null, "installed_at": null, "model_id": null, "hostgroup_id": null, "owner_id": 135138680, "owner_name": "Admin User", "owner_type": "User", "enabled": true, "managed": false, "use_image": null, "image_file": "", "uuid": null, "compute_resource_id": null, "compute_resource_name": null, "compute_profile_id": null, "compute_profile_name": null, "capabilities": [ "build" ], "provision_method": "build", "certname": "host403", "image_id": null, "image_name": null, "created_at": "2022-03-29 08:29:02 UTC", "updated_at": "2022-03-29 08:29:02 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "bmc_available": false, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "build_status": 0, "build_status_label": "Installed", "name": "host403", "id": 166, "puppet_proxy_id": null, "puppet_proxy_name": null, "puppet_ca_proxy_id": null, "puppet_ca_proxy_name": null, "puppet_proxy": null, "puppet_ca_proxy": null, "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "last_report": null, "mac": null, "realm_id": null, "realm_name": null, "sp_mac": null, "sp_ip": null, "sp_name": null, "domain_id": null, "domain_name": null, "architecture_id": null, "architecture_name": null, "operatingsystem_id": null, "operatingsystem_name": null, "subnet_id": null, "subnet_name": null, "subnet6_id": null, "subnet6_name": null, "sp_subnet_id": null, "ptable_id": null, "ptable_name": null, "medium_id": null, "medium_name": null, "pxe_loader": null, "build": false, "comment": null, "disk": null, "installed_at": null, "model_id": null, "hostgroup_id": null, "owner_id": 135138680, "owner_name": "Admin User", "owner_type": "User", "enabled": true, "managed": false, "use_image": null, "image_file": "", "uuid": null, "compute_resource_id": null, "compute_resource_name": null, "compute_profile_id": null, "compute_profile_name": null, "capabilities": [ "build" ], "provision_method": "build", "certname": "host404", "image_id": null, "image_name": null, "created_at": "2022-03-29 08:29:02 UTC", "updated_at": "2022-03-29 08:29:02 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "bmc_available": false, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "build_status": 0, "build_status_label": "Installed", "name": "host404", "id": 167, "puppet_proxy_id": null, "puppet_proxy_name": null, "puppet_ca_proxy_id": null, "puppet_ca_proxy_name": null, "puppet_proxy": null, "puppet_ca_proxy": null, "hostgroup_name": null, "hostgroup_title": null } ] }
Param name | Description |
---|---|
thin optional |
Only list ID and name of hosts Validations:
|
hostgroup_id optional |
ID of host group Validations:
|
location_id optional |
ID of location Validations:
|
organization_id optional |
ID of organization Validations:
|
include optional |
Array of extra information types to include Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort and order by a searchable field, e.g. ‘ Maruku could not parse this XML/HTML: <field> DESC' Validations:
|
page optional |
Page number, starting at 1 Validations:
|
per_page optional |
Number of results per page to return, ‘all’ to return all results Validations:
|
Field name | Type | Possible values |
---|---|---|
architecture | string | |
boot_time | datetime | |
build | true, false | |
build_status | built, pending, token_expired, build_failed | |
comment | text | |
compute_resource | string | |
compute_resource_id | integer | |
created_at | datetime | |
domain | string | |
domain_id | integer | |
facts | string | |
global_status | ok, warning, error | |
has_ip | string | |
has_mac | string | |
hostgroup | string | |
hostgroup_fullname | string | |
hostgroup_id | integer | |
hostgroup_name | string | |
hostgroup_title | string | |
id | integer | |
image | string | |
infrastructure_facet.foreman | boolean | |
infrastructure_facet.smart_proxy_id | integer | |
installed_at | datetime | |
ip | string | |
last_report | datetime | |
location | string | |
location_id | integer | |
mac | string | |
managed | true, false | |
model | string | |
name | string | |
organization | string | |
organization_id | integer | |
origin | string | |
os | string | |
os_description | string | |
os_id | integer | |
os_major | string | |
os_minor | string | |
os_title | string | |
owner | string | |
owner_id | integer | |
owner_type | string | |
params | string | |
params_name | string | |
parent_hostgroup | string | |
puppet_ca | string | |
puppet_proxy_id | integer | |
puppetmaster | string | |
realm | string | |
realm_id | integer | |
reported.boot_time | datetime | |
reported.cores | integer | |
reported.disks_total | integer | |
reported.ram | integer | |
reported.sockets | integer | |
reported.virtual | true, false | |
smart_proxy | string | |
status.applied | integer | |
status.enabled | true, false | |
status.failed | integer | |
status.failed_restarts | integer | |
status.interesting | true, false | |
status.pending | integer | |
status.restarted | integer | |
status.skipped | integer | |
subnet | string | |
subnet.name | text | |
subnet6 | string | |
subnet6.name | text | |
user.firstname | string | |
user.lastname | string | |
user.login | string | |
user.mail | string | |
usergroup | string | |
usergroup.name | string | |
uuid | string |