2.36. Hammer host-collection

操作主机集合

Usage:
    hammer host-collection [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 add-host                      Add host to the host collection
 copy                          Copy a host collection
 create                        Create a host collection
 delete, destroy               Destroy a host collection
 erratum                       Manipulate errata for a host collection
 hosts                         List all hosts
 info, show                    Show a host collection
 list, index                   List host collections
 package                       Manipulate packages for a host collection
 package-group                 Manipulate package-groups for a host collection
 remove-host                   Remove hosts from the host collection
 update                        Update a host collection

Options:
 -h, --help                    Print help

2.36.1. Hammer host-collection add-host

将主机添加到主机集合

Usage:
    hammer host-collection add-host [OPTIONS]

Options:
 --host-ids LIST               Array of host ids
 --hosts LIST
 --id NUMBER                   Id of the host collection
 --name VALUE                  Host collection name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.2. Hammer host-collection 复制

复制主机集合

Usage:
    hammer host-collection copy [OPTIONS]

Options:
 --id NUMBER                   ID of the host collection
 --name VALUE                  New host collection name
 --new-name VALUE              New host collection name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.3. Hammer host-collection create

创建主机集合

Usage:
    hammer host-collection create [OPTIONS]

Options:
 --description VALUE
 --host-ids LIST               List of host ids to replace the hosts in host collection
 --hosts LIST
 --max-hosts NUMBER            Maximum number of hosts in the host collection
 --name VALUE                  Host Collection name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization identifier
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --unlimited-hosts             Set hosts max to unlimited
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.4. Hammer host-collection delete

销毁主机集合

Usage:
    hammer host-collection <delete|destroy> [OPTIONS]

Options:
 --id NUMBER                   Id of the host collection
 --name VALUE                  Host collection name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.5. Hammer host-collection 勘误

操作主机集合的勘误

Usage:
    hammer host-collection erratum [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 install                       Install errata on content hosts contained within a host collection

Options:
 -h, --help                    Print help

2.36.5.1. Hammer host-collection 勘误安装

在主机集合中包含的内容主机上安装勘误

Usage:
    hammer host-collection erratum install [OPTIONS]

Options:
 --errata LIST                 List of Errata to install
 --id VALUE                    Host Collection ID
 --name VALUE                  Host Collection Name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.6. Hammer host-collection 主机

列出所有主机

Usage:
    hammer host-collection hosts [OPTIONS]

Options:
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --hostgroup VALUE             Hostgroup name
 --hostgroup-id VALUE          ID of host group
 --hostgroup-title VALUE       Hostgroup title
 --id VALUE                    Host Collection ID
 --include ENUM                Array of extra information types to include
                               Possible value(s): 'parameters', 'all_parameters'
 --location VALUE              Set the current location context for the request
 --location-id VALUE           ID of location
 --location-title VALUE        Set the current location context for the request
 --name VALUE                  Host Collection Name
 --order VALUE                 Sort and order by a searchable field, e.g. '<field> DESC'
 --organization VALUE          Organization name to search by
 --organization-id VALUE       ID of organization
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --page NUMBER                 Page number, starting at 1
 --per-page VALUE              Number of results per page to return, 'all' to return all results
 --search VALUE                Filter results
 --thin BOOLEAN                Only list ID and name of hosts
 -h, --help                    Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Security    | x   |         |
  Bugfix      | x   |         |
  Enhancement | x   |         |
  ------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

Search / Order fields:
  activation_key                       string
  activation_key_id                    string
  addon                                string
  addons_status                        Values: mismatched, matched, not_specified
  ansible_role                         string
  applicable_debs                      string
  applicable_errata                    string
  applicable_errata_issued             date
  applicable_rpms                      string
  architecture                         string
  autoheal                             boolean
  boot_time
  build                                Values: true, false
  build_status                         Values: built, pending, token_expired, build_failed
  comment                              text
  compute_resource                     string
  compute_resource_id                  integer
  content_source                       string
  content_view                         string
  content_view_id                      integer
  created_at                           datetime
  cve_id                               integer
  domain                               string
  domain_id                            integer
  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                           boolean
  hypervisor_host                      string
  id                                   integer
  image                                string
  infrastructure_facet.foreman
  infrastructure_facet.smart_proxy_id
  insights_recommendations_count       integer
  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
  reported.boot_time
  reported.cores
  reported.disks_total
  reported.ram
  reported.sockets
  reported.virtual                     Values: true, false
  repository                           string
  repository_content_label             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, disabled, unsubscribed_hypervisor
  subscription_uuid                    string
  trace_status                         Values: reboot_needed, process_restart_needed, updated
  upgradable_debs                      string
  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

2.36.7. Hammer host-collection 信息

显示主机集合

Usage:
    hammer host-collection <info|show> [OPTIONS]

Options:
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --id NUMBER                   Id of the host collection
 --name VALUE                  Host collection name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization identifier
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Limit       | x   | x       |
  Description | x   | x       |
  Total hosts | x   | x       |
  ------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.8. Hammer host-collection 列表

列出主机集合

Usage:
    hammer host-collection <list|index> [OPTIONS]

Options:
 --activation-key VALUE        Activation key name to search by
 --activation-key-id VALUE     Activation key identifier
 --available-for VALUE         Interpret specified object to return only Host Collections that can be
                               associated with specified object. The value 'host' is supported.
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --full-result BOOLEAN         Whether or not to show all results
 --host VALUE                  Host name
 --host-id NUMBER              Filter products by host id
 --name VALUE                  Host collection name to filter by
 --order VALUE                 Sort field and order, eg. 'id DESC'
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization identifier
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --page NUMBER                 Page number, starting at 1
 --per-page NUMBER             Number of results per page to return
 --search VALUE                Search string
 -h, --help                    Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Limit       | x   | x       |
  Description | x   | x       |
  ------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

Search / Order fields:
  host                string
  name                string
  organization_id     integer

2.36.9. Hammer host-collection 软件包

操作主机集合的软件包

Usage:
    hammer host-collection package [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 install                       Install packages on content hosts contained within a host collection
 remove                        Remove packages on content hosts contained within a host collection
 update                        Update packages on content hosts contained within a host collection

Options:
 -h, --help                    Print help

2.36.9.1. Hammer host-collection 软件包安装

在主机集合中包含的内容主机上安装软件包

Usage:
    hammer host-collection package install [OPTIONS]

Options:
 --id VALUE                    Host Collection ID
 --name VALUE                  Host Collection Name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --packages LIST               Comma-separated list of packages to install
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.9.2. Hammer host-collection 软件包删除

在主机集合中包含的内容主机上删除软件包

Usage:
    hammer host-collection package remove [OPTIONS]

Options:
 --id VALUE                    Host Collection ID
 --name VALUE                  Host Collection Name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --packages LIST               Comma-separated list of packages to install
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.9.3. Hammer host-collection 软件包更新

更新主机集合中包含的内容主机上的软件包

Usage:
    hammer host-collection package update [OPTIONS]

Options:
 --id VALUE                    Host Collection ID
 --name VALUE                  Host Collection Name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --packages LIST               Comma-separated list of packages to install
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.10. Hammer host-collection package-group

为主机集合操作软件包组

Usage:
    hammer host-collection package-group [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 install                       Install package-groups on content hosts contained within a host collection
 remove                        Remove package-groups on content hosts contained within a host collection
 update                        Update package-groups on content hosts contained within a host collection

Options:
 -h, --help                    Print help

2.36.10.1. Hammer host-collection package-group install

在主机集合中包含的内容主机上安装 package-groups

Usage:
    hammer host-collection package-group install [OPTIONS]

Options:
 --id VALUE                    Host Collection ID
 --name VALUE                  Host Collection Name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --package-groups LIST         Comma-separated list of package-groups to install
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.10.2. Hammer host-collection package-group remove

删除主机集合中包含的内容主机上的软件包组

Usage:
    hammer host-collection package-group remove [OPTIONS]

Options:
 --id VALUE                    Host Collection ID
 --name VALUE                  Host Collection Name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --package-groups LIST         Comma-separated list of package-groups to install
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.10.3. Hammer host-collection package-group 更新

更新主机集合中包含的内容主机上的软件包组

Usage:
    hammer host-collection package-group update [OPTIONS]

Options:
 --id VALUE                    Host Collection ID
 --name VALUE                  Host Collection Name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --package-groups LIST         Comma-separated list of package-groups to install
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.11. Hammer host-collection remove-host

从主机集合中删除主机

Usage:
    hammer host-collection remove-host [OPTIONS]

Options:
 --host-ids LIST               Array of host ids
 --hosts LIST
 --id NUMBER                   Id of the host collection
 --name VALUE                  Host collection name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.36.12. Hammer host-collection 更新

更新主机集合

Usage:
    hammer host-collection update [OPTIONS]

Options:
 --description VALUE
 --host-ids LIST               List of host ids to replace the hosts in host collection
 --hosts LIST
 --id NUMBER                   Id of the host collection
 --max-hosts NUMBER            Maximum number of hosts in the host collection
 --name VALUE                  Host Collection name
 --new-name VALUE              Host Collection name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --unlimited-hosts             Set hosts max to unlimited
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string