2.22. hammer discovery-rule

検出されたルールを操作します。

Usage:
    hammer discovery-rule [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a discovery rule
 delete, destroy               Delete a rule
 info, show                    Show a discovery rule
 list, index                   List all discovery rules
 update                        Update a rule

Options:
 -h, --help                    Print help

2.22.1. hammer discovery-rule create

検出ルールを作成します。

Usage:
    hammer discovery-rule create [OPTIONS]

Options:
 --enabled ENABLED                         Flag is used for temporary shutdown of rules
                                           One of true/false, yes/no, 1/0.
 --hostgroup HOSTGROUP_NAME                Hostgroup name
 --hostgroup-id HOSTGROUP_ID               The hostgroup that is used to auto provision a host
 --hostgroup-title HOSTGROUP_TITLE         Hostgroup title
 --hostname HOSTNAME                       Defines a pattern to assign human-readable hostnames to the matching hosts
 --hosts-limit HOSTS_LIMIT
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-ids LOCATION_IDS               Location ID for provisioned hosts
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --location-title LOCATION_TITLE           Set the current location context for the request
 --location-titles LOCATION_TITLES         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --locations LOCATION_NAMES                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --max-count MAX_COUNT                     Enables to limit maximum amount of provisioned hosts per rule
 --name NAME                               Represents rule name shown to the users
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS       Organization ID for provisioned hosts
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --organization-titles ORGANIZATION_TITLES Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --organizations ORGANIZATION_NAMES        Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --priority PRIORITY                       Puts the rules in order, low numbers go first. Must be greater then zero
 --search SEARCH                           Query to match discovered hosts for the particular rule
 -h, --help                                Print help