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": 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,
  "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,
  "compute_resource_id": null,
  "compute_resource_name": null,
  "compute_profile_id": null,
  "compute_profile_name": null,
  "capabilities": [
    "build"
  ],
  "provision_method": "build",
  "certname": "host418",
  "image_id": null,
  "image_name": null,
  "created_at": "2023-08-23 20:07:41 UTC",
  "updated_at": "2023-08-23 20:07:41 UTC",
  "last_compile": null,
  "global_status": 0,
  "global_status_label": "OK",
  "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",
  "subscription_status": 0,
  "subscription_status_label": "Fully entitled",
  "purpose_sla_status": 0,
  "purpose_sla_status_label": "Unknown",
  "purpose_role_status": 0,
  "purpose_role_status_label": "Unknown",
  "purpose_usage_status": 0,
  "purpose_usage_status_label": "Unknown",
  "purpose_addons_status": 0,
  "purpose_addons_status_label": "Unknown",
  "purpose_status": 0,
  "purpose_status_label": "Unknown",
  "name": "host418",
  "id": 980191342,
  "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,
  "compute_resource_provider": null,
  "hostgroup_name": null,
  "hostgroup_title": null,
  "parameters": [],
  "all_parameters": [
    {
      "priority": null,
      "created_at": "2023-08-23 19:55:45 UTC",
      "updated_at": "2023-08-23 19:55:45 UTC",
      "id": 513706444,
      "name": "loc_param",
      "parameter_type": "string",
      "associated_type": "location",
      "hidden_value?": false,
      "value": "abc"
    },
    {
      "priority": null,
      "created_at": "2023-08-23 19:55:45 UTC",
      "updated_at": "2023-08-23 19:55:45 UTC",
      "id": 32400255,
      "name": "org_param",
      "parameter_type": "string",
      "associated_type": "organization",
      "hidden_value?": false,
      "value": "xyz"
    },
    {
      "priority": null,
      "created_at": "2023-08-23 19:55:45 UTC",
      "updated_at": "2023-08-23 19:55:45 UTC",
      "id": 636252244,
      "name": "test",
      "parameter_type": "string",
      "associated_type": "global",
      "hidden_value?": false,
      "value": "myvalue"
    }
  ],
  "subscription_global_status": 0,
  "subscription_facet_attributes": {
    "host_type": null,
    "dmi_uuid": null,
    "id": 980191275,
    "uuid": "uuid-324-206",
    "last_checkin": null,
    "service_level": null,
    "release_version": null,
    "autoheal": false,
    "registered_at": "2023-08-23 19:53:08 UTC",
    "registered_through": null,
    "purpose_role": null,
    "purpose_usage": null,
    "hypervisor": false,
    "user": null,
    "purpose_addons": [],
    "virtual_host": null,
    "virtual_guests": [],
    "installed_products": [],
    "activation_keys": [],
    "compliance_reasons": []
  },
  "host_collections": [],
  "interfaces": [
    {
      "subnet_id": null,
      "subnet_name": null,
      "subnet6_id": null,
      "subnet6_name": null,
      "domain_id": null,
      "domain_name": null,
      "created_at": "2023-08-23 20:07:41 UTC",
      "updated_at": "2023-08-23 20:07:41 UTC",
      "managed": true,
      "identifier": null,
      "id": 407,
      "name": "host418",
      "ip": null,
      "ip6": null,
      "mac": null,
      "mtu": null,
      "fqdn": "host418",
      "primary": true,
      "provision": true,
      "type": "interface",
      "virtual": false
    }
  ],
  "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
  }
}

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.