Examples

GET /api/hosts/post_index
200
{
  "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": 1073012914,
  "operatingsystem_name": "operatingsystem58 58",
  "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": "",
  "disk": null,
  "initiated_at": null,
  "installed_at": null,
  "model_id": null,
  "hostgroup_id": null,
  "owner_id": 135138680,
  "owner_name": "Admin User",
  "owner_type": "User",
  "creator_id": 135138680,
  "creator": "Admin User",
  "enabled": true,
  "managed": false,
  "use_image": null,
  "image_file": "",
  "uuid": null,
  "rebuild_requires_poweroff": false,
  "compute_resource_id": null,
  "compute_resource_name": null,
  "compute_profile_id": null,
  "compute_profile_name": null,
  "capabilities": [
    "build"
  ],
  "provision_method": "build",
  "certname": "host314",
  "image_id": null,
  "image_name": null,
  "created_at": "2026-11-03 08:09:26 UTC",
  "updated_at": "2026-11-03 08:09:26 UTC",
  "last_compile": null,
  "global_status_label": "OK",
  "global_status_fulltext": [],
  "bmc_available": false,
  "organization_id": 447626438,
  "organization_name": "Organization 1",
  "location_id": 255093256,
  "location_name": "Location 1",
  "puppet_status": 0,
  "model_name": null,
  "build_status": 0,
  "build_status_label": "Installed",
  "execution_status": 2,
  "execution_status_label": "Unknown execution status",
  "name": "host314",
  "id": 980191218,
  "display_name": "host314",
  "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,
  "cockpit_url": null,
  "global_status": 0,
  "operatingsystem_icon": "/assets/icons16x16/stub/black-x-885521a80c50a4794a7f635601a00d7b1d8b379097e5e0840fbdc40253c74548.png",
  "compute_resource_provider": null,
  "hostgroup_name": null,
  "hostgroup_title": null,
  "parameters": [],
  "all_parameters": [
    {
      "priority": null,
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "id": 513706444,
      "name": "loc_param",
      "parameter_type": "string",
      "associated_type": "location",
      "hidden_value?": false,
      "value": "abc"
    },
    {
      "priority": null,
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "id": 32400255,
      "name": "org_param",
      "parameter_type": "string",
      "associated_type": "organization",
      "hidden_value?": false,
      "value": "xyz"
    },
    {
      "priority": null,
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "id": 636252244,
      "name": "test",
      "parameter_type": "string",
      "associated_type": "global",
      "hidden_value?": false,
      "value": "myvalue"
    }
  ],
  "content_facet_attributes": {
    "id": 906413899,
    "uuid": null,
    "content_source_id": null,
    "content_source_name": null,
    "kickstart_repository_id": null,
    "kickstart_repository_name": null,
    "errata_counts": {
      "security": 0,
      "bugfix": 0,
      "enhancement": 0,
      "total": 0,
      "applicable": {
        "bugfix": 0,
        "security": 0,
        "enhancement": 0,
        "total": 0
      }
    },
    "applicable_deb_count": 0,
    "upgradable_deb_count": 0,
    "applicable_package_count": 0,
    "upgradable_package_count": 0,
    "applicable_module_stream_count": 0,
    "upgradable_module_stream_count": 0,
    "content_view_environment_labels": "library_default_view_library",
    "bootc_booted_image": null,
    "bootc_booted_digest": null,
    "bootc_available_image": null,
    "bootc_available_digest": null,
    "bootc_staged_image": null,
    "bootc_staged_digest": null,
    "bootc_rollback_image": null,
    "bootc_rollback_digest": null,
    "content_view_environments": [
      {
        "content_view": {
          "id": 30237652,
          "name": "ACME Default ContentView",
          "label": "org_default_label",
          "composite": false,
          "rolling": false,
          "content_view_version": "1.0",
          "content_view_version_id": 840492357,
          "content_view_version_latest": true,
          "content_view_default": true
        },
        "lifecycle_environment": {
          "id": 562075838,
          "name": "Library",
          "label": "library_label",
          "lifecycle_environment_library": true
        },
        "label": "library_default_view_library",
        "id": 361865081
      }
    ],
    "content_source": null,
    "kickstart_repository": null,
    "multi_content_view_environment": false,
    "content_view_environments_all_default_or_rolling": true,
    "allow_multiple_content_views": true,
    "content_view": {
      "id": 30237652,
      "name": "ACME Default ContentView",
      "composite": false,
      "rolling": false
    },
    "lifecycle_environment": {
      "id": 562075838,
      "name": "Library"
    },
    "permissions": {
      "view_lifecycle_environments": true,
      "view_content_views": true,
      "promote_or_remove_content_views_to_environments": true,
      "view_host_collections": true,
      "create_job_invocations": true,
      "view_activation_keys": true,
      "view_products": true,
      "create_bookmarks": true,
      "view_smart_proxies": true,
      "view_capsule_content": true
    },
    "content_view_version": "1.0",
    "content_view_version_id": 840492357,
    "content_view_version_latest": true,
    "content_view_default?": true,
    "lifecycle_environment_library?": true,
    "katello_tracer_installed": false,
    "katello_tracer_rpm_available": false,
    "katello_tracer_deb_available": false
  },
  "host_collections": [],
  "content_view": {
    "id": 30237652,
    "name": "ACME Default ContentView",
    "composite": false,
    "rolling": false
  },
  "lifecycle_environment": {
    "id": 562075838,
    "name": "Library"
  },
  "operatingsystem_family": null,
  "operatingsystem_major": "58",
  "interfaces": [
    {
      "subnet_id": null,
      "subnet_name": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "domain_id": null,
      "domain_name": null,
      "host_id": 980191218,
      "host_name": "host314",
      "created_at": "2026-11-03 08:09:26 UTC",
      "updated_at": "2026-11-03 08:09:26 UTC",
      "managed": true,
      "identifier": null,
      "id": 335,
      "name": "host314",
      "ip": null,
      "ip6": null,
      "mac": null,
      "mtu": null,
      "fqdn": "host314",
      "primary": true,
      "provision": true,
      "type": "interface",
      "execution": true,
      "virtual": false
    }
  ],
  "facts": {},
  "permissions": {
    "view_hosts": true,
    "create_hosts": true,
    "edit_hosts": true,
    "destroy_hosts": true,
    "build_hosts": true,
    "power_hosts": true,
    "console_hosts": true,
    "ipmi_boot_hosts": true,
    "cockpit_hosts": true
  }
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.

show_hidden_parameters
optional

Display hidden parameter values

Validations:

  • Must be one of: true, false, 1, 0.