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, "environment_id": null, "environment_name": 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": "host107", "image_id": null, "image_name": null, "created_at": "2020-11-04 14:59:35 UTC", "updated_at": "2020-11-04 14:59:35 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "name": "host107", "id": 69, "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, "registration_token": "eyJhbGciOiJIUzI1NiJ9.eyJob3N0X2lkIjo2OSwiaWF0IjoxNjA0NTAxOTc2LCJqdGkiOiIzODQyYjZlMjQwOTg4NDBhOTU2ZGI4MjAyMTVmZGQzYzA5MTk2NWExYWY4YjU5ZmFkMzMzZGVkMDFmNTc5YjFhIiwiZXhwIjoxNjA0NTg4Mzc2LCJuYmYiOjE2MDQ0OTgzNzZ9.FIR22Uxuq4Q_VhXVsarxS_NUP0-jPJK0YjkY5E20gPk", "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "environment_id": null, "environment_name": 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": "host108", "image_id": null, "image_name": null, "created_at": "2020-11-04 14:59:35 UTC", "updated_at": "2020-11-04 14:59:35 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "name": "host108", "id": 70, "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, "registration_token": "eyJhbGciOiJIUzI1NiJ9.eyJob3N0X2lkIjo3MCwiaWF0IjoxNjA0NTAxOTc2LCJqdGkiOiIyZWU2YTA0N2Y4NzExZGE1OTdjYWZmYWIxMmY3YjQ0Mzk3MjhiMDQ4N2ZiNDNlYTk1M2FkZGFmMjY1NzBmMmQxIiwiZXhwIjoxNjA0NTg4Mzc2LCJuYmYiOjE2MDQ0OTgzNzZ9.hTy94Cg8-8-T0b5zocWYPXujHRRcXfxy8obgMtkD1pQ", "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "environment_id": null, "environment_name": 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": "host109", "image_id": null, "image_name": null, "created_at": "2020-11-04 14:59:35 UTC", "updated_at": "2020-11-04 14:59:35 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "name": "host109", "id": 71, "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, "registration_token": "eyJhbGciOiJIUzI1NiJ9.eyJob3N0X2lkIjo3MSwiaWF0IjoxNjA0NTAxOTc2LCJqdGkiOiIxYjlkODRjMDIwOGVhZGY1NWRmZjAyNzljNWQ1NWJhOGZiOTY2MTc5NjMzYzJmNzI3ZmE0ZjljY2IwY2FhY2YyIiwiZXhwIjoxNjA0NTg4Mzc2LCJuYmYiOjE2MDQ0OTgzNzZ9.KP8Dzv15ZF8ISWJ6RA8GlN86GH7qgAmkhH8PQGsAHD0", "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "environment_id": null, "environment_name": 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": "host110", "image_id": null, "image_name": null, "created_at": "2020-11-04 14:59:35 UTC", "updated_at": "2020-11-04 14:59:35 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "name": "host110", "id": 72, "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, "registration_token": "eyJhbGciOiJIUzI1NiJ9.eyJob3N0X2lkIjo3MiwiaWF0IjoxNjA0NTAxOTc2LCJqdGkiOiJmYzg3YjUxYWViYTZiZDA3NjkxNmQ2NmM0YzZiMjMzOTI5NWU4YjRhN2JmNzkxYTUwMDc3Y2M4NWNkYThmZjdmIiwiZXhwIjoxNjA0NTg4Mzc2LCJuYmYiOjE2MDQ0OTgzNzZ9.CXa-zP2R1hoewlaScRrE7tF5pll4qPHR_87OB2zTni0", "hostgroup_name": null, "hostgroup_title": null }, { "ip": null, "ip6": null, "environment_id": null, "environment_name": 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": "host111", "image_id": null, "image_name": null, "created_at": "2020-11-04 14:59:36 UTC", "updated_at": "2020-11-04 14:59:36 UTC", "last_compile": null, "global_status": 0, "global_status_label": "OK", "uptime_seconds": null, "organization_id": 114267492, "organization_name": "Empty Organization", "location_id": 255093256, "location_name": "Location 1", "puppet_status": 0, "model_name": null, "name": "host111", "id": 73, "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, "registration_token": "eyJhbGciOiJIUzI1NiJ9.eyJob3N0X2lkIjo3MywiaWF0IjoxNjA0NTAxOTc2LCJqdGkiOiJhMjEzMjMxZDExMjVmM2ZjYTBkYzBiMTNiZWRjZDAwOWViNGFhZjczMjE3YWMzZDJjNGY4NGZjZWRlMWU0MDE2IiwiZXhwIjoxNjA0NTg4Mzc2LCJuYmYiOjE2MDQ0OTgzNzZ9.ZNduddriMf9Oneh9-XRJXnIzwYihSjuo5i0y4opztBI", "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:
|
environment_id optional |
ID of environment Validations:
|
include optional |
Array of extra information types to include Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort field and order, eg. ‘id 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 | |
class | string | |
comment | text | |
compute_resource | string | |
compute_resource_id | integer | |
config_group | string | |
created_at | datetime | |
domain | string | |
domain_id | integer | |
environment | string | |
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 | |
image | string | |
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 | |
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 |