2.32.13. hammer host list

ホストを一覧表示します。

Usage:
    hammer host list [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment-id instead)
 --fields FIELDS                               Show specified fileds or predefined filed sets only. (See below)
                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                               JSON is acceptable and preferred way for complex parameters
 --hostgroup HOSTGROUP_NAME                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --location LOCATION_NAME                      Location name
 --location-id LOCATION_ID
 --location-title LOCATION_TITLE               Location title
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Organization name
 --organization-id ORGANIZATION_ID             Organization ID
 --organization-title ORGANIZATION_TITLE       Organization title
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --search SEARCH                               Filter results
 --thin THIN                                   Only list ID and name of hosts
                                               One of true/false, yes/no, 1/0.
 -h, --help                                    Print help

Predefined field sets:
  -----------------------|-----|---------|-----
  FIELDS                 | ALL | DEFAULT | THIN
  -----------------------|-----|---------|-----
  Id                     | x   | x       | x
  Name                   | x   | x       | x
  Operating System       | x   | x       |
  Host Group             | x   | x       |
  IP                     | x   | x       |
  MAC                    | x   | x       |
  Global Status          | x   | x       |
  Organization           | x   |         |
  Location               | x   |         |
  Additional Information | x   |         |
  Content View           | x   | x       |
  Lifecycle Environment  | x   | x       |
  Security               | x   |         |
  Bugfix                 | x   |         |
  Enhancement            | x   |         |
  -----------------------|-----|---------|-----

Search / Order fields:
  activation_key            string
  activation_key_id         string
  addon                     string
  addons_status             Values: mismatched, matched, not_specified
  ansible_role              string
  applicable_errata         string
  applicable_rpms           string
  architecture              string
  autoheal                  boolean
  boot_time
  build                     Values: true, false
  class                     string
  comment                   text
  compute_resource          string
  compute_resource_id       integer
  config_group              string
  content_source            string
  content_view              string
  content_view_id           integer
  created_at                datetime
  domain                    string
  domain_id                 integer
  environment               string
  errata_status             Values: security_needed, errata_needed, updated, unknown
  execution_status          Values: ok, error
  facts                     string
  global_status             Values: ok, warning, error
  has_ip                    string
  has_mac                   string
  hostgroup                 string
  hostgroup_fullname        string
  hostgroup_id              integer
  hostgroup_name            string
  hostgroup_title           string
  hypervisor                Values: true, false
  hypervisor_host           string
  image                     string
  installable_errata        string
  installed_at              datetime
  ip                        string
  job_invocation.id         string
  job_invocation.result     Values: cancelled, failed, pending, success
  last_checkin              datetime
  last_report               datetime
  lifecycle_environment     string
  lifecycle_environment_id  integer
  location                  string
  location_id               integer
  mac                       string
  managed                   Values: 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
  purpose_status            Values: mismatched, matched, not_specified
  realm                     string
  realm_id                  integer
  registered_at             datetime
  registered_through        string
  release_version           string
  role                      text
  role_status               Values: mismatched, matched, not_specified
  service_level             string
  sla_status                Values: mismatched, matched, not_specified
  smart_proxy               string
  status.applied            integer
  status.enabled            Values: true, false
  status.failed             integer
  status.failed_restarts    integer
  status.interesting        Values: true, false
  status.pending            integer
  status.restarted          integer
  status.skipped            integer
  subnet                    string
  subnet.name               text
  subnet6                   string
  subnet6.name              text
  subscription_id           string
  subscription_name         string
  subscription_status       Values: valid, partial, invalid, unknown, unsubscribed_hypervisor
  subscription_uuid         string
  trace_status              Values: reboot_needed, process_restart_needed, updated
  upgradable_rpms           string
  usage                     text
  usage_status              Values: mismatched, matched, not_specified
  user.firstname            string
  user.lastname             string
  user.login                string
  user.mail                 string
  usergroup                 string
  usergroup.name            string
  uuid                      string