搜索

hammer CLI 指南

download PDF
Red Hat Satellite 6.10

使用 Splunk (Satellite CLI 工具)的指南

Red Hat Satellite Documentation Team

摘要

本文档论述了如何使用hammer CLI 工具配置和管理 Red Hat Satellite。

第 1 章 hammer 简介

hammer 是 Red Hat Satellite 6 提供的强大的命令行工具。您可以使用hammer 通过 CLI 命令或使用 shell 脚本中的自动化来配置和管理 Red Hat Satellite 服务器。hammer 还提供交互式 shell。

hammer 与 Satellite Web UI 相比

与导航 Web UI 相比,使用hammer 可能会导致与 Satellite 服务器的交互更快,因为环境变量和别名等常见 shell 功能位于您的示例中。您还可以将hammer 命令合并到可重复使用的脚本中,以自动执行各种复杂性的任务。hammer 命令的输出可以重定向到其他工具,允许与现有环境集成。您可以在运行 Red Hat Satellite 的基本操作系统中直接发出hammer 命令。

与 Web UI 相比,需要访问 Satellite 服务器的基本操作系统来发出hammer 命令,这可能会限制潜在的用户数量。虽然hammer 和 Web UI 之间的奇偶校验几乎完成,但 Web UI 具有开发优先级,并可专注于新引入的功能。

hammer 与 Satellite API 相比

对于许多任务,hammer 和 Satellite API 都同样适用。hammer 可用作 Satellite API 的人类可读接口,例如,在应用脚本(使用 -d 选项)之前测试对 API 调用的响应(例如 hammer -d 机构列表)。API 中的更改会自动反映在hammer 中,而必须使用 API 的脚本必须手动更新。

在后台,每个hammer 命令首先建立绑定到 API 的绑定,然后发送请求。当按顺序执行大量hammer 命令时,这可能会产生性能影响。相反,直接与 API 通信的脚本仅建立一次绑定。如需更多信息,请参阅 API 指南

1.1. 获得帮助

通过执行以下内容来查看 hammer 选项和子命令的完整列表:

$ hammer --help

使用 --help 检查任何子命令,例如:

$ hammer organization --help

您可以使用 grep 搜索帮助输出,或者将其重定向到文本查看器,例如:

$ hammer | less

1.2. 身份验证

在输入 hammer 命令时,Satellite 用户必须证明其对 Red Hat Satellite 的身份。hammer 命令可以手动运行,也可以自动运行。在这两种情况下,hammer 需要 Satellite 凭据进行身份验证。hammer 身份验证的方法有三种:

  • hammer 身份验证会话
  • 将凭证存储在 hammer 配置文件中
  • 使用每个 hammer 命令提供凭证

在自动运行命令时,建议使用 hammer 配置文件方法。例如,从 cron 作业运行 Satellite Maintenance 命令。在手动运行命令时,红帽建议使用 hammer 身份验证会话,并使用每个命令提供凭证。

1.2.1. hammer 身份验证会话

hammer 身份验证会话是一个缓存,它存储您的凭证,且您必须在会话开始时仅提供一次。这个方法适用于连续运行多个 hammer 命令,例如包含 hammer 命令的脚本。在这种情况下,您可以输入一次 Satellite 凭据,脚本会如预期运行。通过使用 hammer 身份验证会话,您可以避免在脚本本身和 ~/.hammer/cli.modules.d/foreman.yml hammer 配置文件中存储凭证。

请参阅有关如何使用会话的说明:

  • 要启用会话,请在 ~/.hammer/cli.modules.d/foreman.yml 文件中添加 :use_sessions: true

    :foreman:
     :use_sessions: true

    请注意,如果您启用会话,则存储在配置文件中的凭证将被忽略。

  • 要启动会话,请输入以下命令:

    # hammer auth login

    系统将提示您输入 Satellite 凭据,并登录。在您的会话过期前,不会再次提示输入凭据。

  • 会话的默认长度为 60 分钟。您可以更改时间以符合您的首选项。例如,要将它改为 30 分钟,请输入以下命令:

    # hammer settings set --name idle_timeout --value 30
    Setting [idle_timeout] updated to [30]
  • 要查看会话的当前状态,请输入以下命令:

    # hammer auth status
  • 要结束会话,请输入以下命令:

    # hammer auth logout

1.2.2. hammer 配置文件

如果您使用 --foreman-initial-admin-username--foreman-initial-admin-password 选项运行 Satellite 安装,则您输入的凭证将存储在 ~/.hammer/cli.modules.d/foreman.yml 配置文件中,hammer 不会提示输入您的凭证。

您还可以手动将凭证添加到 ~/.hammer/cli.modules.d/foreman.yml 配置文件中:

:foreman:
 :username: 'username'
 :password: 'password'
重要

仅使用空格进行 hammer 配置文件中的缩进。不要将标签页用于 hammer 配置文件中的缩进。

1.2.3. 命令行

如果您没有将 Satellite 凭证保存在 ~/.hammer/cli.modules.d/foreman.yml 配置文件中,hammer 每次输入命令时会提示您输入这些凭证。您可以在执行命令时指定凭证,如下所示:

$ hammer -u username -p password subcommands
注意

本指南中的示例假定您已在配置文件中保存了凭证,或使用 hammer 身份验证会话。

1.3. 使用独立hammer

您可以在没有安装 Satellite 服务器的主机上安装 hammer,并使用它来将主机连接到远程 Satellite。

先决条件

流程

在主机上,完成以下步骤来安装 hammer

  1. 启用 Red Hat Enterprise Linux、Red Hat Software Collections 和 Red Hat Satellite Tools 6.10 软件仓库:

    # subscription-manager repos --enable=rhel-7-server-rpms \
    --enable=rhel-server-rhscl-7-rpms \
    --enable=rhel-7-server-satellite-tools-6.10-rpms
  2. 安装 hammer

    # yum install tfm-rubygem-hammer_cli_katello
  3. 编辑 /etc/hammer/cli.modules.d/foreman.yml 文件中的 :host: 条目,使其包含 Satellite IP 地址或 FQDN。

    :host: 'https://satellite.example.com'

1.4. 设置默认机构和位置

许多 hammer 命令都是特定于机构的。您可以为 hammer 命令设置默认机构和位置,以便您不必使用 --organization--location 选项在每次指定它们。

当您主要管理单个机构时,指定默认机构很有用,因为它会使命令更短。但是,当切换到不同的机构时,您必须使用带有 --organization 选项的 hammer 来指定它。

流程

要设置默认机构和位置,请完成以下步骤:

  1. 要设置默认机构,请输入以下命令:

    # hammer defaults add --param-name organization \
    --param-value "Your_Organization"

    您可以使用 hammer organization list 命令找到您的机构名称。

  2. 可选: 要设置默认位置,请输入以下命令:

    # hammer defaults add --param-name location \
    --param-value "Your_Location"

    您可以使用 hammer location list 命令找到位置的名称。

  3. 要验证当前指定的默认设置,请输入以下命令:

    # hammer defaults list

1.5. 配置hammer

全局 hammer 配置的默认位置为:

  • /etc/hammer/cli_config.yml for general hammer settings
  • /etc/hammer/cli.modules.d/ 用于 CLI 模块配置文件

您可以为 hammer (在 ~/.hammer/cli_config.yml)以及 CLI 模块(在 ~/.hammer/cli.modules.d/下对应的 .yml 文件)设置用户特定的指令。

要查看载入配置文件的顺序,以及载入的模块版本,请使用:

$ hammer -d --version
注意

加载许多 CLI 模块的配置可能会减慢 hammer 命令的执行速度。在这种情况下,请考虑禁用不定期使用的 CLI 模块。

除了如 第 1.2 节 “身份验证” 所述保存凭证外,您还可以在 ~/.hammer/ 配置目录中设置几个其他选项。例如,您可以更改默认日志级别,并使用 ~/.hammer/cli_config.yml 中的下列指令设置日志轮转:这些指令只会影响当前用户,且不会全局应用。

:log_level: 'warning'
:log_size: 5 #in MB

同样,您可以配置用户界面设置。例如,通过更改以下行来设置hammer 输出中每个请求显示的条目数:

:per_page: 30

此设置等同于 --per-page hammer 选项。

1.6. 配置hammer 日志

您可以设置 hammer 来记录各种 Satellite 组件的调试信息。

您可以为所有 Satellite 组件设置 debug 或 normal 配置选项。

注意

更改 hammer 的日志行为后,您必须重启 Satellite 服务。

# satellite-maintain service restart
  • 要为所有组件设置 debug 级别,请使用以下命令:

    # hammer admin logging --all --level-debug
    # satellite-maintain service restart
  • 要设置生产环境级别日志记录,请使用以下命令:

    # hammer admin logging --all --level-production
    # satellite-maintain service restart
  • 要列出当前可识别的组件,您可以为以下设置日志记录:

    # hammer admin logging --list
  • 列出所有可用的日志记录选项:

    # hammer admin logging --help
    
    Usage:
        hammer admin logging [OPTIONS]

1.7. 调用hammer Shell

您可以通过交互式 shell 发布 hammer 命令。要调用 shell,请运行以下命令:

$ hammer shell

在 shell 中,您可以在不输入"hammer"的情况下直接输入子命令,这可用于在脚本中使用命令。要退出 shell,请键入 exit 或按 Ctrl + D

1.8. 生成格式化输出

您可以修改 hammer 命令的输出的默认格式,以简化通过其他命令行工具和应用程序处理此输出。例如,要列出带有自定义分隔符的 CSV 格式的机构(本例中为分号),请使用以下命令:

$ hammer --csv --csv-separator ";" organization list

例如,当需要解析 ID 并在 for 循环中使用它们时,CSV 格式的输出很有用。

--output 选项提供了其他一些格式选项:

$ hammer --output output_format organization list

使用以下之一替换 output_format

  • table - 以人类可读表(默认)的形式生成输出。
  • base - 以键值对的形式生成输出。
  • yaml - 以 YAML 格式生成输出。
  • CSV - 以 Comma Separated 值格式生成输出。要定义自定义分隔符,请使用 --csv--csv-separator 选项。
  • JSON - 以 JavaScript Object Notation 格式生成输出。
  • silent - 限制输出。

1.9. 从hammer 命令隐藏标头输出

使用任何 hammer 命令时,您可以选择从输出中隐藏标头。如果要管道或使用自定义脚本的输出,隐藏输出会很有用。

  • 要隐藏标头输出,请在任何 hammer 命令中添加 --no-headers 选项。

1.10. 使用 JSON 进行复杂参数

JSON 是描述复杂参数的首选方法。

JSON 格式的内容示例如下所示:

# hammer compute-profile values create --compute-profile-id 22 --compute-resource-id 1 --compute-attributes=
'{
"cpus": 2,
"corespersocket": 2,
"memory_mb": 4096,
"firmware": "efi",
"resource_pool": "Resources",
"cluster": "Example_Cluster",
"guest_id": "rhel8",
"path": "/Datacenters/EXAMPLE/vm/",
"hardware_version": "Default",
"memoryHotAddEnabled": 0,
"cpuHotAddEnabled": 0,
"add_cdrom": 0,
"boot_order": [
               “disk",
               "network"
              ],
"scsi_controllers":[
      {
       "type":  "ParaVirtualSCSIController",
       "key":1000
       },
      {
        "type":  "ParaVirtualSCSIController",
        "key":1001
       }it
                   ]
}'

1.11. 使用hammer 故障排除

您可以使用 hammer ping 命令检查核心 Satellite 服务的状态。与 satellite-maintain service status 命令一起,这有助于诊断和排除 Satellite 问题。如果所有服务都如预期运行,输出如下所示:

$ hammer ping
candlepin:
    Status:          ok
    Server Response: Duration: 22ms
candlepin_auth:
    Status:          ok
    Server Response: Duration: 17ms
pulp:
    Status:          ok
    Server Response: Duration: 41ms
pulp_auth:
    Status:          ok
    Server Response: Duration: 23ms
foreman_tasks:
    Status:          ok
    Server Response: Duration: 33ms

第 2 章 参考

本章提供了 hammer 使用语句的列表。这些使用声明对于为 Satellite 6.10 发布的组件以及为 Satellite 6.10 发布的组件是最新的。

2.1. hammer

Usage:
    hammer [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 activation-key                Manipulate activation keys
 admin                         Administrative server-side tasks
 ansible                       Manage foreman ansible
 architecture                  Manipulate architectures
 arf-report                    Manipulate compliance reports
 audit                         Search audit trails.
 auth                          Foreman connection login/logout
 auth-source                   Manipulate auth sources
 bookmark                      Manage bookmarks
 bootdisk                      Download boot disks
 capsule                       Manipulate capsule
 compute-profile               Manipulate compute profiles
 compute-resource              Manipulate compute resources
 config-group                  Manipulate config groups
 config-report                 Browse and read reports
 content-credentials           Manipulate content credentials on the server
 content-export                Prepare content for export to a disconnected Katello
 content-import                Import content from an upstream archive.
 content-view                  Manipulate content views
 deb-package                   Manipulate deb packages
 defaults                      Defaults management
 discovery                     Manipulate discovered hosts.
 discovery-rule                Manipulate discovered rules.
 docker                        Manipulate docker content
 domain                        Manipulate domains
 environment                   Manipulate environments
 erratum                       Manipulate errata
 export-templates              Export templates to a git repo or a directory on the server
 fact                          Search facts
 file                          Manipulate files
 filter                        Manage permission filters
 foreign-input-set             Manage foreign input sets
 full-help                     Print help for all hammer commands
 global-parameter              Manipulate global parameters
 host                          Manipulate hosts
 host-collection               Manipulate host collections
 host-registration             Host Registration
 hostgroup                     Manipulate hostgroups
 http-proxy                    Manipulate http proxies
 import-templates              Import templates from a git repo or a directory on the server
 job-invocation                Manage job invocations
 job-template                  Manage job templates
 lifecycle-environment         Manipulate lifecycle_environments on the server
 location                      Manipulate locations
 mail-notification             Manage mail notifications
 medium                        Manipulate installation media
 model                         Manipulate hardware models
 module-stream                 View Module Streams
 organization                  Manipulate organizations
 os                            Manipulate operating system
 ostree-branch                 Manipulate ostree branches
 package                       Manipulate packages
 package-group                 Manipulate package groups
 partition-table               Manipulate partition tables
 ping                          Get the status of the server and/or it's subcomponents
 policy                        Manipulate policies
 prebuild-bash-completion      Prepare map of options and subcommands for Bash completion
 product                       Manipulate products
 proxy                         Manipulate smart proxies
 puppet-class                  Search puppet modules
 puppet-environment            Manipulate Puppet environments
 realm                         Manipulate realms
 recurring-logic               Recurring logic related actions
 remote-execution-feature      Manage remote execution features
 report                        Browse and read reports
 report-template               Manipulate report templates
 repository                    Manipulate repositories
 repository-set                Manipulate repository sets on the server
 role                          Manage user roles
 sc-param                      Manipulate smart class parameters
 scap-content                  Manipulate SCAP contents
 scap-content-profile          Manipulate Scap Content Profiles
 settings                      Change server settings
 shell                         Interactive shell
 simple-content-access         Simple content access commands
 srpm                          Manipulate source RPMs
 status                        Get the complete status of the server and/or it's subcomponents
 subnet                        Manipulate subnets
 subscription                  Manipulate subscriptions
 sync-plan                     Manipulate sync plans
 tailoring-file                Manipulate Tailoring files
 task                          Tasks related actions.
 template                      Manipulate provisioning templates
 template-input                Manage template inputs
 user                          Manipulate users
 user-group                    Manage user groups
 virt-who-config               Manage Virt Who configurations
 webhook                       Manage webhooks
 webhook-template              Manipulate webhook templates

Options:
 --[no-]use-defaults           Enable/disable stored defaults. Enabled by default
 --autocomplete LINE           Get list of possible endings
 --csv                         Output as CSV (same as --output=csv)
 --csv-separator SEPARATOR     Character to separate the values
 --fetch-ca-cert SERVER        Fetch CA certificate from server and exit
 --interactive INTERACTIVE     Explicitly turn interactive mode on/off
                               One of true/false, yes/no, 1/0.
 --no-headers                  Hide headers from output
 --output ADAPTER              Set output format
                               Possible value(s): 'base', 'table', 'silent', 'csv', 'yaml', 'json'
 --output-file OUTPUT_FILE     Path to custom output file
 --show-ids                    Show ids of associated resources
 --ssl-ca-file CA_FILE         Configure the file containing the CA certificates
 --ssl-ca-path CA_PATH         Configure the directory containing the CA certificates
 --ssl-client-cert CERT_FILE   Configure the client's public certificate
 --ssl-client-key KEY_FILE     Configure the client's private key
 --ssl-with-basic-auth         Use standard authentication in addition to client certificate authentication
 --verify-ssl VERIFY_SSL       Configure SSL verification of remote system
                               One of true/false, yes/no, 1/0.
 --version                     Show version
 -c, --config CFG_FILE         Path to custom config file
 -d, --debug                   Show debugging output
 -h, --help                    Print help
 -p, --password PASSWORD       Password to access the remote system
 -q, --quiet                   Completely silent
 -r, --reload-cache            Force reload of Apipie cache
 -s, --server SERVER           Remote system address
 -u, --username USERNAME       Username to access the remote system
 -v, --[no-]verbose            Be verbose (or not). True by default

2.2. hammer activation-key

操作激活码

Usage:
    hammer activation-key [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-host-collection           Associate a resource
 add-subscription              Add subscription
 content-override              Override product content defaults
 copy                          Copy an activation key
 create                        Create an activation key
 delete, destroy               Destroy an activation key
 host-collections              List associated host collections
 info, show                    Show an activation key
 list, index                   List activation keys
 product-content               List associated products
 remove-host-collection        Disassociate a resource
 remove-subscription           Remove subscription
 subscriptions                 List associated subscriptions
 update                        Update an activation key

Options:
 -h, --help                    Print help

2.2.1. hammer activation-key add-host-collection

关联资源

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

Options:
 --host-collection HOST_COLLECTION_NAME  Host collection name to search by
 --host-collection-id HOST_COLLECTION_ID Id of the host collection
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.2.2. hammer activation-key add-subscription

添加订阅

Usage:
    hammer activation-key add-subscription [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --quantity QUANTITY                     Quantity of this subscription to add
 --subscription SUBSCRIPTION_NAME        Subscription name to search by
 --subscription-id SUBSCRIPTION_ID       Subscription identifier
 --subscriptions SUBSCRIPTIONS           Array of subscriptions to add
                                         Comma separated list of values defined by a schema. See Option details section below.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --subscriptions     "id=<string>\,quantity=<numeric>, ... "

2.2.3. hammer activation-key content-override

覆盖产品内容默认设置

Usage:
    hammer activation-key content-override [OPTIONS]

Options:
 --content-label CONTENT_LABEL           Label of the content
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --override-name OVERRIDE_NAME           Override parameter key or name.
                                         To enable or disable a repo select 'enabled'.
                                         Default value: enabled
                                         Default: "enabled"
 --remove                                Remove a content override
 --value VALUE                           Override value. Note for repo enablement you can use a boolean value
 -h, --help                              Print help

2.2.4. hammer activation-key copy

复制激活码

Usage:
    hammer activation-key copy [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --new-name NEW_NAME                     Name of new activation key
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.2.5. hammer activation-key create

创建激活码

Usage:
    hammer activation-key create [OPTIONS]

Options:
 --auto-attach AUTO_ATTACH                           Auto attach subscriptions upon registration
                                                     One of true/false, yes/no, 1/0.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view id
 --description DESCRIPTION                           Description
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --max-hosts MAX_HOSTS                               Maximum number of registered content hosts
 --name NAME                                         Name
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --purpose-addons PURPOSE_ADDONS                     Sets the system add-ons
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --purpose-role PURPOSE_ROLE                         Sets the system purpose usage
 --purpose-usage PURPOSE_USAGE                       Sets the system purpose usage
 --release-version RELEASE_VERSION                   Content release version
 --service-level SERVICE_LEVEL                       Service level
 --unlimited-hosts                                   Set hosts max to unlimited
 -h, --help                                          Print help

2.2.6. hammer activation-key delete

销毁激活码

Usage:
    hammer activation-key <delete|destroy> [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.2.7. hammer activation-key host-collections

列出关联的主机组

Usage:
    hammer activation-key host-collections [OPTIONS]

Options:
 --available-for AVAILABLE_FOR           Interpret specified object to return only Host Collections that can be associated with specified object. The value 'host' is supported.
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --host-id HOST_ID                       Filter products by host id
 --id ID                                 ID of activation key
 --name NAME                             Name of activation key
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --sort-by SORT_BY                       Field to sort the results on
 --sort-order SORT_ORDER                 How to order the sorted results (e.g. ASC for ascending)
 -h, --help                              Print help

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

2.2.8. hammer 激活密钥信息

显示激活码

Usage:
    hammer activation-key <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  ------------------------------|-----|---------|-----
  FIELDS                        | ALL | DEFAULT | THIN
  ------------------------------|-----|---------|-----
  Name                          | x   | x       | x
  Id                            | x   | x       | x
  Description                   | x   | x       |
  Host limit                    | x   | x       |
  Auto attach                   | x   | x       |
  Release version               | x   | x       |
  Lifecycle environment         | x   | x       |
  Content view                  | x   | x       |
  Host collections/id           | x   | x       |
  Host collections/name         | x   | x       |
  System purpose/service level  | x   | x       |
  System purpose/purpose usage  | x   | x       |
  System purpose/purpose role   | x   | x       |
  System purpose/purpose addons | x   | x       |
  ------------------------------|-----|---------|-----

2.2.9. hammer activation-key 列表

列出激活码

Usage:
    hammer activation-key <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view identifier
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Activation key name to filter by
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --search SEARCH                                     Search string
 -h, --help                                          Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Name                  | x   | x       | x
  Host limit            | x   | x       |
  Lifecycle environment | x   | x       |
  Content view          | x   | x       |
  ----------------------|-----|---------|-----

Search / Order fields:
  addon               string
  content_view        string
  content_view_id     integer
  description         text
  environment         string
  name                string
  organization_id     integer
  role                string
  subscription_id     string
  subscription_name   string
  usage               string

2.2.10. hammer activation-key product-content

列出相关产品

Usage:
    hammer activation-key product-content [OPTIONS]

Options:
 --content-access-mode-all CONTENT_ACCESS_MODE_ALL Get all content available, not just that provided by subscriptions
                                                   One of true/false, yes/no, 1/0.
 --content-access-mode-env CONTENT_ACCESS_MODE_ENV Limit content to just that available in the activation key's content view version
                                                   One of true/false, yes/no, 1/0.
 --fields FIELDS                                   Show specified fields or predefined field 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
 --id ID                                           ID of the activation key
 --name NAME                                       Activation key name to search by
 --organization ORGANIZATION_NAME                  Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL           Organization label to search by
 --organization-title ORGANIZATION_TITLE           Organization title
 -h, --help                                        Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Name             | x   | x       | x
  Type             | x   | x       |
  Url              | x   | x       |
  Gpg key          | x   | x       |
  Label            | x   | x       |
  Default enabled? | x   | x       |
  Override         | x   | x       |
  -----------------|-----|---------|-----

2.2.11. hammer activation-key remove-host-collection

解除关联资源

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

Options:
 --host-collection HOST_COLLECTION_NAME  Host collection name to search by
 --host-collection-id HOST_COLLECTION_ID Id of the host collection
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.2.12. hammer activation-key remove-subscription

删除订阅

Usage:
    hammer activation-key remove-subscription [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --subscription-id SUBSCRIPTION_ID       ID of subscription
 -h, --help                              Print help

2.2.13. hammer 激活密钥订阅

列出关联的订阅

Usage:
    hammer activation-key subscriptions [OPTIONS]

Options:
 --activation-key ACTIVATION_KEY_NAME    Activation key name to search by
 --activation-key-id ACTIVATION_KEY_ID   Activation key ID
 --available-for AVAILABLE_FOR           Object to show subscriptions available for, either 'host' or 'activation_key'
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       Id of a host
 --id ACTIVATION_KEY_ID                  ID of the activation key
 --match-host MATCH_HOST                 Ignore subscriptions that are unavailable to the specified host
                                         One of true/false, yes/no, 1/0.
 --match-installed MATCH_INSTALLED       Return subscriptions that match installed products of the specified host
                                         One of true/false, yes/no, 1/0.
 --name ACTIVATION_KEY_NAME              Activation key name to search by
 --no-overlap NO_OVERLAP                 Return subscriptions which do not overlap with a currently-attached subscription
                                         One of true/false, yes/no, 1/0.
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 -h, --help                              Print help

Predefined field sets:
  -----------|-----|--------
  FIELDS     | ALL | DEFAULT
  -----------|-----|--------
  Id         | x   | x
  Name       | x   | x
  Attached   | x   | x
  Quantity   | x   | x
  Start date | x   | x
  End date   | x   | x
  Support    | x   | x
  Contract   | x   | x
  Account    | x   | x
  -----------|-----|--------

2.2.14. hammer 激活密钥更新

更新激活码

Usage:
    hammer activation-key update [OPTIONS]

Options:
 --auto-attach AUTO_ATTACH                           Auto attach subscriptions upon registration
                                                     One of true/false, yes/no, 1/0.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view id
 --description DESCRIPTION                           Description
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             ID of the activation key
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --max-hosts MAX_HOSTS                               Maximum number of registered content hosts
 --name NAME                                         Activation key name to search by
 --new-name NEW_NAME                                 Name
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --purpose-addons PURPOSE_ADDONS                     Sets the system add-ons
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --purpose-role PURPOSE_ROLE                         Sets the system purpose usage
 --purpose-usage PURPOSE_USAGE                       Sets the system purpose usage
 --release-version RELEASE_VERSION                   Content release version
 --service-level SERVICE_LEVEL                       Service level
 --unlimited-hosts                                   Set hosts max to unlimited
 -h, --help                                          Print help

2.3. hammer 管理员

管理服务器端任务

Usage:
    hammer admin [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 logging                       Logging verbosity level setup

Options:
 -h, --help                    Print help

2.3.1. hammer 管理日志记录

日志记录详细程度设置

Usage:
    hammer admin logging [OPTIONS]

Options:
 --no-backup                   Skip configuration backups creation.
 --prefix PATH                 Operate on prefixed environment (e.g. chroot).
 -a, --all                     Apply to all components.
 -c, --components COMPONENTS   Components to apply, use --list to get them.
                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                               JSON is acceptable and preferred way for complex parameters
 -d, --level-debug             Increase verbosity level to debug.
 -h, --help                    Print help
 -l, --list                    List available components.
 -n, --dry-run                 Do not apply specified changes.
 -p, --level-production        Decrease verbosity level to standard.

2.4. hammer ansible

管理 foreman ansible

Usage:
    hammer ansible [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 roles                         Manage ansible roles
 variables                     Manage ansible variables

Options:
 -h, --help                    Print help

2.4.1. hammer ansible 角色

管理 ansible 角色

Usage:
    hammer ansible roles [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete, destroy               Deletes Ansible role
 fetch                         Fetch Ansible roles available to be synced
 import                        DEPRECATED: Import Ansible roles
 info, show                    Show role
 list, index                   List Ansible roles
 obsolete                      DEPRECATED: Obsolete Ansible roles
 play-hostgroups               Runs all Ansible roles on hostgroups
 play-hosts                    Runs all Ansible roles on hosts
 sync                          Sync Ansible roles

Options:
 -h, --help                    Print help
2.4.1.1. hammer ansible 角色删除

删除 Ansible 角色

Usage:
    hammer ansible roles <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.4.1.2. hammer ansible 角色获取

获取可用于同步的 Ansible 角色

Usage:
    hammer ansible roles fetch [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --proxy-id PROXY_ID                     Capsule to fetch from
 -h, --help                              Print help
2.4.1.3. hammer ansible 角色导入

DEPRECATED: 导入 Ansible 角色

Usage:
    hammer ansible roles import [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --proxy-id PROXY_ID                     Capsule to import from
 --role-names ROLE_NAMES                 Ansible role names to be imported
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help
2.4.1.4. hammer ansible 角色信息

show role

Usage:
    hammer ansible roles <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Imported at | x   | x       |
  ------------|-----|---------|-----
2.4.1.5. hammer ansible 角色列表

列出 Ansible 角色

Usage:
    hammer ansible roles <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Imported at | x   | x       |
  ------------|-----|---------|-----

Search / Order fields:
  host                string
  host_id             integer
  hostgroup           string
  hostgroup_id        integer
  id                  integer
  name                string
  updated_at          datetime
2.4.1.6. hammer ansible 角色已过时

DEPRECATED: Obsolete Ansible 角色

Usage:
    hammer ansible roles obsolete [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --proxy-id PROXY_ID                     Capsule to import from
 -h, --help                              Print help
2.4.1.7. hammer ansible 角色 play-hostgroups

在 hostgroups 上运行所有 Ansible 角色

Usage:
    hammer ansible roles play-hostgroups [OPTIONS]

Options:
 --hostgroup-ids HOSTGROUP_IDS           IDs of hostgroups to play roles on
                                         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-titles HOSTGROUP_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
 --hostgroups HOSTGROUP_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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.4.1.8. hammer ansible 角色 play-hosts

在主机上运行所有 Ansible 角色

Usage:
    hammer ansible roles play-hosts [OPTIONS]

Options:
 --host-ids HOST_IDS                     IDs of hosts to play roles on
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --hosts HOST_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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.4.1.9. hammer ansible 角色同步

同步 Ansible 角色

Usage:
    hammer ansible roles sync [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --proxy-id PROXY_ID                     Capsule to sync from
 --role-names ROLE_NAMES                 Ansible role names to be synced
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help

2.4.2. hammer ansible 变量

管理 ansible 变量

Usage:
    hammer ansible variables [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-matcher                   Create an override value for a specific ansible variable
 create                        Create Ansible variable
 delete, destroy               Deletes Ansible variable
 import                        DEPRECATED: Import Ansible variables. This will only import variables for already existing roles, it will not import any new roles
 info, show                    Show variable
 list, index                   List Ansible variables
 obsolete                      DEPRECATED: Obsolete Ansible variables. This will only obsolete variables for already existing roles, it will not delete any old roles
 remove-matcher                Destroy an override value
 update                        Updates Ansible variable

Options:
 -h, --help                    Print help
2.4.2.1. hammer ansible 变量 add-matcher

为特定 ansible 变量创建覆盖值

Usage:
    hammer ansible variables add-matcher [OPTIONS]

Options:
 --ansible-variable ANSIBLE_VARIABLE_NAME  Name to search by
 --ansible-variable-id ANSIBLE_VARIABLE_ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --match MATCH                             Override match
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --value VALUE                             Override value, required if omit is false
 -h, --help                                Print help
2.4.2.2. hammer ansible 变量创建

创建 Ansible 变量

Usage:
    hammer ansible variables create [OPTIONS]

Options:
 --ansible-role ANSIBLE_ROLE_NAME            Name to search by
 --ansible-role-id ANSIBLE_ROLE_ID           Role ID
 --avoid-duplicates AVOID_DUPLICATES         Remove duplicate values (only array type)
                                             One of true/false, yes/no, 1/0.
 --default-value DEFAULT_VALUE               Default value of variable
 --description DESCRIPTION                   Description of variable
 --hidden-value HIDDEN_VALUE                 When enabled the parameter is hidden in the UI
                                             One of true/false, yes/no, 1/0.
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --merge-default MERGE_DEFAULT               Include default value when merging all matching values
                                             One of true/false, yes/no, 1/0.
 --merge-overrides MERGE_OVERRIDES           Merge all matching values (only array/hash type)
                                             One of true/false, yes/no, 1/0.
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --override OVERRIDE                         Whether to override variable or not
                                             One of true/false, yes/no, 1/0.
 --override-value-order OVERRIDE_VALUE_ORDER The order in which values are resolved
 --validator-rule VALIDATOR_RULE             Used to enforce certain values for the parameter values
 --validator-type VALIDATOR_TYPE             Types of validation values
                                             Possible value(s): 'regexp', 'list'
 --variable VARIABLE                         Name of variable
 --variable-type VARIABLE_TYPE               Types of variable values
                                             Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
 -h, --help                                  Print help
2.4.2.3. hammer ansible 变量删除

删除 Ansible 变量

Usage:
    hammer ansible variables <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.4.2.4. hammer ansible 变量导入

DEPRECATED :导入 Ansible 变量。这只会为已存在的角色导入变量,它不会导入任何新角色

Usage:
    hammer ansible variables import [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --proxy-id PROXY_ID                     Capsule to import from
 -h, --help                              Print help
2.4.2.5. hammer ansible 变量信息

show 变量

Usage:
    hammer ansible variables <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------------------------------------|-----|--------
  FIELDS                              | ALL | DEFAULT
  ------------------------------------|-----|--------
  Id                                  | x   | x
  Variable                            | x   | x
  Default value                       | x   | x
  Type                                | x   | x
  Role                                | x   | x
  Role id                             | x   | x
  Description                         | x   | x
  Hidden value?                       | x   | x
  Validator/type                      | x   | x
  Validator/rule                      | x   | x
  Override values/override            | x   | x
  Override values/merge overrides     | x   | x
  Override values/merge default value | x   | x
  Override values/avoid duplicates    | x   | x
  Override values/order               | x   | x
  Override values/values/id           | x   | x
  Override values/values/match        | x   | x
  Override values/values/value        | x   | x
  Created at                          | x   | x
  Updated at                          | x   | x
  ------------------------------------|-----|--------
2.4.2.6. hammer ansible 变量列表

列出 Ansible 变量

Usage:
    hammer ansible variables <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Variable      | x   | x
  Default value | x   | x
  Type          | x   | x
  Role          | x   | x
  Role id       | x   | x
  --------------|-----|--------

Search / Order fields:
  ansible_role        string
  avoid_duplicates    Values: true, false
  imported            Values: true, false
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  name                string
  override            Values: true, false
  parameter           string
2.4.2.7. hammer ansible 变量已过时

DEPRECATED: Obsolete Ansible 变量。这只会为已存在的角色提供过时的变量,它不会删除任何旧角色

Usage:
    hammer ansible variables obsolete [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --proxy-id PROXY_ID                     Capsule to import from
 -h, --help                              Print help
2.4.2.8. hammer ansible 变量 remove-matcher

销毁覆盖值

Usage:
    hammer ansible variables remove-matcher [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.4.2.9. hammer ansible 变量更新

更新 Ansible 变量

Usage:
    hammer ansible variables update [OPTIONS]

Options:
 --ansible-role ANSIBLE_ROLE_NAME            Name to search by
 --ansible-role-id ANSIBLE_ROLE_ID           Role ID
 --avoid-duplicates AVOID_DUPLICATES         Remove duplicate values (only array type)
                                             One of true/false, yes/no, 1/0.
 --default-value DEFAULT_VALUE               Default value of variable
 --description DESCRIPTION                   Description of variable
 --hidden-value HIDDEN_VALUE                 When enabled the parameter is hidden in the UI
                                             One of true/false, yes/no, 1/0.
 --id ID
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --merge-default MERGE_DEFAULT               Include default value when merging all matching values
                                             One of true/false, yes/no, 1/0.
 --merge-overrides MERGE_OVERRIDES           Merge all matching values (only array/hash type)
                                             One of true/false, yes/no, 1/0.
 --name NAME                                 Name to search by
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --override OVERRIDE                         Whether to override variable or not
                                             One of true/false, yes/no, 1/0.
 --override-value-order OVERRIDE_VALUE_ORDER The order in which values are resolved
                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --validator-rule VALIDATOR_RULE             Used to enforce certain values for the parameter values
 --validator-type VALIDATOR_TYPE             Types of validation values
                                             Possible value(s): 'regexp', 'list'
 --variable VARIABLE                         Name of variable
 --variable-type VARIABLE_TYPE               Types of variable values
                                             Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
 -h, --help                                  Print help

2.5. hammer 架构

操作架构

Usage:
    hammer architecture [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-operatingsystem           Associate an operating system
 create                        Create an architecture
 delete, destroy               Delete an architecture
 info, show                    Show an architecture
 list, index                   List all architectures
 remove-operatingsystem        Disassociate an operating system
 update                        Update an architecture

Options:
 -h, --help                    Print help

2.5.1. hammer 架构添加操作系统

关联操作系统

Usage:
    hammer architecture add-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Architecture name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.5.2. hammer 架构创建

创建架构

Usage:
    hammer architecture create [OPTIONS]

Options:
 --name NAME
 --operatingsystem-ids OPERATINGSYSTEM_IDS Operating system IDs
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 -h, --help                                Print help

2.5.3. hammer 架构删除

删除架构

Usage:
    hammer architecture <delete|destroy> [OPTIONS]

Options:
 --id ID
 --name NAME                   Architecture name
 -h, --help                    Print help

2.5.4. hammer 架构信息

显示架构

Usage:
    hammer architecture <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID
 --name NAME                   Architecture name
 -h, --help                    Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       | x
  Name               | x   | x       | x
  Operating systems/ | x   | x       |
  Locations/         | x   | x       |
  Organizations/     | x   | x       |
  Created at         | x   | x       |
  Updated at         | x   | x       |
  -------------------|-----|---------|-----

2.5.5. hammer 架构列表

列出所有构架

Usage:
    hammer architecture <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID ID of operating system
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  name                string

2.5.6. hammer 架构删除操作系统

解除操作系统关联

Usage:
    hammer architecture remove-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Architecture name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.5.7. hammer 架构更新

更新构架

Usage:
    hammer architecture update [OPTIONS]

Options:
 --id ID
 --name NAME                               Architecture name
 --new-name NEW_NAME
 --operatingsystem-ids OPERATINGSYSTEM_IDS Operating system IDs
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 -h, --help                                Print help

2.6. hammer arf-report

操作合规性报告

Usage:
    hammer arf-report [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete, destroy               Delete an ARF Report
 download                      Download bzipped ARF report
 download-html                 Download ARF report in HTML
 info, show                    Show an ARF report
 list, index                   List ARF reports

Options:
 -h, --help                    Print help

2.6.1. hammer arf-report delete

删除 ARF 报告

Usage:
    hammer arf-report <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 -h, --help                        Print help

2.6.2. hammer arf-report download

下载 bzipped ARF 报告

Usage:
    hammer arf-report download [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --path PATH                       Path to directory where downloaded file will be saved
 -h, --help                        Print help

2.6.3. hammer arf-report download-html

在 HTML 中下载 ARF 报告

Usage:
    hammer arf-report download-html [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --path PATH                       Path to directory where downloaded file will be saved
 -h, --help                        Print help

2.6.4. hammer arf-report 信息

显示 ARF 报告

Usage:
    hammer arf-report <info|show> [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 -h, --help                        Print help

Predefined field sets:
  --------------------|-----|---------|-----
  FIELDS              | ALL | DEFAULT | THIN
  --------------------|-----|---------|-----
  Id                  | x   | x       | x
  Reported at         | x   | x       |
  Host name           | x   | x       | x
  Openscap proxy name | x   | x       |
  Policy name         | x   | x       |
  Passed              | x   | x       |
  Failed              | x   | x       |
  Othered             | x   | x       |
  Host id             | x   | x       |
  Openscap proxy id   | x   | x       |
  Policy id           | x   | x       |
  Locations/          | x   | x       |
  Organizations/      | x   | x       |
  --------------------|-----|---------|-----

2.6.5. hammer arf-report list

列出 ARF 报告

Usage:
    hammer arf-report <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  --------------------|-----|---------|-----
  FIELDS              | ALL | DEFAULT | THIN
  --------------------|-----|---------|-----
  Id                  | x   | x       | x
  Reported at         | x   | x       |
  Host name           | x   | x       | x
  Openscap proxy name | x   | x       |
  Policy name         | x   | x       |
  Passed              | x   | x       |
  Failed              | x   | x       |
  Othered             | x   | x       |
  --------------------|-----|---------|-----

Search / Order fields:
  compliance_policy      string
  compliance_status      Values: compliant, incompliant, inconclusive
  comply_with            string
  environment            string
  eventful               Values: true, false
  host                   string
  host_collection        string
  host_id                integer
  hostgroup              string
  hostgroup_fullname     string
  hostgroup_title        string
  inconclusive_with      string
  last_for               Values: host, policy
  last_report            datetime
  lifecycle_environment  string
  location               string
  location_id            integer
  log                    text
  not_comply_with        string
  openscap_proxy         string
  organization           string
  organization_id        integer
  origin                 string
  policy                 string
  reported               datetime
  resource               text
  xccdf_rule_failed      string
  xccdf_rule_name        text
  xccdf_rule_othered     string
  xccdf_rule_passed      string

2.7. hammer 审计

搜索审计跟踪。

Usage:
    hammer audit [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show an audit
 list, index                   List all audits

Options:
 -h, --help                    Print help

2.7.1. hammer 审计信息

显示审计

Usage:
    hammer audit <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  --------------------------|-----|---------|-----
  FIELDS                    | ALL | DEFAULT | THIN
  --------------------------|-----|---------|-----
  Id                        | x   | x       | x
  At                        | x   | x       |
  Ip                        | x   | x       |
  User                      | x   | x       |
  Action                    | x   | x       |
  Audit type                | x   | x       |
  Audit record              | x   | x       |
  Request uuid              | x   | x       |
  Audited changes/attribute | x   | x       |
  Audited changes/value     | x   | x       |
  Audited changes/old       | x   | x       |
  Audited changes/new       | x   | x       |
  --------------------------|-----|---------|-----

2.7.2. hammer 审计列表

列出所有审计

Usage:
    hammer audit <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  At           | x   | x       |
  Ip           | x   | x       |
  User         | x   | x       |
  Action       | x   | x       |
  Audit type   | x   | x       |
  Audit record | x   | x       |
  Request uuid | x   |         |
  -------------|-----|---------|-----

Search / Order fields:
  action                 string
  auditable_id           integer
  changes                text
  comment                string
  host                   string
  hostgroup              string
  hostgroup_title        string
  id                     integer
  interface_fqdn         string
  interface_ip           string
  interface_mac          string
  location               string
  location_id            integer
  organization           string
  organization_id        integer
  os                     string
  os_title               string
  parameter              string
  partition_table        string
  provisioning_template  string
  puppetclass            string
  remote_address         string
  request_uuid           string
  setting                string
  time                   datetime
  type                   Values: role, ptable, provisioning_template, user, filter, subnet, remote_execution_feature, hostgroup, http_proxy, katello/repository, smart_proxy, katello/host/content_facet, katello/hostgroup/content_facet, katello/host/subscription_facet, usergroup, katello/content_view, katello/kt_environment, architecture, compute_attribute, domain, medium, environment, puppetclass, model, personal_access_token, ssh_key, compute_profile, bookmark, config_group, host_class, image, key_pair, report_template, realm, job_template, job_invocation, ansible_role, discovery_rule, katello/activation_key, katello/gpg_key, katello/host_collection, katello/product, katello/sync_plan, foreman_virt_who_configure/config, foreman_openscap/policy, foreman_openscap/scap_content, foreman_openscap/tailoring_file, foreman_openscap/oval_content, foreman_openscap/oval_policy, lookup_value, hostgroup_class, katello/root_repository, auth_source, compute_resource, host, interface, location, organization, os, override_value, parameter, partition_table, setting, smart_class_parameter
  user                   string
  username               string

2.8. hammer auth

Foreman 连接登录/注销

Usage:
    hammer auth [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 login                         Set credentials
 logout                        Wipe your credentials
 status                        Information about current connections

Options:
 -h, --help                    Print help

2.8.1. hammer 身份验证登录

设置凭证

Usage:
    hammer auth login [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 basic                         Provide username and password
 oauth                         Supports for both with/without 2fa

Options:
 -h, --help                    Print help
2.8.1.1. hammer 身份验证登录基础

提供用户名和密码

Usage:
    hammer auth login basic [OPTIONS]

Options:
 -h, --help                    Print help
 -p, --password PASSWORD       Password to access the remote system
 -u, --username USERNAME       Username to access the remote system
2.8.1.2. hammer 身份验证登录 oauth

支持带/没有 2fa 的两者都

Usage:
    hammer auth login oauth [OPTIONS]

Options:
 -a, --oidc-authorization-endpoint OPENIDC_AUTHORIZATION_ENDPOINT Openidc provider URL which issues authentication code (two factor only)
 -c, --oidc-client-id OPENIDC_CLIENT_ID                           Client id used in the Openidc provider
 -f, --two-factor                                                 Authenticate with two factor
 -h, --help                                                       Print help
 -p, --password PASSWORD                                          Password to access the remote system
 -r, --oidc-redirect-uri OPENIDC_REDIRECT_URI                     Redirect URI for the authentication code grant flow
 -t, --oidc-token-endpoint OPENIDC_TOKEN_ENDPOINT                 Openidc provider URL which issues access token
 -u, --username USERNAME                                          Username to access the remote system

2.8.2. hammer auth logout

擦除凭证

Usage:
    hammer auth logout [OPTIONS]

Options:
 -h, --help                    Print help

2.8.3. hammer 身份验证状态

有关当前连接的信息

Usage:
    hammer auth status [OPTIONS]

Options:
 -h, --help                    Print help

2.9. hammer auth-source

操作身份验证源

Usage:
    hammer auth-source [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 external                      Manage external auth sources
 ldap                          Manage LDAP auth sources
 list, index                   List all auth sources

Options:
 -h, --help                    Print help

2.9.1. hammer auth-source external

管理外部身份验证源

Usage:
    hammer auth-source external [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show an external authentication source
 list, index                   List external authentication sources
 update                        Update organization and location for Auth Source

Options:
 -h, --help                    Print help
2.9.1.1. hammer auth-source 外部信息

显示外部身份验证源

Usage:
    hammer auth-source external <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  ---------------|-----|---------|-----
2.9.1.2. hammer auth-source 外部列表

列出外部身份验证源

Usage:
    hammer auth-source external <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
2.9.1.3. hammer auth-source 外部更新

更新 Auth Source 的机构和位置

Usage:
    hammer auth-source external update [OPTIONS]

Options:
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.9.2. hammer auth-source ldap

管理 LDAP 身份验证源

Usage:
    hammer auth-source ldap [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create an LDAP authentication source
 delete, destroy               Delete an LDAP authentication source
 info, show                    Show an LDAP authentication source
 list, index                   List all LDAP authentication sources
 update                        Update an LDAP authentication source

Options:
 -h, --help                    Print help
2.9.2.1. hammer auth-source ldap create

创建 LDAP 身份验证源

Usage:
    hammer auth-source ldap create [OPTIONS]

Options:
 --account ACCOUNT
 --account-password ACCOUNT_PASSWORD       Required if onthefly_register is true
 --attr-firstname ATTR_FIRSTNAME           Required if onthefly_register is true
 --attr-lastname ATTR_LASTNAME             Required if onthefly_register is true
 --attr-login ATTR_LOGIN                   Required if onthefly_register is true
 --attr-mail ATTR_MAIL                     Required if onthefly_register is true
 --attr-photo ATTR_PHOTO
 --base-dn BASE_DN
 --groups-base GROUPS_BASE                 Groups base DN
 --host HOST                               The hostname of the LDAP server
 --ldap-filter LDAP_FILTER                 LDAP filter
 --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               REPLACE locations with given ids
                                           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
 --name NAME
 --onthefly-register ONTHEFLY_REGISTER     One of true/false, yes/no, 1/0.
 --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       REPLACE organizations with given ids.
                                           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
 --port PORT                               Defaults to 389
 --server-type SERVER_TYPE                 Type of the LDAP server
                                           Possible value(s): 'free_ipa', 'active_directory', 'posix'
 --tls TLS                                 One of true/false, yes/no, 1/0.
 --use-netgroups USE_NETGROUPS             Use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa
                                           One of true/false, yes/no, 1/0.
 --usergroup-sync USERGROUP_SYNC           Sync external user groups on login
                                           One of true/false, yes/no, 1/0.
 -h, --help                                Print help
2.9.2.2. hammer auth-source ldap delete

删除 LDAP 身份验证源

Usage:
    hammer auth-source ldap <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.9.2.3. hammer auth-source ldap info

显示 LDAP 身份验证源

Usage:
    hammer auth-source ldap <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -------------------------------------------|-----|--------
  FIELDS                                     | ALL | DEFAULT
  -------------------------------------------|-----|--------
  Server/id                                  | x   | x
  Server/name                                | x   | x
  Server/server                              | x   | x
  Server/ldaps                               | x   | x
  Server/port                                | x   | x
  Server/server type                         | x   | x
  Account/account username                   | x   | x
  Account/base dn                            | x   | x
  Account/groups base dn                     | x   | x
  Account/use netgroups                      | x   | x
  Account/ldap filter                        | x   | x
  Account/automatically create accounts?     | x   | x
  Account/usergroup sync                     | x   | x
  Attribute mappings/login name attribute    | x   | x
  Attribute mappings/first name attribute    | x   | x
  Attribute mappings/last name attribute     | x   | x
  Attribute mappings/email address attribute | x   | x
  Attribute mappings/photo attribute         | x   | x
  Locations/                                 | x   | x
  Organizations/                             | x   | x
  -------------------------------------------|-----|--------
2.9.2.4. hammer auth-source ldap list

列出所有 LDAP 身份验证源

Usage:
    hammer auth-source ldap <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------|-----|---------|-----
  FIELDS | ALL | DEFAULT | THIN
  -------|-----|---------|-----
  Id     | x   | x       | x
  Name   | x   | x       | x
  Server | x   | x       |
  Port   | x   | x       |
  Ldaps? | x   | x       |
  -------|-----|---------|-----

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
2.9.2.5. hammer auth-source ldap update

更新 LDAP 身份验证源

Usage:
    hammer auth-source ldap update [OPTIONS]

Options:
 --account ACCOUNT
 --account-password ACCOUNT_PASSWORD       Required if onthefly_register is true
 --attr-firstname ATTR_FIRSTNAME           Required if onthefly_register is true
 --attr-lastname ATTR_LASTNAME             Required if onthefly_register is true
 --attr-login ATTR_LOGIN                   Required if onthefly_register is true
 --attr-mail ATTR_MAIL                     Required if onthefly_register is true
 --attr-photo ATTR_PHOTO
 --base-dn BASE_DN
 --groups-base GROUPS_BASE                 Groups base DN
 --host HOST                               The hostname of the LDAP server
 --id ID
 --ldap-filter LDAP_FILTER                 LDAP filter
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --onthefly-register ONTHEFLY_REGISTER     One of true/false, yes/no, 1/0.
 --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       REPLACE organizations with given ids.
                                           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
 --port PORT                               Defaults to 389
 --server-type SERVER_TYPE                 Type of the LDAP server
                                           Possible value(s): 'free_ipa', 'active_directory', 'posix'
 --tls TLS                                 One of true/false, yes/no, 1/0.
 --use-netgroups USE_NETGROUPS             Use NIS netgroups instead of posix groups, applicable only when server_type is posix or free_ipa
                                           One of true/false, yes/no, 1/0.
 --usergroup-sync USERGROUP_SYNC           Sync external user groups on login
                                           One of true/false, yes/no, 1/0.
 -h, --help                                Print help

2.9.3. hammer auth-source list

列出所有身份验证源

Usage:
    hammer auth-source <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  --------------------|-----|---------|-----
  FIELDS              | ALL | DEFAULT | THIN
  --------------------|-----|---------|-----
  Id                  | x   | x       | x
  Name                | x   | x       | x
  Type of auth source | x   | x       |
  --------------------|-----|---------|-----

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer

2.10. hammer 书签

管理书签

Usage:
    hammer bookmark [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a bookmark
 delete, destroy               Delete a bookmark
 info, show                    Show a bookmark
 list, index                   List all bookmarks
 update                        Update a bookmark

Options:
 -h, --help                    Print help

2.10.1. hammer 书签创建

创建书签

Usage:
    hammer bookmark create [OPTIONS]

Options:
 --controller CONTROLLER
 --name NAME
 --public PUBLIC               One of true/false, yes/no, 1/0.
 --query QUERY
 -h, --help                    Print help

2.10.2. hammer 书签删除

删除书签

Usage:
    hammer bookmark <delete|destroy> [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 -h, --help                    Print help

2.10.3. hammer 书签信息

显示书签

Usage:
    hammer bookmark <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID
 --name NAME                   Name to search by
 -h, --help                    Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Controller   | x   | x       |
  Search query | x   | x       |
  Public       | x   | x       |
  Owner id     | x   | x       |
  Owner type   | x   | x       |
  -------------|-----|---------|-----

2.10.4. hammer 书签列表

列出所有书签

Usage:
    hammer bookmark <list|index> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --order ORDER                 Sort field and order, eg. ‘id DESC’
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return, 'all' to return all results
 --search SEARCH               Filter results
 -h, --help                    Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Controller   | x   | x       |
  Search query | x   | x       |
  Public       | x   | x       |
  Owner id     | x   | x       |
  Owner type   | x   | x       |
  -------------|-----|---------|-----

Search / Order fields:
  controller          string
  name                string

2.10.5. hammer 书签更新

更新书签

Usage:
    hammer bookmark update [OPTIONS]

Options:
 --controller CONTROLLER
 --id ID
 --name NAME                   Name to search by
 --new-name NEW_NAME
 --public PUBLIC               One of true/false, yes/no, 1/0.
 --query QUERY
 -h, --help                    Print help

2.11. hammer bootdisk

下载引导磁盘

Usage:
    hammer bootdisk [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 generic                       Download generic image
 host                          Download host image
 subnet                        Download subnet generic image

Options:
 -h, --help                    Print help

2.11.1. hammer bootdisk 通用

下载通用镜像

Usage:
    hammer bootdisk generic [OPTIONS]

Options:
 --file PATH                             File or device to write image to
 --force                                 Force writing to existing destination (device etc.)
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --sudo                                  Use sudo to write to device
 -h, --help                              Print help

2.11.2. hammer bootdisk 主机

下载主机镜像

Usage:
    hammer bootdisk host [OPTIONS]

Options:
 --file PATH                             File or device to write image to
 --force                                 Force writing to existing destination (device etc.)
 --full FULL                             True for full, false for basic reusable image
                                         One of true/false, yes/no, 1/0.
 --host HOST_NAME                        Host name
 --host-id HOST_ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --sudo                                  Use sudo to write to device
 -h, --help                              Print help

2.11.3. hammer bootdisk 子网

下载子网通用镜像

Usage:
    hammer bootdisk subnet [OPTIONS]

Options:
 --file PATH                             File or device to write image to
 --force                                 Force writing to existing destination (device etc.)
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --subnet SUBNET_NAME                    Subnet name
 --subnet-id SUBNET_ID
 --sudo                                  Use sudo to write to device
 -h, --help                              Print help

2.12. hammer 过程

操作者

Usage:
    hammer capsule [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 content                       Manage the capsule content
 create                        Create a capsule
 delete, destroy               Delete a capsule
 import-classes                Import puppet classes from puppet Capsule
 info, show                    Show a capsule
 list, index                   List all capsules
 refresh-features              Refresh capsule features
 update                        Update a capsule

Options:
 -h, --help                    Print help

2.12.1. hammer 指导内容

管理过期内容

Usage:
    hammer capsule content [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-lifecycle-environment        Add lifecycle environments to the capsule
 available-lifecycle-environments List the lifecycle environments not attached to the capsule
 cancel-synchronization           Cancel running capsule synchronization
 info                             Get current capsule synchronization status
 lifecycle-environments           List the lifecycle environments attached to the capsule
 remove-lifecycle-environment     Remove lifecycle environments from the capsule
 synchronization-status           Get current capsule synchronization status
 synchronize                      Synchronize the content to the capsule

Options:
 -h, --help                    Print help
2.12.1.1. hammer Content add-lifecycle-environment

将生命周期阶段添加到过期

Usage:
    hammer capsule content add-lifecycle-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 -h, --help                                          Print help
2.12.1.2. hammer 可用的内容 available-lifecycle-environments

列出未附加到过期的生命周期阶段

Usage:
    hammer capsule content available-lifecycle-environments [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to limit environments on
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Organization | x   | x       |
  -------------|-----|---------|-----
2.12.1.3. hammer the content cancel-synchronization

取消运行过期同步

Usage:
    hammer capsule content cancel-synchronization [OPTIONS]

Options:
 --id ID                       Id of the capsule
 --name NAME                   Name to search by
 -h, --help                    Print help
2.12.1.4. hammer 指导内容信息

获取当前的同步状态

Usage:
    hammer capsule content info [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to get the status for
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  -------------------------------------------------------------------|-----|--------
  FIELDS                                                             | ALL | DEFAULT
  -------------------------------------------------------------------|-----|--------
  Lifecycle environments/name                                        | x   | x
  Lifecycle environments/organization                                | x   | x
  Lifecycle environments/content views/name                          | x   | x
  Lifecycle environments/content views/composite                     | x   | x
  Lifecycle environments/content views/last published                | x   | x
  Lifecycle environments/content views/content/hosts                 | x   | x
  Lifecycle environments/content views/content/products              | x   | x
  Lifecycle environments/content views/content/yum repos             | x   | x
  Lifecycle environments/content views/content/container image repos | x   | x
  Lifecycle environments/content views/content/packages              | x   | x
  Lifecycle environments/content views/content/package groups        | x   | x
  Lifecycle environments/content views/content/errata                | x   | x
  -------------------------------------------------------------------|-----|--------
2.12.1.5. hammer 过程生命周期-environments

列出附加到过期的产品生命周期

Usage:
    hammer capsule content lifecycle-environments [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to limit environments on
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Organization | x   | x       |
  -------------|-----|---------|-----
2.12.1.6. hammer 完整内容 remove-lifecycle-environment

从过期中删除生命周期阶段

Usage:
    hammer capsule content remove-lifecycle-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 -h, --help                                          Print help
2.12.1.7. hammer the content synchronization-status

获取当前的同步状态

Usage:
    hammer capsule content synchronization-status [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to get the status for
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  --------------------------------------|-----|--------
  FIELDS                                | ALL | DEFAULT
  --------------------------------------|-----|--------
  Last sync                             | x   | x
  Status                                | x   | x
  Currently running sync tasks/task id  | x   | x
  Currently running sync tasks/progress | x   | x
  Last failure/task id                  | x   | x
  Last failure/messages                 | x   | x
  --------------------------------------|-----|--------
2.12.1.8. hammer 摘要内容同步

将内容同步到过期

Usage:
    hammer capsule content synchronize [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 --skip-metadata-check SKIP_METADATA_CHECK           Skip metadata check on each repository on the capsule
                                                     One of true/false, yes/no, 1/0.
 -h, --help                                          Print help

2.12.2. hammer 过程创建

创建过期

Usage:
    hammer capsule create [OPTIONS]

Options:
 --download-policy DOWNLOAD_POLICY         Download Policy of the capsule, must be one of on_demand, immediate, inherit
 --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               REPLACE locations with given ids
                                           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
 --name NAME
 --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       REPLACE organizations with given ids.
                                           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
 --url URL
 -h, --help                                Print help

2.12.3. hammer 领导删除

删除过期

Usage:
    hammer capsule <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.12.4. hammer 过程导入类

从 puppet Capsule 导入 puppet 类

Usage:
    hammer capsule import-classes [OPTIONS]

Options:
 --dryrun                                      Do not run the import
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --except EXCEPT                               Optional comma-delimited string containing either 'new', 'updated', or 'obsolete' that is used to limit the imported Puppet classes
 --id ID
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --name NAME                                   Name to search by
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                    Print help

2.12.5. hammer 过程信息

显示过期

Usage:
    hammer capsule <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Url            | x   | x       |
  Features       | x   | x       |
  Features/      | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.12.6. hammer the list

列出所有公司

Usage:
    hammer capsule <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ---------|-----|---------|-----
  FIELDS   | ALL | DEFAULT | THIN
  ---------|-----|---------|-----
  Id       | x   | x       | x
  Name     | x   | x       | x
  Url      | x   | x       |
  Features | x   | x       |
  ---------|-----|---------|-----

Search / Order fields:
  feature             string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  url                 string

2.12.7. hammer 过程刷新功能

刷新功能

Usage:
    hammer capsule refresh-features [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.12.8. hammer 领导更新

更新过期

Usage:
    hammer capsule update [OPTIONS]

Options:
 --download-policy DOWNLOAD_POLICY         Download Policy of the capsule, must be one of on_demand, immediate, inherit
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 --url URL
 -h, --help                                Print help

2.13. hammer compute-profile

操作计算配置集

Usage:
    hammer compute-profile [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a compute profile
 delete, destroy               Delete a compute profile
 info, show                    Show a compute profile
 list, index                   List of compute profiles
 update                        Update a compute profile
 values                        Create update and delete Compute profile values

Options:
 -h, --help                    Print help

2.13.1. hammer compute-profile create

创建计算配置集

Usage:
    hammer compute-profile create [OPTIONS]

Options:
 --name NAME
 -h, --help                    Print help

2.13.2. hammer compute-profile delete

删除计算配置集

Usage:
    hammer compute-profile <delete|destroy> [OPTIONS]

Options:
 --id ID
 --name NAME                   Compute profile name
 -h, --help                    Print help

2.13.3. hammer compute-profile info

显示计算配置集

Usage:
    hammer compute-profile <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID
 --name NAME                   Compute profile name
 -h, --help                    Print help

Predefined field sets:
  ------------------------------------|-----|---------|-----
  FIELDS                              | ALL | DEFAULT | THIN
  ------------------------------------|-----|---------|-----
  Id                                  | x   | x       | x
  Name                                | x   | x       | x
  Locations/                          | x   | x       |
  Organizations/                      | x   | x       |
  Created at                          | x   | x       |
  Updated at                          | x   | x       |
  Compute attributes/id               | x   | x       |
  Compute attributes/name             | x   | x       |
  Compute attributes/compute resource | x   | x       |
  Compute attributes/vm attributes    | x   | x       |
  ------------------------------------|-----|---------|-----

2.13.4. hammer compute-profile list

计算配置集列表

Usage:
    hammer compute-profile <list|index> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --order ORDER                 Sort field and order, eg. ‘id DESC’
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return, 'all' to return all results
 --search SEARCH               Filter results
 -h, --help                    Print help

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

Search / Order fields:
  name                string

2.13.5. hammer 计算配置集更新

更新计算配置集

Usage:
    hammer compute-profile update [OPTIONS]

Options:
 --id ID
 --name NAME                   Compute profile name
 --new-name NEW_NAME
 -h, --help                    Print help

2.13.6. hammer 计算配置集值

创建更新和删除 Compute 配置集值

Usage:
    hammer compute-profile values [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-interface                 Add interface for Compute Profile
 add-volume                    Add volume for Compute Profile
 create                        Create compute profile set of values
 remove-interface              Remove compute profile interface
 remove-volume                 Remove compute profile volume
 update                        Update compute profile values
 update-interface              Update compute profile interface
 update-volume                 Update compute profile volume

Options:
 -h, --help                    Print help
2.13.6.1. hammer compute-profile 值 add-interface

为 Compute 配置文件添加接口

Usage:
    hammer compute-profile values add-interface [OPTIONS]

Options:
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --interface SET_VALUES                    Interface parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 -h, --help                                Print help

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --interface:

  GCE:
    --interface:

  Libvirt:
    --interface:
      compute_type                            Possible values: bridge, network
      compute_bridge                          Name of interface according to type
      compute_model                           Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000
      compute_network
      Libvirt instance network, e.g. default

  OpenStack:
    --interface:

  oVirt:
    --interface:
      compute_name          Compute name, e.g. eth0
      compute_network       Select one of available networks for a cluster, must be an ID or a name
      compute_interface     Interface type
      compute_vnic_profile  Vnic Profile

  Rackspace:
    --interface:

  VMware:
    --interface:
      compute_type        Type of the network adapter, for example one of:
                            VirtualVmxnet3
                            VirtualE1000
                          See documentation center for your version of vSphere to find more details about available adapter types:
                            https://www.vmware.com/support/pubs/
      compute_network     Network ID or Network Name from VMware

  AzureRM:
    --interface:
      compute_network     Select one of available Azure Subnets, must be an ID
      compute_public_ip   Public IP (None, Static, Dynamic)
      compute_private_ip  Static Private IP (expressed as true or false)
2.13.6.2. hammer compute-profile 值 add-volume

为计算配置文件添加卷

Usage:
    hammer compute-profile values add-volume [OPTIONS]

Options:
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --volume VOLUME                           Volume parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
 -h, --help                                Print help

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --volume:

  GCE:
    --volume:
      size_gb             Volume size in GB, integer value

  Libvirt:
    --volume:
      pool_name                    One of available storage pools
      capacity                     String value, e.g. 10G
      allocation
      Initial allocation, e.g. 0G
      format_type                  Possible values: raw, qcow2

  OpenStack:
    --volume:

  oVirt:
    --volume:
      size_gb             Volume size in GB, integer value
      storage_domain      ID or name of storage domain
      bootable            Boolean, set 1 for bootable, only one volume can be bootable
      preallocate         Boolean, set 1 to preallocate
      wipe_after_delete   Boolean, set 1 to wipe disk after delete
      interface           Disk interface name, must be ide, virto or virto_scsi

  Rackspace:
    --volume:

  VMware:
    --volume:
      name
      storage_pod         Storage Pod ID from VMware
      datastore           Datastore ID from VMware
      mode                persistent/independent_persistent/independent_nonpersistent
      size_gb             Integer number, volume size in GB
      thin                true/false
      eager_zero          true/false
      controller_key      Associated SCSI controller key

  AzureRM:
    --volume:
      disk_size_gb        Volume Size in GB (integer value)
      data_disk_caching   Data Disk Caching (None, ReadOnly, ReadWrite)
2.13.6.3. hammer compute-profile 值 create

创建计算配置集的值集

Usage:
    hammer compute-profile values create [OPTIONS]

Options:
 --compute-attributes COMPUTE_ATTRS        Compute resource attributes
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --interface INTERFACE                     Interface parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
                                           Can be specified multiple times.
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --volume VOLUME                           Volume parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
                                           Can be specified multiple times.
 -h, --help                                Print help

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      flavor_id
      groups
      security_group_ids
      managed_ip

  GCE:
    --volume:
      size_gb             Volume size in GB, integer value

    --interface:


    --compute-attributes:
      machine_type
      network
      associate_external_ip

  Libvirt:
    --volume:
      pool_name                    One of available storage pools
      capacity                     String value, e.g. 10G
      allocation
      Initial allocation, e.g. 0G
      format_type                  Possible values: raw, qcow2

    --interface:
      compute_type                            Possible values: bridge, network
      compute_bridge                          Name of interface according to type
      compute_model                           Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000
      compute_network
      Libvirt instance network, e.g. default

    --compute-attributes:
      cpus                Number of CPUs
      memory              String, amount of memory, value in bytes
      cpu_mode            Possible values: default, host-model, host-passthrough

  OpenStack:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      boot_from_volume
      flavor_ref
      image_ref
      tenant_id
      security_groups
      network

  oVirt:
    --volume:
      size_gb             Volume size in GB, integer value
      storage_domain      ID or name of storage domain
      bootable            Boolean, set 1 for bootable, only one volume can be bootable
      preallocate         Boolean, set 1 to preallocate
      wipe_after_delete   Boolean, set 1 to wipe disk after delete
      interface           Disk interface name, must be ide, virto or virto_scsi

    --interface:
      compute_name          Compute name, e.g. eth0
      compute_network       Select one of available networks for a cluster, must be an ID or a name
      compute_interface     Interface type
      compute_vnic_profile  Vnic Profile

    --compute-attributes:
      cluster             ID or name of cluster to use
      template            Hardware profile to use
      cores               Integer value, number of cores
      sockets             Integer value, number of sockets
      memory              Amount of memory, integer value in bytes
      ha                  Boolean, set 1 to high availability
      display_type        Possible values: VNC, SPICE
      keyboard_layout     Possible values: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr. Not usable if display type is SPICE.

  Rackspace:
    --volume:


    --interface:


    --compute-attributes:
      flavor_id

  VMware:
    --volume:
      name
      storage_pod         Storage Pod ID from VMware
      datastore           Datastore ID from VMware
      mode                persistent/independent_persistent/independent_nonpersistent
      size_gb             Integer number, volume size in GB
      thin                true/false
      eager_zero          true/false
      controller_key      Associated SCSI controller key

    --interface:
      compute_type        Type of the network adapter, for example one of:
                            VirtualVmxnet3
                            VirtualE1000
                          See documentation center for your version of vSphere to find more details about available adapter types:
                            https://www.vmware.com/support/pubs/
      compute_network     Network ID or Network Name from VMware

    --compute-attributes:
      cluster              Cluster ID from VMware
      corespersocket       Number of cores per socket (applicable to hardware versions < 10 only)
      cpus                 CPU count
      memory_mb            Integer number, amount of memory in MB
      path                 Path to folder
      resource_pool        Resource Pool ID from VMware
      firmware             automatic/bios/efi
      guest_id             Guest OS ID form VMware
      hardware_version     Hardware version ID from VMware
      memoryHotAddEnabled  Must be a 1 or 0, lets you add memory resources while the machine is on
      cpuHotAddEnabled     Must be a 1 or 0, lets you add CPU resources while the machine is on
      add_cdrom            Must be a 1 or 0, Add a CD-ROM drive to the virtual machine
      annotation           Annotation Notes
      scsi_controllers     List with SCSI controllers definitions
                             type - ID of the controller from VMware
                             key  - Key of the controller (e.g. 1000)

  AzureRM:
    --volume:
      disk_size_gb        Volume Size in GB (integer value)
      data_disk_caching   Data Disk Caching (None, ReadOnly, ReadWrite)

    --interface:
      compute_network     Select one of available Azure Subnets, must be an ID
      compute_public_ip   Public IP (None, Static, Dynamic)
      compute_private_ip  Static Private IP (expressed as true or false)

    --compute-attributes:
      resource_group      Existing Azure Resource Group of user
      vm_size             VM Size, eg. Standard_A0 etc.
      username            The Admin username
      password            The Admin password
      platform            OS type eg. Linux
      ssh_key_data        SSH key for passwordless authentication
      os_disk_caching     OS disk caching
      premium_os_disk     Premium OS Disk, Boolean as 0 or 1
      script_command      Custom Script Command
      script_uris         Comma seperated file URIs
2.13.6.4. hammer compute-profile 值 remove-interface

删除计算配置集接口

Usage:
    hammer compute-profile values remove-interface [OPTIONS]

Options:
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --interface-id INTERFACE ID               Interface id
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 -h, --help                                Print help
2.13.6.5. hammer compute-profile 值 remove-volume

删除计算配置集卷

Usage:
    hammer compute-profile values remove-volume [OPTIONS]

Options:
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --volume-id VOLUME_ID                     Volume id
 -h, --help                                Print help
2.13.6.6. hammer 计算配置集值更新

更新计算配置集值

Usage:
    hammer compute-profile values update [OPTIONS]

Options:
 --compute-attributes COMPUTE_ATTRS        Compute resource attributes, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --interface INTERFACE                     Interface parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
                                           Can be specified multiple times.
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --volume VOLUME                           Volume parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
                                           Can be specified multiple times.
 -h, --help                                Print help

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      flavor_id
      groups
      security_group_ids
      managed_ip

  GCE:
    --volume:
      size_gb             Volume size in GB, integer value

    --interface:


    --compute-attributes:
      machine_type
      network
      associate_external_ip

  Libvirt:
    --volume:
      pool_name                    One of available storage pools
      capacity                     String value, e.g. 10G
      allocation
      Initial allocation, e.g. 0G
      format_type                  Possible values: raw, qcow2

    --interface:
      compute_type                            Possible values: bridge, network
      compute_bridge                          Name of interface according to type
      compute_model                           Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000
      compute_network
      Libvirt instance network, e.g. default

    --compute-attributes:
      cpus                Number of CPUs
      memory              String, amount of memory, value in bytes
      cpu_mode            Possible values: default, host-model, host-passthrough

  OpenStack:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      boot_from_volume
      flavor_ref
      image_ref
      tenant_id
      security_groups
      network

  oVirt:
    --volume:
      size_gb             Volume size in GB, integer value
      storage_domain      ID or name of storage domain
      bootable            Boolean, set 1 for bootable, only one volume can be bootable
      preallocate         Boolean, set 1 to preallocate
      wipe_after_delete   Boolean, set 1 to wipe disk after delete
      interface           Disk interface name, must be ide, virto or virto_scsi

    --interface:
      compute_name          Compute name, e.g. eth0
      compute_network       Select one of available networks for a cluster, must be an ID or a name
      compute_interface     Interface type
      compute_vnic_profile  Vnic Profile

    --compute-attributes:
      cluster             ID or name of cluster to use
      template            Hardware profile to use
      cores               Integer value, number of cores
      sockets             Integer value, number of sockets
      memory              Amount of memory, integer value in bytes
      ha                  Boolean, set 1 to high availability
      display_type        Possible values: VNC, SPICE
      keyboard_layout     Possible values: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr. Not usable if display type is SPICE.

  Rackspace:
    --volume:


    --interface:


    --compute-attributes:
      flavor_id

  VMware:
    --volume:
      name
      storage_pod         Storage Pod ID from VMware
      datastore           Datastore ID from VMware
      mode                persistent/independent_persistent/independent_nonpersistent
      size_gb             Integer number, volume size in GB
      thin                true/false
      eager_zero          true/false
      controller_key      Associated SCSI controller key

    --interface:
      compute_type        Type of the network adapter, for example one of:
                            VirtualVmxnet3
                            VirtualE1000
                          See documentation center for your version of vSphere to find more details about available adapter types:
                            https://www.vmware.com/support/pubs/
      compute_network     Network ID or Network Name from VMware

    --compute-attributes:
      cluster              Cluster ID from VMware
      corespersocket       Number of cores per socket (applicable to hardware versions < 10 only)
      cpus                 CPU count
      memory_mb            Integer number, amount of memory in MB
      path                 Path to folder
      resource_pool        Resource Pool ID from VMware
      firmware             automatic/bios/efi
      guest_id             Guest OS ID form VMware
      hardware_version     Hardware version ID from VMware
      memoryHotAddEnabled  Must be a 1 or 0, lets you add memory resources while the machine is on
      cpuHotAddEnabled     Must be a 1 or 0, lets you add CPU resources while the machine is on
      add_cdrom            Must be a 1 or 0, Add a CD-ROM drive to the virtual machine
      annotation           Annotation Notes
      scsi_controllers     List with SCSI controllers definitions
                             type - ID of the controller from VMware
                             key  - Key of the controller (e.g. 1000)

  AzureRM:
    --volume:
      disk_size_gb        Volume Size in GB (integer value)
      data_disk_caching   Data Disk Caching (None, ReadOnly, ReadWrite)

    --interface:
      compute_network     Select one of available Azure Subnets, must be an ID
      compute_public_ip   Public IP (None, Static, Dynamic)
      compute_private_ip  Static Private IP (expressed as true or false)

    --compute-attributes:
      resource_group      Existing Azure Resource Group of user
      vm_size             VM Size, eg. Standard_A0 etc.
      username            The Admin username
      password            The Admin password
      platform            OS type eg. Linux
      ssh_key_data        SSH key for passwordless authentication
      os_disk_caching     OS disk caching
      premium_os_disk     Premium OS Disk, Boolean as 0 or 1
      script_command      Custom Script Command
      script_uris         Comma seperated file URIs
2.13.6.7. hammer compute-profile 值 update-interface

更新计算配置集接口

Usage:
    hammer compute-profile values update-interface [OPTIONS]

Options:
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --interface SET_VALUES                    Interface parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
 --interface-id INTERFACE_ID               Interface id
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 -h, --help                                Print help

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --interface:

  GCE:
    --interface:

  Libvirt:
    --interface:
      compute_type                            Possible values: bridge, network
      compute_bridge                          Name of interface according to type
      compute_model                           Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000
      compute_network
      Libvirt instance network, e.g. default

  OpenStack:
    --interface:

  oVirt:
    --interface:
      compute_name          Compute name, e.g. eth0
      compute_network       Select one of available networks for a cluster, must be an ID or a name
      compute_interface     Interface type
      compute_vnic_profile  Vnic Profile

  Rackspace:
    --interface:

  VMware:
    --interface:
      compute_type        Type of the network adapter, for example one of:
                            VirtualVmxnet3
                            VirtualE1000
                          See documentation center for your version of vSphere to find more details about available adapter types:
                            https://www.vmware.com/support/pubs/
      compute_network     Network ID or Network Name from VMware

  AzureRM:
    --interface:
      compute_network     Select one of available Azure Subnets, must be an ID
      compute_public_ip   Public IP (None, Static, Dynamic)
      compute_private_ip  Static Private IP (expressed as true or false)
2.13.6.8. hammer compute-profile 值 update-volume

更新计算配置集卷

Usage:
    hammer compute-profile values update-volume [OPTIONS]

Options:
 --compute-profile COMPUTE_PROFILE_NAME    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --volume VOLUME                           Volume parameters, should be comma separated list of values
                                           Comma-separated list of key=value.
                                           JSON is acceptable and preferred way for complex parameters
 --volume-id VOLUME_ID                     Volume id
 -h, --help                                Print help

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --volume:

  GCE:
    --volume:
      size_gb             Volume size in GB, integer value

  Libvirt:
    --volume:
      pool_name                    One of available storage pools
      capacity                     String value, e.g. 10G
      allocation
      Initial allocation, e.g. 0G
      format_type                  Possible values: raw, qcow2

  OpenStack:
    --volume:

  oVirt:
    --volume:
      size_gb             Volume size in GB, integer value
      storage_domain      ID or name of storage domain
      bootable            Boolean, set 1 for bootable, only one volume can be bootable
      preallocate         Boolean, set 1 to preallocate
      wipe_after_delete   Boolean, set 1 to wipe disk after delete
      interface           Disk interface name, must be ide, virto or virto_scsi

  Rackspace:
    --volume:

  VMware:
    --volume:
      name
      storage_pod         Storage Pod ID from VMware
      datastore           Datastore ID from VMware
      mode                persistent/independent_persistent/independent_nonpersistent
      size_gb             Integer number, volume size in GB
      thin                true/false
      eager_zero          true/false
      controller_key      Associated SCSI controller key

  AzureRM:
    --volume:
      disk_size_gb        Volume Size in GB (integer value)
      data_disk_caching   Data Disk Caching (None, ReadOnly, ReadWrite)

2.14. hammer 计算资源

操作计算资源

Usage:
    hammer compute-resource [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 associate-vms                 Associate VMs to Hosts
 clusters                      List available clusters for a compute resource
 create                        Create a compute resource
 delete, destroy               Delete a compute resource
 flavors                       List available flavors for a compute resource
 folders                       List available folders for a compute resource
 image                         View and manage compute resource's images
 images                        List available images for a compute resource
 info, show                    Show a compute resource
 list, index                   List all compute resources
 networks                      List available networks for a compute resource
 resource-pools                List resource pools for a compute resource cluster
 security-groups               List available security groups for a compute resource
 storage-domains               List storage domains for a compute resource
 storage-pods                  List storage pods for a compute resource
 update                        Update a compute resource
 virtual-machine               View and manage compute resource's virtual machines
 virtual-machines              List available virtual machines for a compute resource
 vnic-profiles                 List available vnic profiles for a compute resource, for RHEV only
 zones                         List available zone for a compute resource

Options:
 -h, --help                    Print help

2.14.1. hammer 计算资源关联-vms

将虚拟机与主机关联

Usage:
    hammer compute-resource associate-vms [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.14.2. hammer 计算资源集群

列出计算资源的可用集群

Usage:
    hammer compute-resource clusters [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.14.3. hammer 计算资源创建

创建计算资源

Usage:
    hammer compute-resource create [OPTIONS]

Options:
 --app-ident APP_IDENT                       Client ID for AzureRm
 --caching-enabled CACHING_ENABLED           Enable caching, for VMware only
                                             One of true/false, yes/no, 1/0.
 --cloud CLOUD                               Cloud
 --datacenter DATACENTER                     For RHEV, VMware Datacenter
 --description DESCRIPTION
 --display-type DISPLAY_TYPE                 For Libvirt and RHEV only
                                             Possible value(s): 'VNC', 'SPICE'
 --domain DOMAIN                             For RHEL OpenStack Platform (v3) only
 --email EMAIL                               Email for GCE only
 --key-path KEY_PATH                         Certificate path for GCE only
 --keyboard-layout KEYBOARD_LAYOUT           For RHEV only
                                             Possible value(s): 'ar', 'de-ch', 'es', 'fo', 'fr-ca', 'hu', 'ja', 'mk', 'no', 'pt-br', 'sv', 'da', 'en-gb', 'et', 'fr', 'fr-ch', 'is', 'lt', 'nl', 'pl', 'ru', 'th', 'de', 'en-us', 'fi', 'fr-be', 'hr', 'it', 'lv', 'nl-be', 'pt', 'sl', 'tr'
 --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                 REPLACE locations with given ids
                                             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
 --name NAME
 --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         REPLACE organizations with given ids.
                                             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
 --ovirt-quota OVIRT_QUOTA                   For RHEV only, ID or Name of quota to use
 --password PASSWORD                         Password for RHEV, EC2, VMware, RHEL OpenStack Platform. Secret key for EC2
 --project PROJECT                           Project id for GCE only
 --project-domain-id PROJECT_DOMAIN_ID       For RHEL OpenStack Platform (v3) only
 --project-domain-name PROJECT_DOMAIN_NAME   For RHEL OpenStack Platform (v3) only
 --provider PROVIDER                         Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, GCE, AzureRm
 --public-key PUBLIC_KEY                     For RHEV only
 --public-key-path PUBLIC_KEY_PATH           Path to a file that contains oVirt public key (For oVirt only)
 --region REGION                             For AzureRm eg. 'eastus' and for EC2 only. Use 'us-gov-west-1' for EC2 GovCloud region
 --secret-key SECRET_KEY                     Client Secret for AzureRm
 --server SERVER                             For VMware
 --set-console-password SET_CONSOLE_PASSWORD For Libvirt and VMware only
                                             One of true/false, yes/no, 1/0.
 --sub-id SUB_ID                             Subscription ID for AzureRm
 --tenant TENANT                             For RHEL OpenStack Platform and AzureRm only
 --url URL                                   URL for Libvirt, RHEV and RHEL OpenStack Platform
 --user USER                                 Username for RHEV, EC2, VMware, RHEL OpenStack Platform. Access Key for EC2.
 --zone ZONE                                 For GCE only
 -h, --help                                  Print help

2.14.4. hammer 计算资源删除

删除计算资源

Usage:
    hammer compute-resource <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.14.5. hammer 计算资源类型

列出计算资源的可用类别

Usage:
    hammer compute-resource flavors [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.14.6. hammer 计算资源文件夹

列出计算资源的可用文件夹

Usage:
    hammer compute-resource folders [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.14.7. hammer 计算资源镜像

查看并管理计算资源的镜像

Usage:
    hammer compute-resource image [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 available                     Show images available for addition
 create                        Create an image
 delete, destroy               Delete an image
 info, show                    Show an image
 list, index                   List all images for a compute resource
 update                        Update an image

Options:
 -h, --help                    Print help
2.14.7.1. hammer 计算资源镜像可用

显示可用于添加的镜像

Usage:
    hammer compute-resource image available [OPTIONS]

Options:
 --compute-resource NAME                 Compute resource name
 --compute-resource-id ID
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -------|-----|---------|-----
  FIELDS | ALL | DEFAULT | THIN
  -------|-----|---------|-----
  Name   | x   | x       | x
  Uuid   | x   | x       |
  -------|-----|---------|-----
2.14.7.2. hammer 计算资源镜像创建

创建镜像

Usage:
    hammer compute-resource image create [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME          Architecture name
 --architecture-id ARCHITECTURE_ID         ID of architecture
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --name NAME
 --operatingsystem OPERATINGSYSTEM_TITLE   Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID   ID of operating system
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --password PASSWORD
 --user-data USER_DATA                     Whether or not the image supports user data
                                           One of true/false, yes/no, 1/0.
 --username USERNAME
 --uuid UUID                               Template ID in the compute resource
 -h, --help                                Print help
2.14.7.3. hammer 计算资源镜像删除

删除镜像

Usage:
    hammer compute-resource image <delete|destroy> [OPTIONS]

Options:
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --id ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --name NAME                               Name to search by
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 -h, --help                                Print help
2.14.7.4. hammer 计算资源镜像信息

显示镜像

Usage:
    hammer compute-resource image <info|show> [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME          Architecture name
 --architecture-id ARCHITECTURE_ID         ID of architecture
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID ID of compute resource
 --fields FIELDS                           Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --name NAME                               Name to search by
 --operatingsystem OPERATINGSYSTEM_TITLE   Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID   ID of operating system
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 -h, --help                                Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Name             | x   | x       | x
  Operating system | x   | x       |
  Username         | x   | x       |
  Uuid             | x   | x       |
  User data        | x   | x       |
  Architecture     | x   | x       |
  Iam role         | x   | x       |
  Created at       | x   | x       |
  Updated at       | x   | x       |
  -----------------|-----|---------|-----
2.14.7.5. hammer 计算资源镜像列表

列出计算资源的所有镜像

Usage:
    hammer compute-resource image <list|index> [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME          Architecture name
 --architecture-id ARCHITECTURE_ID         ID of architecture
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID ID of compute resource
 --fields FIELDS                           Show specified fields or predefined field 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
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --operatingsystem OPERATINGSYSTEM_TITLE   Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID   ID of operating system
 --order ORDER                             Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --page PAGE                               Page number, starting at 1
 --per-page PER_PAGE                       Number of results per page to return, 'all' to return all results
 --search SEARCH                           Filter results
 -h, --help                                Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Name             | x   | x       | x
  Operating system | x   | x       |
  Username         | x   | x       |
  Uuid             | x   | x       |
  User data        | x   | x       |
  -----------------|-----|---------|-----

Search / Order fields:
  architecture        integer
  compute_resource    string
  name                string
  operatingsystem     integer
  user_data           Values: true, false
  username            string
2.14.7.6. hammer 计算资源镜像更新

更新镜像

Usage:
    hammer compute-resource image update [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME          Architecture name
 --architecture-id ARCHITECTURE_ID         ID of architecture
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --id ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --operatingsystem OPERATINGSYSTEM_TITLE   Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID   ID of operating system
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --password PASSWORD
 --user-data USER_DATA                     Whether or not the image supports user data
                                           One of true/false, yes/no, 1/0.
 --username USERNAME
 --uuid UUID                               Template ID in the compute resource
 -h, --help                                Print help

2.14.8. hammer 计算资源镜像

列出计算资源的可用镜像

Usage:
    hammer compute-resource images [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -------|-----|---------|-----
  FIELDS | ALL | DEFAULT | THIN
  -------|-----|---------|-----
  Uuid   | x   | x       |
  Name   | x   | x       | x
  -------|-----|---------|-----

2.14.9. hammer 计算资源信息

显示计算资源

Usage:
    hammer compute-resource <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Provider       | x   | x       |
  Description    | x   | x       |
  User           | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.14.10. hammer 计算资源列表

列出所有计算资源

Usage:
    hammer compute-resource <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  id                  integer
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  type                string

2.14.11. hammer 计算资源网络

列出计算资源的可用网络

Usage:
    hammer compute-resource networks [OPTIONS]

Options:
 --cluster-id CLUSTER_ID
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.14.12. hammer compute-resource resource-pools

列出计算资源集群的资源池

Usage:
    hammer compute-resource resource-pools [OPTIONS]

Options:
 --cluster-id CLUSTER_ID
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.14.13. hammer 计算资源安全组

列出计算资源的可用安全组

Usage:
    hammer compute-resource security-groups [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.14.14. hammer 计算资源 storage-domains

列出计算资源的存储域

Usage:
    hammer compute-resource storage-domains [OPTIONS]

Options:
 --cluster-id CLUSTER_ID
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --storage-domain STORAGE_DOMAIN
 -h, --help                              Print help

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

2.14.15. hammer compute-resource storage-pods

列出计算资源的存储 pod

Usage:
    hammer compute-resource storage-pods [OPTIONS]

Options:
 --cluster-id CLUSTER_ID
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --storage-pod STORAGE_POD
 -h, --help                              Print help

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

2.14.16. hammer 计算资源更新

更新计算资源

Usage:
    hammer compute-resource update [OPTIONS]

Options:
 --app-ident APP_IDENT                       Client ID for AzureRm
 --caching-enabled CACHING_ENABLED           Enable caching, for VMware only
                                             One of true/false, yes/no, 1/0.
 --cloud CLOUD                               Cloud
 --datacenter DATACENTER                     For RHEV, VMware Datacenter
 --description DESCRIPTION
 --display-type DISPLAY_TYPE                 For Libvirt and RHEV only
                                             Possible value(s): 'VNC', 'SPICE'
 --domain DOMAIN                             For RHEL OpenStack Platform (v3) only
 --email EMAIL                               Email for GCE only
 --id ID
 --key-path KEY_PATH                         Certificate path for GCE only
 --keyboard-layout KEYBOARD_LAYOUT           For RHEV only
                                             Possible value(s): 'ar', 'de-ch', 'es', 'fo', 'fr-ca', 'hu', 'ja', 'mk', 'no', 'pt-br', 'sv', 'da', 'en-gb', 'et', 'fr', 'fr-ch', 'is', 'lt', 'nl', 'pl', 'ru', 'th', 'de', 'en-us', 'fi', 'fr-be', 'hr', 'it', 'lv', 'nl-be', 'pt', 'sl', 'tr'
 --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                 REPLACE locations with given ids
                                             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
 --name NAME                                 Compute resource name
 --new-name NEW_NAME
 --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         REPLACE organizations with given ids.
                                             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
 --ovirt-quota OVIRT_QUOTA                   For RHEV only, ID or Name of quota to use
 --password PASSWORD                         Password for RHEV, EC2, VMware, RHEL OpenStack Platform. Secret key for EC2
 --project PROJECT                           Project id for GCE only
 --project-domain-id PROJECT_DOMAIN_ID       For RHEL OpenStack Platform (v3) only
 --project-domain-name PROJECT_DOMAIN_NAME   For RHEL OpenStack Platform (v3) only
 --provider PROVIDER                         Providers include Libvirt, Ovirt, EC2, Vmware, Openstack, GCE, AzureRm
 --public-key PUBLIC_KEY                     For RHEV only
 --public-key-path PUBLIC_KEY_PATH           Path to a file that contains oVirt public key (For oVirt only)
 --region REGION                             For AzureRm eg. 'eastus' and for EC2 only. Use 'us-gov-west-1' for EC2 GovCloud region
 --secret-key SECRET_KEY                     Client Secret for AzureRm
 --server SERVER                             For VMware
 --set-console-password SET_CONSOLE_PASSWORD For Libvirt and VMware only
                                             One of true/false, yes/no, 1/0.
 --sub-id SUB_ID                             Subscription ID for AzureRm
 --tenant TENANT                             For RHEL OpenStack Platform and AzureRm only
 --url URL                                   URL for Libvirt, RHEV and RHEL OpenStack Platform
 --user USER                                 Username for RHEV, EC2, VMware, RHEL OpenStack Platform. Access Key for EC2.
 --zone ZONE                                 For GCE only
 -h, --help                                  Print help

2.14.17. hammer 计算资源 virtual-machine

查看并管理计算资源的虚拟机

Usage:
    hammer compute-resource virtual-machine [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete, destroy               Delete a Virtual Machine
 info, show                    Show a virtual machine
 power                         Power a Virtual Machine

Options:
 -h, --help                    Print help
2.14.17.1. hammer 计算资源 virtual-machine delete

删除虚拟机

Usage:
    hammer compute-resource virtual-machine <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --vm-id VM-ID                           Virtual machine id, for gce use virtual machine name
 -h, --help                              Print help
2.14.17.2. hammer 计算资源 virtual-machine 信息

显示虚拟机

Usage:
    hammer compute-resource virtual-machine <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --vm-id VM-ID                           Virtual machine id, for gce use virtual machine name
 -h, --help                              Print help

Predefined field sets:
  -------|-----|---------|-----
  FIELDS | ALL | DEFAULT | THIN
  -------|-----|---------|-----
  Id     | x   | x       | x
  Name   | x   | x       | x
  -------|-----|---------|-----
2.14.17.3. hammer 计算资源虚拟机电源

关闭虚拟机

Usage:
    hammer compute-resource virtual-machine power [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --vm-id VM-ID                           Virtual machine id, for gce use virtual machine name
 -h, --help                              Print help

2.14.18. hammer 计算资源 virtual-machines

列出计算资源的可用虚拟机

Usage:
    hammer compute-resource virtual-machines [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.14.19. hammer compute-resource vnic-profiles

列出用于计算资源的可用 vnic 配置集,仅用于 RHEV

Usage:
    hammer compute-resource vnic-profiles [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ----------------|-----|---------|-----
  FIELDS          | ALL | DEFAULT | THIN
  ----------------|-----|---------|-----
  Vnic profile id | x   | x       | x
  Name            | x   | x       | x
  Network id      | x   | x       |
  ----------------|-----|---------|-----

2.14.20. hammer 计算资源区域

列出计算资源的可用区

Usage:
    hammer compute-resource zones [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Compute resource name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.15. hammer config-group

操作配置组

Usage:
    hammer config-group [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a config group
 delete, destroy               Delete a config group
 info, show                    Show a config group
 list, index                   List of config groups
 update                        Update a config group

Options:
 -h, --help                    Print help

2.15.1. hammer config-group create

创建配置组

Usage:
    hammer config-group create [OPTIONS]

Options:
 --name NAME
 --puppet-class-ids PUPPET_CLASS_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                     JSON is acceptable and preferred way for complex parameters
 --puppet-classes PUPPET_CLASS_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
 -h, --help                          Print help

2.15.2. hammer config-group delete

删除配置组

Usage:
    hammer config-group <delete|destroy> [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 -h, --help                    Print help

2.15.3. hammer config-group info

显示配置组

Usage:
    hammer config-group <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID
 --name NAME                   Name to search by
 -h, --help                    Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Puppetclasses/ | x   | x       |
  ---------------|-----|---------|-----

2.15.4. hammer config-group list

配置组列表

Usage:
    hammer config-group <list|index> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --order ORDER                 Sort field and order, eg. ‘id DESC’
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return, 'all' to return all results
 --search SEARCH               Filter results
 -h, --help                    Print help

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

Search / Order fields:
  class               string
  name                string

2.15.5. hammer config-group update

更新配置组

Usage:
    hammer config-group update [OPTIONS]

Options:
 --id ID
 --name NAME                         Name to search by
 --new-name NEW_NAME
 --puppet-class-ids PUPPET_CLASS_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                     JSON is acceptable and preferred way for complex parameters
 --puppet-classes PUPPET_CLASS_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
 -h, --help                          Print help

2.16. hammer config-report

浏览和读取报告

Usage:
    hammer config-report [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete, destroy               Delete a report
 info, show                    Show a report
 list, index                   List all reports

Options:
 -h, --help                    Print help

2.16.1. hammer config-report delete

删除报告

Usage:
    hammer config-report <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.16.2. hammer config-report info

显示报告

Usage:
    hammer config-report <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  --------------------------------|-----|---------|-----
  FIELDS                          | ALL | DEFAULT | THIN
  --------------------------------|-----|---------|-----
  Id                              | x   | x       | x
  Host                            | x   | x       |
  Reported at                     | x   | x       |
  Origin                          | x   | x       |
  Report status/applied           | x   | x       |
  Report status/restarted         | x   | x       |
  Report status/failed            | x   | x       |
  Report status/restart failures  | x   | x       |
  Report status/skipped           | x   | x       |
  Report status/pending           | x   | x       |
  Report metrics/config_retrieval | x   | x       |
  Report metrics/exec             | x   | x       |
  Report metrics/file             | x   | x       |
  Report metrics/package          | x   | x       |
  Report metrics/service          | x   | x       |
  Report metrics/user             | x   | x       |
  Report metrics/yumrepo          | x   | x       |
  Report metrics/filebucket       | x   | x       |
  Report metrics/cron             | x   | x       |
  Report metrics/total            | x   | x       |
  Logs/resource                   | x   | x       |
  Logs/message                    | x   | x       |
  --------------------------------|-----|---------|-----

2.16.3. hammer config-report list

列出所有报告

Usage:
    hammer config-report <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Host             | x   | x       |
  Last report      | x   | x       |
  Origin           | x   | x       |
  Applied          | x   | x       |
  Restarted        | x   | x       |
  Failed           | x   | x       |
  Restart failures | x   | x       |
  Skipped          | x   | x       |
  Pending          | x   | x       |
  -----------------|-----|---------|-----

Search / Order fields:
  applied             integer
  environment         string
  eventful            Values: true, false
  failed              integer
  failed_restarts     integer
  host                string
  host_id             integer
  hostgroup           string
  hostgroup_fullname  string
  hostgroup_title     string
  last_report         datetime
  location            string
  log                 text
  organization        string
  origin              string
  pending             integer
  reported            datetime
  resource            text
  restarted           integer
  skipped             integer

2.17. hammer content-credentials

操作服务器上的内容凭证

Usage:
    hammer content-credentials [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a Content Credential
 delete, destroy               Destroy a Content Credential
 info, show                    Show a Content Credential
 list, index                   List Content Credentials
 update                        Update a Content Credential

Options:
 -h, --help                    Print help

2.17.1. hammer content-credentials create

创建内容凭证

Usage:
    hammer content-credentials create [OPTIONS]

Options:
 --content-type CONTENT_TYPE             Type of content: “cert”, “gpg_key”
 --name NAME                             Name of the Content Credential
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --path KEY_FILE                         Key file
 -h, --help                              Print help

2.17.2. hammer content-credentials delete

销毁内容凭证

Usage:
    hammer content-credentials <delete|destroy> [OPTIONS]

Options:
 --id ID                                 Content Credential ID
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.17.3. hammer content-credentials info

显示内容凭证

Usage:
    hammer content-credentials <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Content Credential numeric identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  --------------------------|-----|---------|-----
  FIELDS                    | ALL | DEFAULT | THIN
  --------------------------|-----|---------|-----
  Id                        | x   | x       | x
  Name                      | x   | x       | x
  Organization              | x   | x       |
  Repositories/id           | x   | x       |
  Repositories/name         | x   | x       |
  Repositories/content type | x   | x       |
  Repositories/product      | x   | x       |
  Content                   | x   | x       |
  --------------------------|-----|---------|-----

2.17.4. hammer content-credentials list

列出内容凭证

Usage:
    hammer content-credentials <list|index> [OPTIONS]

Options:
 --content-type CONTENT_TYPE             Type of content
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Name of the Content Credential
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Content type | x   | x       |
  -------------|-----|---------|-----

2.17.5. hammer content-credentials 更新

更新内容凭证

Usage:
    hammer content-credentials update [OPTIONS]

Options:
 --content-type CONTENT_TYPE             Type of content: “cert”, “gpg_key”
 --id ID                                 Content Credential ID
 --name NAME                             Name to search by
 --new-name NEW_NAME                     Name of the Content Credential
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --path KEY_FILE                         Key file
 -h, --help                              Print help

2.18. hammer content-export

准备内容以导出到断开连接的 Katello

Usage:
    hammer content-export [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 complete                      Prepare content for a full export to a disconnected Katello
 generate-metadata             Writes export metadata to disk for use by the importing Katello. This command only needs to be used if the export was performed asynchronously or if the metadata was lost
 incremental                   Prepare content for an incremental export to a disconnected Katello
 list, index                   View content view export histories

Options:
 -h, --help                    Print help

2.18.1. hammer content-export complete

准备内容以完全导出到断开连接的 Katello

Usage:
    hammer content-export complete [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 library                       Performs a full export of the organization's library environment
 version                       Performs a full export a content view version

Options:
 -h, --help                    Print help
2.18.1.1. hammer 内容导出完整库

对机构的库环境执行完整导出

Usage:
    hammer content-export complete library [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB           Split the exported content into archives no greater than the specified size in gigabytes.
 --destination-server DESTINATION_SERVER Destination Server name
 --fail-on-missing-content               Fails if any of the repositories belonging to this organization are unexportable.
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help
2.18.1.2. hammer 内容导出完整版本

执行完整导出内容视图版本

Usage:
    hammer content-export complete version [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB                       Split the exported content into archives no greater than the specified size in gigabytes.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --destination-server DESTINATION_SERVER             Destination Server name
 --fail-on-missing-content                           Fails if any of the repositories belonging to this version are unexportable.
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --version VERSION                                   Filter versions by version number.
 -h, --help                                          Print help

2.18.2. hammer content-export generate-metadata

将导出元数据写入磁盘,供导入 Katello 使用。只有在异步执行导出或者元数据丢失时才需要使用这个命令

Usage:
    hammer content-export generate-metadata [OPTIONS]

Options:
 --id ID                       Generate metadata based on specified export history
 --task-id TASK_ID             Generate metadata based on output of the specified export task
 -h, --help                    Print help

2.18.3. hammer content-export incremental

为断开连接的 Katello 的增量导出准备内容

Usage:
    hammer content-export incremental [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 library                       Performs an incremental export of the organization's library environment
 version                       Performs an incremental export of a content view version

Options:
 -h, --help                    Print help
2.18.3.1. hammer 内容增量库

对机构的库环境执行增量导出

Usage:
    hammer content-export incremental library [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB           Split the exported content into archives no greater than the specified size in gigabytes.
 --destination-server DESTINATION_SERVER Destination Server name
 --fail-on-missing-content               Fails if any of the repositories belonging to this organization are unexportable.
 --from-history-id FROM_HISTORY_ID       Export history identifier used for incremental export. If not provided the most recent export history will be used.
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help
2.18.3.2. hammer 内容导出增量版本

对内容视图版本执行增量导出

Usage:
    hammer content-export incremental version [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB                       Split the exported content into archives no greater than the specified size in gigabytes.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --destination-server DESTINATION_SERVER             Destination Server name
 --fail-on-missing-content                           Fails if any of the repositories belonging to this version are unexportable.
 --from-history-id FROM_HISTORY_ID                   Export history identifier used for incremental export. If not provided the most recent export history will be used.
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --version VERSION                                   Filter versions by version number.
 -h, --help                                          Print help

2.18.4. hammer content-export list

查看内容视图导出历史

Usage:
    hammer content-export <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --destination-server DESTINATION_SERVER             Destination Server name
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --id ID                                             Content view version export history identifier
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --search SEARCH                                     Search string
 --type TYPE                                         Export Types
                                                     Possible value(s): 'complete', 'incremental'
 -h, --help                                          Print help

Predefined field sets:
  ------------------------|-----|---------|-----
  FIELDS                  | ALL | DEFAULT | THIN
  ------------------------|-----|---------|-----
  Id                      | x   | x       | x
  Destination server      | x   | x       |
  Path                    | x   | x       |
  Type                    | x   | x       |
  Content view version    | x   | x       |
  Content view version id | x   | x       |
  Created at              | x   | x       |
  Updated at              | x   | x       |
  ------------------------|-----|---------|-----

Search / Order fields:
  content_view_id          integer
  content_view_version_id  integer
  id                       integer
  type                     string

2.19. hammer content-import

从上游存档中导入内容。

Usage:
    hammer content-import [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 library                       Imports a content archive to an organization's library lifecycle environment
 list, index                   View content view import histories
 version                       Imports a content archive to a content view version

Options:
 -h, --help                    Print help

2.19.1. hammer content-import 库

将内容存档导入到机构的库生命周期阶段

Usage:
    hammer content-import library [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --metadata-file METADATA_FILE           Location of the metadata.json file. This is not required if the metadata.json file is already in the archive directory.
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --path PATH                             Directory containing the exported Content View Version
 -h, --help                              Print help

2.19.2. hammer content-import list

查看内容视图导入历史记录

Usage:
    hammer content-import <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --id ID                                             Content view version import history identifier
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --search SEARCH                                     Search string
 --type TYPE                                         Import Types
                                                     Possible value(s): 'complete', 'incremental'
 -h, --help                                          Print help

Predefined field sets:
  ------------------------|-----|---------|-----
  FIELDS                  | ALL | DEFAULT | THIN
  ------------------------|-----|---------|-----
  Id                      | x   | x       | x
  Path                    | x   | x       |
  Type                    | x   | x       |
  Content view version    | x   | x       |
  Content view version id | x   | x       |
  Created at              | x   | x       |
  Updated at              | x   | x       |
  ------------------------|-----|---------|-----

Search / Order fields:
  content_view_id          integer
  content_view_version_id  integer
  id                       integer
  type                     string

2.19.3. hammer content-import 版本

将内容存档导入到内容视图版本

Usage:
    hammer content-import version [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --metadata-file METADATA_FILE           Location of the metadata.json file. This is not required if the metadata.json file is already in the archive directory.
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --path PATH                             Directory containing the exported Content View Version
 -h, --help                              Print help

2.20. hammer content-view

操作内容视图

Usage:
    hammer content-view [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-repository                Associate a resource
 add-version                   Add a content view version to a composite view
 component                     View and manage components
 copy                          Copy a content view
 create                        Create a content view
 delete                        Delete a content view
 filter                        View and manage filters
 info, show                    Show a content view
 list, index                   List content views
 publish                       Publish a content view
 purge                         Delete old versions of a content view
 remove                        Remove versions and/or environments from a content view and reassign systems and keys
 remove-from-environment       Remove a content view from an environment
 remove-repository             Disassociate a resource
 remove-version                Remove a content view version from a composite view
 update                        Update a content view
 version                       View and manage content view versions

Options:
 -h, --help                    Print help

2.20.1. hammer content-view add-repository

关联资源

Usage:
    hammer content-view add-repository [OPTIONS]

Options:
 --id ID                                 Content view numeric identifier
 --name NAME                             Content view name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository ID
 -h, --help                              Print help

2.20.2. hammer content-view add-version

将内容视图版本添加到复合视图中

Usage:
    hammer content-view add-version [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view id to search by
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --id ID                                             Content view numeric identifier
 --name NAME                                         Content view name to search by
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID to search by
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 -h, --help                                          Print help

2.20.3. hammer 内容概述组件

查看和管理组件

Usage:
    hammer content-view component [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add                           Add components to the content view
 list, index                   List components attached to this content view
 remove                        Remove components from the content view
 update                        Update a component associated with the content view

Options:
 -h, --help                    Print help
2.20.3.1. hammer content-view 组件添加

在内容视图中添加组件

Usage:
    hammer content-view component add [OPTIONS]

Options:
 --component-content-view COMPONENT_CONTENT_VIEW_NAME                    Content View name of the component who's latest version is desired
 --component-content-view-id COMPONENT_CONTENT_VIEW_ID                   Content View identifier of the component who's latest version is desired
 --component-content-view-version COMPONENT_CONTENT_VIEW_VERSION_VERSION Content View Version number of the component. Either use this or --component-content-view-version-id option
 --component-content-view-version-id COMPONENT_CONTENT_VIEW_VERSION_ID   Content View Version identifier of the component
 --composite-content-view COMPOSITE_CONTENT_VIEW_NAME                    Name of the composite content view
 --composite-content-view-id COMPOSITE_CONTENT_VIEW_ID                   Composite content view identifier
 --latest                                                                Select the latest version of the components content view is desired
 --organization ORGANIZATION_NAME                                        Organization name to search by
 --organization-id ORGANIZATION_ID                                       Organization ID to search by
 --organization-label ORGANIZATION_LABEL                                 Organization label to search by
 -h, --help                                                              Print help
2.20.3.2. hammer 内容概述组件列表

列出附加到此内容视图的组件

Usage:
    hammer content-view component <list|index> [OPTIONS]

Options:
 --composite-content-view COMPOSITE_CONTENT_VIEW_NAME  Name of the composite content view
 --composite-content-view-id COMPOSITE_CONTENT_VIEW_ID Composite content view identifier
 --fields FIELDS                                       Show specified fields or predefined field 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
 --organization ORGANIZATION_NAME                      Organization name to search by
 --organization-id ORGANIZATION_ID                     Organization ID to search by
 --organization-label ORGANIZATION_LABEL               Organization label to search by
 -h, --help                                            Print help

Predefined field sets:
  ----------------|-----|---------|-----
  FIELDS          | ALL | DEFAULT | THIN
  ----------------|-----|---------|-----
  Id              | x   | x       | x
  Name            | x   | x       |
  Version         | x   | x       |
  Current version | x   | x       |
  Version id      | x   | x       |
  ----------------|-----|---------|-----
2.20.3.3. hammer content-view 组件删除

从内容视图中删除组件

Usage:
    hammer content-view component remove [OPTIONS]

Options:
 --component-content-view-ids COMPONENT_CONTENT_VIEW_IDs Array of component content view identfiers to remove. Comma separated list of values
 --component-content-views COMPONENT_CONTENT_VIEW_NAMES  Array of component content view names to remove. Comma separated list of values
 --component-ids COMPONENT_IDS                           Array of content view component IDs to remove. Identifier of the component association
                                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                         JSON is acceptable and preferred way for complex parameters
 --composite-content-view COMPOSITE_CONTENT_VIEW_NAME    Name of the composite content view
 --composite-content-view-id COMPOSITE_CONTENT_VIEW_ID   Composite content view identifier
 --organization ORGANIZATION_NAME                        Organization name to search by
 --organization-id ORGANIZATION_ID                       Organization ID to search by
 --organization-label ORGANIZATION_LABEL                 Organization label to search by
 -h, --help                                              Print help
2.20.3.4. hammer 内容概述组件更新

更新与内容视图关联的组件

Usage:
    hammer content-view component update [OPTIONS]

Options:
 --component-content-view COMPONENT_CONTENT_VIEW_NAME                    Content View name of the component who's latest version is desired
 --component-content-view-id COMPONENT_CONTENT_VIEW_ID                   Content View identifier of the component who's latest version is desired
 --component-content-view-version COMPONENT_CONTENT_VIEW_VERSION_VERSION Content View Version number of the component. Either use this or --component-content-view-version-id option
 --component-content-view-version-id COMPONENT_CONTENT_VIEW_VERSION_ID   Content View Version identifier of the component
 --composite-content-view COMPOSITE_CONTENT_VIEW_NAME                    Name of the composite content view
 --composite-content-view-id COMPOSITE_CONTENT_VIEW_ID                   Composite content view identifier
 --id ID                                                                 Content view component ID. Identifier of the component association
 --latest                                                                Select the latest version of the components content view is desired
 --organization ORGANIZATION_NAME                                        Organization name to search by
 --organization-id ORGANIZATION_ID                                       Organization ID to search by
 --organization-label ORGANIZATION_LABEL                                 Organization label to search by
 -h, --help                                                              Print help

2.20.4. hammer content-view copy

复制内容视图

Usage:
    hammer content-view copy [OPTIONS]

Options:
 --id ID                                 Content view numeric identifier
 --name NAME                             Content view name to search by
 --new-name NEW_NAME                     New content view name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 -h, --help                              Print help

2.20.5. hammer content-view create

创建内容视图

Usage:
    hammer content-view create [OPTIONS]

Options:
 --auto-publish AUTO_PUBLISH             Enable/Disable auto publish of composite view
                                         One of true/false, yes/no, 1/0.
 --component-ids COMPONENT_IDS           List of component content view version ids for composite views
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --composite                             Create a composite content view
 --description DESCRIPTION               Description for the content view
 --import-only                           Designate this Content View for importing from upstream servers only.
 --label LABEL                           Content view label
 --name NAME                             Name of the content view
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository-ids REPOSITORY_IDS         List of repository ids
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --solve-dependencies SOLVE_DEPENDENCIES Solve RPM dependencies by default on Content View publish, defaults to false
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

2.20.6. hammer content-view delete

删除内容视图

Usage:
    hammer content-view delete [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --id ID                                 Content view numeric identifier
 --name NAME                             Content view name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 -h, --help                              Print help

2.20.7. hammer content-view 过滤器

查看和管理过滤器

Usage:
    hammer content-view filter [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-repository                Associate a resource
 create                        Create a filter for a content view
 delete, destroy               Delete a filter
 info, show                    Show filter info
 list, index                   List filters
 remove-repository             Disassociate a resource
 rule                          View and manage filter rules
 update                        Update a filter

Options:
 -h, --help                    Print help
2.20.7.1. hammer content-view 过滤器 add-repository

关联资源

Usage:
    hammer content-view filter add-repository [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view numeric identifier
 --id ID                                 Filter identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository ID
 -h, --help                              Print help
2.20.7.2. hammer content-view 过滤器创建

为内容视图创建过滤器

Usage:
    hammer content-view filter create [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                  Content view name to search by
 --content-view-id CONTENT_VIEW_ID                 Content view identifier
 --description DESCRIPTION                         Description of the filter
 --inclusion INCLUSION                             Specifies if content should be included or excluded, default: inclusion=false
                                                   One of true/false, yes/no, 1/0.
 --name NAME                                       Name of the filter
 --organization ORGANIZATION_NAME                  Organization name to search by
 --organization-id ORGANIZATION_ID                 Organization ID to search by
 --organization-label ORGANIZATION_LABEL           Organization label to search by
 --original-module-streams ORIGINAL_MODULE_STREAMS Add all module streams without errata to the included/excluded list. (module stream filter only)
                                                   One of true/false, yes/no, 1/0.
 --original-packages ORIGINAL_PACKAGES             Add all packages without errata to the included/excluded list. (package filter only)
                                                   One of true/false, yes/no, 1/0.
 --product PRODUCT_NAME                            Product name to search by
 --product-id PRODUCT_ID                           Product numeric identifier
 --repositories REPOSITORY_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
 --repository-ids REPOSITORY_IDS                   List of repository ids
                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                   JSON is acceptable and preferred way for complex parameters
 --type TYPE                                       Type of filter (e.g. rpm, package_group, erratum, docker, modulemd)
 -h, --help                                        Print help
2.20.7.3. hammer content-view filter delete

删除过滤器

Usage:
    hammer content-view filter <delete|destroy> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view identifier
 --id ID                                 Filter identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 -h, --help                              Print help
2.20.7.4. hammer content-view 过滤器信息

show filter info

Usage:
    hammer content-view filter <info|show> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view identifier
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Filter identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 -h, --help                              Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Filter id             | x   | x       | x
  Name                  | x   | x       | x
  Type                  | x   | x       |
  Inclusion             | x   | x       |
  Description           | x   | x       |
  Repositories/id       | x   | x       |
  Repositories/name     | x   | x       |
  Repositories/label    | x   | x       |
  Rules/id              | x   | x       |
  Rules/name            | x   | x       |
  Rules/version         | x   | x       |
  Rules/minimum version | x   | x       |
  Rules/maximum version | x   | x       |
  Rules/errata id       | x   | x       |
  Rules/start date      | x   | x       |
  Rules/end date        | x   | x       |
  Rules/types           | x   | x       |
  Rules/created         | x   | x       |
  Rules/updated         | x   | x       |
  ----------------------|-----|---------|-----
2.20.7.5. hammer content-view 过滤器列表

列表过滤器

Usage:
    hammer content-view filter <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view identifier
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Filter content view filters by name
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 --types TYPES                           Types of filters
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Filter id   | x   | x       | x
  Name        | x   | x       | x
  Description | x   | x       |
  Type        | x   | x       |
  Inclusion   | x   | x       |
  ------------|-----|---------|-----

Search / Order fields:
  content_type        Values: rpm, package_group, erratum, docker, modulemd
  inclusion_type      Values: include, exclude
  name                string
2.20.7.6. hammer content-view 过滤器 remove-repository

解除关联资源

Usage:
    hammer content-view filter remove-repository [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view numeric identifier
 --id ID                                 Filter identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository ID
 -h, --help                              Print help
2.20.7.7. hammer content-view 过滤器规则

查看和管理过滤器规则

Usage:
    hammer content-view filter rule [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a filter rule. The parameters included should be based upon the filter type.
 delete, destroy               Delete a filter rule
 info, show                    Show filter rule info
 list, index                   List filter rules
 update                        Update a filter rule. The parameters included should be based upon the filter type.

Options:
 -h, --help                    Print help
2.20.7.7.1. hammer content-view 过滤器规则创建

创建过滤规则。包含的参数应基于过滤器类型。

Usage:
    hammer content-view filter rule create [OPTIONS]

Options:
 --architecture ARCHITECTURE                     Package: architecture
 --content-view CONTENT_VIEW_NAME                Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME  Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID Filter identifier
 --content-view-id CONTENT_VIEW_ID
 --date-type DATE_TYPE                           Erratum: search using the 'Issued On' or 'Updated On' column of the errata. Values are 'issued'/'updated'
 --end-date END_DATE                             Erratum: end date (YYYY-MM-DD)
 --errata-id ERRATA_ID                           Erratum: id
 --errata-ids ERRATA_IDS                         Erratum: IDs or a select all object
                                                 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-version MAX_VERSION                       Package: maximum version
 --min-version MIN_VERSION                       Package: minimum version
 --module-stream-ids MODULE_STREAM_IDS           Module stream ids
                                                 Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                 JSON is acceptable and preferred way for complex parameters
 --name NAME                                     Package, package group, or docker tag 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
 --names NAMES                                   Package and package group names
 --organization ORGANIZATION_NAME                Organization name to search by
 --organization-id ORGANIZATION_ID               Organization ID to search by
 --organization-label ORGANIZATION_LABEL         Organization label to search by
 --start-date START_DATE                         Erratum: start date (YYYY-MM-DD)
 --types TYPES                                   Erratum: types (enhancement, bugfix, security)
                                                 Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                 JSON is acceptable and preferred way for complex parameters
 --uuid UUID                                     Package group: uuid
 --version VERSION                               Package: version
 -h, --help                                      Print help
2.20.7.7.2. hammer content-view filter rule delete

删除过滤规则

Usage:
    hammer content-view filter rule <delete|destroy> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME  Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID Filter identifier
 --content-view-id CONTENT_VIEW_ID
 --id ID                                         Rule identifier
 --name NAME                                     Name to search by
 --organization ORGANIZATION_NAME                Organization name to search by
 --organization-id ORGANIZATION_ID               Organization ID to search by
 --organization-label ORGANIZATION_LABEL         Organization label to search by
 -h, --help                                      Print help
2.20.7.7.3. hammer content-view 过滤规则信息

show filter rule info

Usage:
    hammer content-view filter rule <info|show> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME  Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID Filter identifier
 --content-view-id CONTENT_VIEW_ID
 --fields FIELDS                                 Show specified fields or predefined field 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
 --id ID                                         Rule identifier
 --name NAME                                     Name to search by
 --organization ORGANIZATION_NAME                Organization name to search by
 --organization-id ORGANIZATION_ID               Organization ID to search by
 --organization-label ORGANIZATION_LABEL         Organization label to search by
 -h, --help                                      Print help

Predefined field sets:
  ----------------|-----|---------|-----
  FIELDS          | ALL | DEFAULT | THIN
  ----------------|-----|---------|-----
  Rule id         | x   | x       | x
  Filter id       | x   | x       |
  Name            | x   | x       | x
  Version         | x   | x       |
  Minimum version | x   | x       |
  Maximum version | x   | x       |
  Architecture    | x   | x       |
  Errata id       | x   | x       |
  Start date      | x   | x       |
  End date        | x   | x       |
  Date type       | x   | x       |
  Types           | x   | x       |
  Created         | x   | x       |
  Updated         | x   | x       |
  ----------------|-----|---------|-----
2.20.7.7.4. hammer content-view 过滤器规则列表

列出过滤器规则

Usage:
    hammer content-view filter rule <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME  Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID Filter identifier
 --content-view-id CONTENT_VIEW_ID
 --errata-id ERRATA_ID                           Errata_id of the content view filter rule
 --fields FIELDS                                 Show specified fields or predefined field 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
 --full-result FULL_RESULT                       Whether or not to show all results
                                                 One of true/false, yes/no, 1/0.
 --name NAME                                     Name of the content view filter rule
 --order ORDER                                   Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                Organization name to search by
 --organization-id ORGANIZATION_ID               Organization ID to search by
 --organization-label ORGANIZATION_LABEL         Organization label to search by
 --page PAGE                                     Page number, starting at 1
 --per-page PER_PAGE                             Number of results per page to return
 --search SEARCH                                 Search string
 -h, --help                                      Print help

Predefined field sets:
  ----------------|-----|---------|-----
  FIELDS          | ALL | DEFAULT | THIN
  ----------------|-----|---------|-----
  Rule id         | x   | x       | x
  Filter id       | x   | x       |
  Name            | x   | x       | x
  Version         | x   | x       |
  Minimum version | x   | x       |
  Maximum version | x   | x       |
  Architecture    | x   | x       |
  Errata id       | x   | x       |
  Start date      | x   | x       |
  End date        | x   | x       |
  ----------------|-----|---------|-----
2.20.7.7.5. hammer content-view 过滤器规则更新

更新过滤规则。包含的参数应基于过滤器类型。

Usage:
    hammer content-view filter rule update [OPTIONS]

Options:
 --architecture ARCHITECTURE                     Package: architecture
 --content-view CONTENT_VIEW_NAME                Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME  Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID Filter identifier
 --content-view-id CONTENT_VIEW_ID
 --end-date END_DATE                             Erratum: end date (YYYY-MM-DD)
 --errata-id ERRATA_ID                           Erratum: id
 --id ID                                         Rule identifier
 --max-version MAX_VERSION                       Package: maximum version
 --min-version MIN_VERSION                       Package: minimum version
 --name NAME                                     Name to search by
 --new-name NEW_NAME                             Package, package group, or docker tag: name
 --organization ORGANIZATION_NAME                Organization name to search by
 --organization-id ORGANIZATION_ID               Organization ID to search by
 --organization-label ORGANIZATION_LABEL         Organization label to search by
 --start-date START_DATE                         Erratum: start date (YYYY-MM-DD)
 --types TYPES                                   Erratum: types (enhancement, bugfix, security)
                                                 Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                 JSON is acceptable and preferred way for complex parameters
 --version VERSION                               Package: version
 -h, --help                                      Print help
2.20.7.8. hammer content-view 过滤器更新

更新过滤器

Usage:
    hammer content-view filter update [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                  Content view name to search by
 --content-view-id CONTENT_VIEW_ID                 Content view identifier
 --description DESCRIPTION                         Description of the filter
 --id ID                                           Filter identifier
 --inclusion INCLUSION                             Specifies if content should be included or excluded, default: inclusion=false
                                                   One of true/false, yes/no, 1/0.
 --name NAME                                       Name to search by
 --new-name NEW_NAME                               New name for the filter
 --organization ORGANIZATION_NAME                  Organization name to search by
 --organization-id ORGANIZATION_ID                 Organization ID to search by
 --organization-label ORGANIZATION_LABEL           Organization label to search by
 --original-module-streams ORIGINAL_MODULE_STREAMS Add all module streams without errata to the included/excluded list. (module stream filter only)
                                                   One of true/false, yes/no, 1/0.
 --original-packages ORIGINAL_PACKAGES             Add all packages without errata to the included/excluded list. (package filter only)
                                                   One of true/false, yes/no, 1/0.
 --repositories REPOSITORY_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
 --repository-ids REPOSITORY_IDS                   List of repository ids
                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                   JSON is acceptable and preferred way for complex parameters
 -h, --help                                        Print help

2.20.8. hammer 内容查看信息

显示内容视图

Usage:
    hammer content-view <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Content view numeric identifier
 --name NAME                             Content view name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 -h, --help                              Print help

Predefined field sets:
  -----------------------------------|-----|---------|-----
  FIELDS                             | ALL | DEFAULT | THIN
  -----------------------------------|-----|---------|-----
  Id                                 | x   | x       | x
  Name                               | x   | x       | x
  Label                              | x   | x       |
  Composite                          | x   | x       |
  Description                        | x   | x       |
  Content host count                 | x   | x       |
  Solve dependencies                 | x   | x       |
  Organization                       | x   | x       |
  Yum repositories/id                | x   | x       |
  Yum repositories/name              | x   | x       |
  Yum repositories/label             | x   | x       |
  Container image repositories/id    | x   | x       |
  Container image repositories/name  | x   | x       |
  Container image repositories/label | x   | x       |
  Ostree repositories/id             | x   | x       |
  Ostree repositories/name           | x   | x       |
  Ostree repositories/label          | x   | x       |
  Lifecycle environments/id          | x   | x       |
  Lifecycle environments/name        | x   | x       |
  Versions/id                        | x   | x       |
  Versions/version                   | x   | x       |
  Versions/published                 | x   | x       |
  Components/id                      | x   | x       |
  Components/name                    | x   | x       |
  Activation keys/                   | x   | x       |
  -----------------------------------|-----|---------|-----

2.20.9. hammer content-view list

列出内容视图

Usage:
    hammer content-view <list|index> [OPTIONS]

Options:
 --composite COMPOSITE                               Filter only composite content views
                                                     One of true/false, yes/no, 1/0.
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name of the content view
 --noncomposite NONCOMPOSITE                         Filter out composite content views
                                                     One of true/false, yes/no, 1/0.
 --nondefault NONDEFAULT                             Filter out default content views
                                                     One of true/false, yes/no, 1/0.
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --search SEARCH                                     Search string
 --without WITHOUT                                   Do not include this array of content views
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 -h, --help                                          Print help

Predefined field sets:
  ----------------|-----|---------|-----
  FIELDS          | ALL | DEFAULT | THIN
  ----------------|-----|---------|-----
  Content view id | x   | x       | x
  Name            | x   | x       | x
  Label           | x   | x       |
  Composite       | x   | x       |
  Last published  | x   | x       |
  Repository ids  | x   | x       |
  ----------------|-----|---------|-----

Search / Order fields:
  composite           boolean
  label               string
  name                string
  organization_id     integer

2.20.10. hammer 内容视图发布

发布内容视图

Usage:
    hammer content-view publish [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --description DESCRIPTION               Description for the new published content view version
 --id ID                                 Content view identifier
 --major MAJOR                           Override the major version number
 --minor MINOR                           Override the minor version number
 --name NAME                             Content view name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --repos-units REPOS_UNITS               Specify the list of units in each repo
                                         Comma separated list of values defined by a schema. See Option details section below.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --repos-units       "label=<string>\,rpm_filenames=<array>, ... "

2.20.11. hammer content-view purge

删除内容视图的旧版本

Usage:
    hammer content-view purge [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --count COUNT                           Count of unused versions to keep
                                         Default: 3
 --id ID                                 Content View numeric identifier
 --name NAME                             Content View name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 -h, --help                              Print help

2.20.12. hammer content-view remove

从内容视图中删除版本和/或环境,并重新分配系统和密钥

Usage:
    hammer content-view remove [OPTIONS]

Options:
 --async                                               Do not wait for the task
 --content-view-version-ids CONTENT_VIEW_VERSION_IDS   Content view version identifiers to be deleted
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --content-view-versions CONTENT_VIEW_VERSION_VERSIONS Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --environment-ids ENVIRONMENT_IDS                     (--environment-ids is deprecated: Use --lifecycle-environment-ids instead)
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --environments ENVIRONMENT_NAMES                      (--environments is deprecated: Use --lifecycle-environments instead)
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --id ID                                               Content view numeric identifier
 --key-content-view-id KEY_CONTENT_VIEW_ID             Content view to reassign orphaned activation keys to
 --key-environment-id KEY_ENVIRONMENT_ID               Environment to reassign orphaned activation keys to
 --lifecycle-environment-ids LIFECYCLE_ENVIRONMENT_IDS Environment numeric identifiers to be removed
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --lifecycle-environments LIFECYCLE_ENVIRONMENT_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
 --name NAME                                           Content view name to search by
 --organization ORGANIZATION_NAME                      Organization name to search by
 --organization-id ORGANIZATION_ID                     Organization ID to search by
 --organization-label ORGANIZATION_LABEL               Organization label to search by
 --system-content-view-id SYSTEM_CONTENT_VIEW_ID       Content view to reassign orphaned systems to
 --system-environment-id SYSTEM_ENVIRONMENT_ID         Environment to reassign orphaned systems to
 -h, --help                                            Print help

2.20.13. hammer content-view remove-from-environment

从环境中删除内容视图

Usage:
    hammer content-view remove-from-environment [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Content view numeric identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Content view name to search by
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID to search by
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 -h, --help                                          Print help

2.20.14. hammer content-view remove-repository

解除关联资源

Usage:
    hammer content-view remove-repository [OPTIONS]

Options:
 --id ID                                 Content view numeric identifier
 --name NAME                             Content view name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository ID
 -h, --help                              Print help

2.20.15. hammer content-view remove-version

从复合视图中删除内容视图版本

Usage:
    hammer content-view remove-version [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --id ID                                             Content view numeric identifier
 --name NAME                                         Content view name to search by
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID to search by
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 -h, --help                                          Print help

2.20.16. hammer content-view 更新

更新内容视图

Usage:
    hammer content-view update [OPTIONS]

Options:
 --auto-publish AUTO_PUBLISH             Enable/Disable auto publish of composite view
                                         One of true/false, yes/no, 1/0.
 --component-ids COMPONENT_IDS           List of component content view version ids for composite views
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --description DESCRIPTION               Description for the content view
 --id ID                                 Content view identifier
 --import-only IMPORT_ONLY               Designate this Content View for importing from upstream servers only. Defaults to false
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Content view name to search by
 --new-name NEW_NAME                     New name for the content view
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --repository-ids REPOSITORY_IDS         List of repository ids
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --solve-dependencies SOLVE_DEPENDENCIES Solve RPM dependencies by default on Content View publish, defaults to false
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

2.20.17. hammer content-view 版本

查看并管理内容视图版本

Usage:
    hammer content-view version [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete                        Remove content view version
 incremental-update            Perform an Incremental Update on one or more Content View Versions
 info, show                    Show content view version
 list, index                   List content view versions
 promote                       Promote a content view version
 republish-repositories        Forces a republish of the version's repositories' metadata
 update                        Update a content view version

Options:
 -h, --help                    Print help
2.20.17.1. hammer content-view 版本删除

删除内容视图版本

Usage:
    hammer content-view version delete [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --version VERSION                                   Content view version number
 -h, --help                                          Print help
2.20.17.2. hammer content-view 版本 incremental-update

在一个或多个内容视图版本中执行增量更新

Usage:
    hammer content-view version incremental-update [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content View Version Ids to perform an incremental update on.  May contain composites as well as one or more components to update.
 --deb-ids DEB_IDS                                   Deb Package ids to copy into the new versions
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --debs DEB_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
 --description DESCRIPTION                           The description for the new generated Content View Versions
 --errata-ids ERRATA_IDS                             Errata ids to copy into the new versions
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --host-ids HOST_IDS                                 IDs of hosts to update
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --lifecycle-environment-ids ENVIRONMENT_IDS         List of lifecycle environment IDs to update the content view version in
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --lifecycle-environments ENVIRONMENTS               List of lifecycle environment names to update the content view version in
                                                     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 ORGANIZATION_NAME                    Organization name for resolving lifecycle environment names
 --organization-id ORGANIZATION_ID                   Organization id for resolving lifecycle environment names
 --package-ids PACKAGE_IDS                           Package ids to copy into the new versions
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --packages PACKAGE_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
 --propagate-all-composites PROPAGATE_ALL_COMPOSITES If true, will publish a new composite version using any specified content_view_version_id that has been promoted to a lifecycle environment
                                                     One of true/false, yes/no, 1/0.
 --resolve-dependencies RESOLVE_DEPENDENCIES         If true, when adding the specified errata or packages, any needed dependencies will be copied as well. Defaults to true
                                                     One of true/false, yes/no, 1/0.
 --update-all-hosts UPDATE                           Update all editable and applicable hosts within the specified Content View and \
                                                                    Lifecycle Environments
                                                     One of true/false, yes/no, 1/0.
 -h, --help                                          Print help
2.20.17.3. hammer 内容查看版本信息

显示内容视图版本

Usage:
    hammer content-view version <info|show> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                     Show specified fields or predefined field 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
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --version VERSION                                   Content view version number
 -h, --help                                          Print help

Predefined field sets:
  -----------------------------|-----|---------|-----
  FIELDS                       | ALL | DEFAULT | THIN
  -----------------------------|-----|---------|-----
  Id                           | x   | x       | x
  Name                         | x   | x       |
  Version                      | x   | x       | x
  Description                  | x   | x       |
  Content view id              | x   | x       |
  Content view name            | x   | x       |
  Content view label           | x   | x       |
  Lifecycle environments/id    | x   | x       |
  Lifecycle environments/name  | x   | x       |
  Lifecycle environments/label | x   | x       |
  Repositories/id              | x   | x       |
  Repositories/name            | x   | x       |
  Repositories/label           | x   | x       |
  -----------------------------|-----|---------|-----
2.20.17.4. hammer content-view 版本列表

列出内容视图版本

Usage:
    hammer content-view version <list|index> [OPTIONS]

Options:
 --composite-version-id COMPOSITE_VERSION_ID         Filter versions that are components in the specified composite version
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view identifier
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --search SEARCH                                     Search string
 --triggered-by-id TRIGGERED_BY_ID                   Filter composite versions whose publish was triggered by the specified component version
 --version VERSION                                   Filter versions by version number
 -h, --help                                          Print help

Predefined field sets:
  -----------------------|-----|---------|-----
  FIELDS                 | ALL | DEFAULT | THIN
  -----------------------|-----|---------|-----
  Id                     | x   | x       | x
  Name                   | x   | x       |
  Version                | x   | x       | x
  Description            | x   | x       |
  Lifecycle environments | x   | x       |
  -----------------------|-----|---------|-----

Search / Order fields:
  content_view_id     integer
  repository          string
  version             string
2.20.17.5. hammer content-view 版本提升

提升内容视图版本

Usage:
    hammer content-view version promote [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --description DESCRIPTION                           The description for the content view version promotion
 --force                                             Force content view promotion and bypass lifecycle environment restriction
 --from-lifecycle-environment FROM_ENVIRONMENT_ID    Environment name from where to promote its version from (if version is unknown)
 --from-lifecycle-environment-id FROM_ENVIRONMENT_ID Id of the environment from where to promote its version from (if version is unknown)
 --id ID                                             Content view version identifier
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --to-lifecycle-environment TO_ENVIRONMENT           Name of the target environment
 --to-lifecycle-environment-id TO_ENVIRONMENT_ID     Id of the target environment
 --version VERSION                                   Content view version number
 -h, --help                                          Print help
2.20.17.6. hammer content-view 版本重新发布

强制重新发布版本存储库的元数据

Usage:
    hammer content-view version republish-repositories [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --content-view CONTENT_VIEW_NAME        Content view name to search by
 --content-view-id CONTENT_VIEW_ID       Content view numeric identifier
 --force FORCE                           Force metadata regeneration to proceed.  Dangerous when repositories use mirror on sync.
                                         One of true/false, yes/no, 1/0.
 --id ID                                 Content view version identifier
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --version VERSION                       Content view version number
 -h, --help                              Print help
2.20.17.7. hammer content-view 版本更新

更新内容视图版本

Usage:
    hammer content-view version update [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --description DESCRIPTION                           The description for the content view version
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --new-version NEW_VERSION
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --version VERSION                                   Content view version number
 -h, --help                                          Print help

2.21. hammer deb-package

操作 deb 软件包

Usage:
    hammer deb-package [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a deb
 list, index                   List debs

Options:
 -h, --help                    Print help

2.21.1. hammer deb-package info

显示 deb

Usage:
    hammer deb-package <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 A deb identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Pulp id               | x   | x       |
  Uuid                  | x   | x       |
  Name                  | x   | x       | x
  Version               | x   | x       |
  Checksum              | x   | x       |
  Architecture          | x   | x       |
  Nav                   | x   | x       |
  Nva                   | x   | x       |
  Filename              | x   | x       |
  Available host count  | x   | x       |
  Applicable host count | x   | x       |
  Description           | x   | x       |
  ----------------------|-----|---------|-----

2.21.2. hammer deb-package list

列出 debs

Usage:
    hammer deb-package <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                          Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content view filter identifier
 --content-view-filter-rule CONTENT_VIEW_FILTER_RULE_NAME  Name to search by
 --content-view-filter-rule-id CONTENT_VIEW_FILTER_RULE_ID Content view filter rule identifier
 --content-view-id CONTENT_VIEW_ID                         Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content view version identifier
 --environment ENVIRONMENT_NAME                            Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                           (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --ids IDS                                                 Ids to filter content by
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --include-filter-ids INCLUDE_FILTER_IDS                   Includes associated content view filter ids in response
                                                           One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

Predefined field sets:
  ---------|-----|--------
  FIELDS   | ALL | DEFAULT
  ---------|-----|--------
  Id       | x   | x
  Filename | x   | x
  ---------|-----|--------

2.22. hammer 默认值

默认管理

Usage:
    hammer defaults [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add                           Add a default parameter to config
 delete                        Delete a default param
 list                          List all the default parameters
 providers                     List all the providers

Options:
 -h, --help                    Print help

2.22.1. hammer 默认值添加

在 config 中添加默认参数

Usage:
    hammer defaults add [OPTIONS]

Options:
 --param-name OPTION_NAME      The name of the default option (e.g. organization_id)
 --param-value OPTION_VALUE    The value for the default option
 --provider OPTION_PROVIDER    The name of the provider providing the value. For list available providers see `hammer defaults providers`
 -h, --help                    Print help

2.22.2. hammer 默认删除

删除默认参数

Usage:
    hammer defaults delete [OPTIONS]

Options:
 --param-name OPTION_NAME      The name of the default option
 -h, --help                    Print help

2.22.3. hammer 默认列表

列出所有默认参数

Usage:
    hammer defaults list [OPTIONS]

Options:
 -h, --help                    Print help

2.22.4. hammer 默认提供程序

列出所有供应商

Usage:
    hammer defaults providers [OPTIONS]

Options:
 -h, --help                    Print help

2.23. hammer 发现

操作发现的主机。

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

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

Subcommands:
 auto-provision                Auto provision a host
 delete, destroy               Delete a discovered host
 facts                         List all fact values
 info, show                    Show a discovered host
 list, index                   List all discovered hosts
 provision                     Provision a discovered host
 reboot                        Reboot a host
 refresh-facts                 Refresh the facts of a host

Options:
 -h, --help                    Print help

2.23.1. hammer 发现自动置备

自动置备主机

Usage:
    hammer discovery auto-provision [OPTIONS]

Options:
 --all                                   Auto provision all discovered hosts
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.23.2. hammer 发现删除

删除发现的主机

Usage:
    hammer discovery <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.23.3. hammer 发现事实

列出所有事实值

Usage:
    hammer discovery facts [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------|-----|--------
  FIELDS | ALL | DEFAULT
  -------|-----|--------
  Fact   | x   | x
  Value  | x   | x
  -------|-----|--------

Search / Order fields:
  fact                string
  fact_short_name     string
  facts               string
  host                string
  host.hostgroup      string
  host_id             integer
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  origin              string
  reported_at         datetime
  short_name          string
  type                string
  value               string

2.23.4. hammer 发现信息

显示发现的主机

Usage:
    hammer discovery <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Mac          | x   | x       |
  Cpus         | x   | x       |
  Memory       | x   | x       |
  Disk count   | x   | x       |
  Disks size   | x   | x       |
  Subnet       | x   | x       |
  Last report  | x   | x       |
  Ip           | x   | x       |
  Model        | x   | x       |
  Organization | x   | x       |
  Location     | x   | x       |
  -------------|-----|---------|-----

2.23.5. hammer 发现列表

列出所有发现的主机

Usage:
    hammer discovery <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort results
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Paginate results
 --per-page PER_PAGE                     Number of entries per request
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Mac         | x   | x       |
  Cpus        | x   | x       |
  Memory      | x   | x       |
  Disk count  | x   | x       |
  Disks size  | x   | x       |
  Subnet      | x   | x       |
  Last report | x   | x       |
  ------------|-----|---------|-----

2.23.6. hammer 发现置备

置备发现的主机

Usage:
    hammer discovery provision [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME              Architecture name
 --architecture-id ARCHITECTURE_ID             Required if host is managed and value is not inherited from host group
 --ask-root-password ASK_ROOT_PW               One of true/false, yes/no, 1/0.
 --build BUILD                                 One of true/false, yes/no, 1/0.
 --capabilities CAPABILITIES
 --domain DOMAIN_NAME                          Domain name
 --domain-id DOMAIN_ID                         Required if host is managed and value is not inherited from host group
 --enabled ENABLED                             One of true/false, yes/no, 1/0.
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --hostgroup HOSTGROUP_NAME                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --id ID
 --image IMAGE_NAME                            Name to search by
 --image-id IMAGE_ID
 --interface INTERFACE                         Interface parameters
                                               Comma-separated list of key=value.
                                               JSON is acceptable and preferred way for complex parameters
                                               Can be specified multiple times.
 --ip IP                                       Not required if using a subnet with DHCP Capsule
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --mac MAC                                     Not required if it's a virtual machine
 --managed MANAGED                             One of true/false, yes/no, 1/0.
 --medium MEDIUM_NAME                          Medium name
 --medium-id MEDIUM_ID                         Required if not imaged based provisioning and host is managed and value is not inherited from host group
 --model MODEL_NAME                            Model name
 --model-id MODEL_ID
 --name NAME                                   Name to search by
 --new-name NEW_NAME
 --operatingsystem OPERATINGSYSTEM_TITLE       Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID       Required if host is managed and value is not inherited from host group
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --overwrite OVERWRITE                         One of true/false, yes/no, 1/0.
 --owner-id OWNER_ID
 --owner-type OWNER_TYPE                       Host's owner type
                                               Possible value(s): 'User', 'Usergroup'
 --parameters PARAMS                           Host parameters
                                               Comma-separated list of key=value.
                                               JSON is acceptable and preferred way for complex parameters
 --partition-table PARTITION_TABLE_NAME        Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --progress-report-id PROGRESS_REPORT_ID       UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks
 --provision-method METHOD                     Possible value(s): 'build', 'image'
 --puppet-ca-proxy-id PUPPET_CA_PROXY_ID
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --puppet-proxy-id PUPPET_PROXY_ID
 --puppetclass-ids PUPPETCLASS_IDS             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                               JSON is acceptable and preferred way for complex parameters
 --pxe-loader PXE_LOADER                       DHCP filename option (Grub2 or PXELinux by default)
                                               Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 BIOS', 'Grub2 ELF', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI'
 --root-password ROOT_PW
 --sp-subnet-id SP_SUBNET_ID
 --subnet SUBNET_NAME                          Subnet name
 --subnet-id SUBNET_ID                         Required if host is managed and value is not inherited from host group
 -h, --help                                    Print help

2.23.7. hammer 发现重启

重启主机

Usage:
    hammer discovery reboot [OPTIONS]

Options:
 --all                                   Reboot all discovered hosts
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.23.8. hammer 发现刷新

刷新主机的事实

Usage:
    hammer discovery refresh-facts [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.24. 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.24.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

2.24.2. hammer discovery-rule delete

删除规则

Usage:
    hammer discovery-rule <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.24.3. hammer discovery-rule info

显示发现规则

Usage:
    hammer discovery-rule <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------------------|-----|---------|-----
  FIELDS            | ALL | DEFAULT | THIN
  ------------------|-----|---------|-----
  Id                | x   | x       | x
  Name              | x   | x       | x
  Priority          | x   | x       |
  Search            | x   | x       |
  Host group        | x   | x       |
  Hosts limit       | x   | x       |
  Enabled           | x   | x       |
  Hostname template | x   | x       |
  Hosts/            | x   | x       |
  Locations/        | x   | x       |
  Organizations/    | x   | x       |
  ------------------|-----|---------|-----

2.24.4. hammer discovery-rule list

列出所有发现规则

Usage:
    hammer discovery-rule <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort results
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Paginate results
 --per-page PER_PAGE                     Number of entries per request
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Priority    | x   | x       |
  Search      | x   | x       |
  Host group  | x   | x       |
  Hosts limit | x   | x       |
  Enabled     | x   | x       |
  ------------|-----|---------|-----

2.24.5. hammer discovery-rule 更新

更新规则

Usage:
    hammer discovery-rule update [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
 --id ID
 --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                               Name to search by
 --new-name NEW_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

2.25. hammer docker

操作 docker 内容

Usage:
    hammer docker [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 manifest                      Manage docker manifests
 tag                           Manage docker tags

Options:
 -h, --help                    Print help

2.25.1. hammer docker 清单

管理 docker 清单

Usage:
    hammer docker manifest [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a docker manifest
 list, index                   List docker_manifests

Options:
 -h, --help                    Print help
2.25.1.1. hammer docker 清单信息

显示 docker 清单

Usage:
    hammer docker manifest <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 A docker manifest identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Schema version | x   | x       |
  Digest         | x   | x       |
  Downloaded     | x   | x       |
  Tags/name      | x   | x       |
  ---------------|-----|---------|-----
2.25.1.2. hammer docker 清单列表

list docker_manifests

Usage:
    hammer docker manifest <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                          Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content view filter identifier
 --content-view-filter-rule CONTENT_VIEW_FILTER_RULE_NAME  Name to search by
 --content-view-filter-rule-id CONTENT_VIEW_FILTER_RULE_ID Content view filter rule identifier
 --content-view-id CONTENT_VIEW_ID                         Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content view version identifier
 --environment ENVIRONMENT_NAME                            Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                           (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --ids IDS                                                 Ids to filter content by
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --include-filter-ids INCLUDE_FILTER_IDS                   Includes associated content view filter ids in response
                                                           One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Schema version | x   | x       |
  Digest         | x   | x       |
  Downloaded     | x   | x       |
  Tags           | x   | x       |
  ---------------|-----|---------|-----

2.25.2. hammer docker tag

管理 docker 标签

Usage:
    hammer docker tag [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a docker tag
 list, index                   List docker_tags

Options:
 -h, --help                    Print help
2.25.2.1. hammer docker tag info

显示 docker 标签

Usage:
    hammer docker tag <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 A docker tag identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  ---------------------|-----|---------|-----
  FIELDS               | ALL | DEFAULT | THIN
  ---------------------|-----|---------|-----
  Id                   | x   | x       | x
  Tag                  | x   | x       | x
  Repository id        | x   | x       |
  Docker manifest id   | x   | x       |
  Docker manifest name | x   | x       |
  ---------------------|-----|---------|-----
2.25.2.2. hammer docker tag list

list docker_tags

Usage:
    hammer docker tag <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                          Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content view filter identifier
 --content-view-filter-rule CONTENT_VIEW_FILTER_RULE_NAME  Name to search by
 --content-view-filter-rule-id CONTENT_VIEW_FILTER_RULE_ID Content view filter rule identifier
 --content-view-id CONTENT_VIEW_ID                         Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content view version identifier
 --environment ENVIRONMENT_NAME                            Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                           (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --ids IDS                                                 Ids to filter content by
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --include-filter-ids INCLUDE_FILTER_IDS                   Includes associated content view filter ids in response
                                                           One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

Predefined field sets:
  --------------|-----|---------|-----
  FIELDS        | ALL | DEFAULT | THIN
  --------------|-----|---------|-----
  Id            | x   | x       | x
  Tag           | x   | x       | x
  Repository id | x   | x       |
  --------------|-----|---------|-----

2.26. hammer 域

操作域

Usage:
    hammer domain [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a domain
 delete, destroy               Delete a domain
 delete-parameter              Delete parameter for a domain
 info, show                    Show a domain
 list, index                   List of domains
 set-parameter                 Create or update parameter for a domain
 update                        Update a domain

Options:
 -h, --help                    Print help

2.26.1. hammer 域创建

创建域

Usage:
    hammer domain create [OPTIONS]

Options:
 --description DESC                        Full name describing the domain
 --dns DNS_NAME                            Name of DNS proxy to use within this domain
 --dns-id DNS_ID                           ID of DNS proxy to use within this domain
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               The full DNS domain name
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.26.2. hammer 域删除

删除域

Usage:
    hammer domain <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Domain name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.26.3. hammer 域删除-parameter

域的 delete 参数

Usage:
    hammer domain delete-parameter [OPTIONS]

Options:
 --domain DOMAIN_NAME          Domain name
 --domain-id DOMAIN_ID         Numerical ID or domain name
 --name NAME                   Parameter name
 -h, --help                    Print help

2.26.4. hammer 域信息

显示域

Usage:
    hammer domain <info|show> [OPTIONS]

Options:
 --fields FIELDS                                 Show specified fields or predefined field 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
 --id ID                                         Numerical ID or domain name
 --location LOCATION_NAME                        Set the current location context for the request
 --location-id LOCATION_ID                       Set the current location context for the request
 --location-title LOCATION_TITLE                 Set the current location context for the request
 --name NAME                                     Domain name
 --organization ORGANIZATION_NAME                Set the current organization context for the request
 --organization-id ORGANIZATION_ID               Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE         Set the current organization context for the request
 --show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter values
                                                 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
  Description    | x   | x       |
  Dns id         | x   | x       |
  Subnets/       | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Parameters/    | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.26.5. hammer 域列表

域列表

Usage:
    hammer domain <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --subnet SUBNET_NAME                    Subnet name
 --subnet-id SUBNET_ID                   ID of subnet
 -h, --help                              Print help

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

Search / Order fields:
  fullname            string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  params              string

2.26.6. hammer 域 set-parameter

为域创建或更新参数

Usage:
    hammer domain set-parameter [OPTIONS]

Options:
 --domain DOMAIN_NAME            Domain name
 --domain-id DOMAIN_ID           Numerical ID or domain name
 --hidden-value HIDDEN_VALUE     Should the value be hidden
                                 One of true/false, yes/no, 1/0.
 --name NAME                     Parameter name
 --parameter-type PARAMETER_TYPE Type of the parameter
                                 Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                 Default: "string"
 --value VALUE                   Parameter value
 -h, --help                      Print help

2.26.7. hammer 域更新

更新域

Usage:
    hammer domain update [OPTIONS]

Options:
 --description DESC                        Full name describing the domain
 --dns DNS_NAME                            Name of DNS proxy to use within this domain
 --dns-id DNS_ID                           ID of DNS proxy to use within this domain
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Domain name
 --new-name NEW_NAME                       The full DNS domain name
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.27. hammer 环境

操作环境

Usage:
    hammer environment [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create an environment
 delete, destroy               Delete an environment
 info, show                    Show an environment
 list, index                   List all environments
 sc-params                     List all smart class parameters
 update                        Update an environment

Options:
 -h, --help                    Print help

2.27.1. hammer 环境创建

创建环境

Usage:
    hammer environment create [OPTIONS]

Options:
 --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               REPLACE locations with given ids
                                           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
 --name NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.27.2. hammer 环境删除

删除环境

Usage:
    hammer environment <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Puppet environment name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.27.3. hammer 环境信息

显示环境

Usage:
    hammer environment <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Puppet environment name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Puppetclasses/ | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.27.4. hammer 环境列表

列出所有环境

Usage:
    hammer environment <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --puppet-class PUPPET_CLASS_NAME        Puppet class name
 --puppet-class-id PUPPET_CLASS_ID
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer

2.27.5. hammer 环境 sc-params

列出所有智能类参数

Usage:
    hammer environment sc-params [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field 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
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return, 'all' to return all results
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --search SEARCH                               Filter results
 --show-hidden SHOW_HIDDEN                     Display hidden values
                                               One of true/false, yes/no, 1/0.
 -h, --help                                    Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Parameter     | x   | x
  Default value | x   | x
  Override      | x   | x
  Puppet class  | x   | x
  Class id      | x   | x
  --------------|-----|--------

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string

2.27.6. hammer 环境更新

更新环境

Usage:
    hammer environment update [OPTIONS]

Options:
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Puppet environment name
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.28. hammer 勘误

操作勘误

Usage:
    hammer erratum [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info                          Show an erratum
 list, index                   List errata

Options:
 -h, --help                    Print help

2.28.1. hammer 勘误信息

显示勘误

Usage:
    hammer erratum info [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 An erratum identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  ------------------------|-----|--------
  FIELDS                  | ALL | DEFAULT
  ------------------------|-----|--------
  Title                   | x   | x
  Version                 | x   | x
  Description             | x   | x
  Status                  | x   | x
  Id                      | x   | x
  Errata id               | x   | x
  Reboot suggested        | x   | x
  Updated                 | x   | x
  Issued                  | x   | x
  Release                 | x   | x
  Solution                | x   | x
  Packages                | x   | x
  Module streams/name     | x   | x
  Module streams/stream   | x   | x
  Module streams/packages | x   | x
  ------------------------|-----|--------

2.28.2. hammer 勘误列表

列出勘误

Usage:
    hammer erratum <list|index> [OPTIONS]

Options:
 --available-for AVAILABLE_FOR                             Return errata that can be added to the specified object.  The values 'content_view_version' and 'content_view_filter are supported.
 --content-view CONTENT_VIEW_NAME                          Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content View Filter identifier
 --content-view-id CONTENT_VIEW_ID                         Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content View Version identifier
 --cve CVE                                                 CVE identifier
 --errata-restrict-applicable ERRATA_RESTRICT_APPLICABLE   Return errata that are applicable to one or more hosts (defaults to true if host_id is specified)
                                                           One of true/false, yes/no, 1/0.
 --errata-restrict-installable ERRATA_RESTRICT_INSTALLABLE Return errata that are upgradable on one or more hosts
                                                           One of true/false, yes/no, 1/0.
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --host HOST_NAME                                          Host name
 --host-id HOST_ID                                         Host id to list applicable errata for
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

Predefined field sets:
  ----------|-----|--------
  FIELDS    | ALL | DEFAULT
  ----------|-----|--------
  Id        | x   | x
  Errata id | x   | x
  Type      | x   | x
  Title     | x   | x
  Issued    | x   | x
  Updated   | x   | x
  ----------|-----|--------

Search / Order fields:
  bug                 string
  cve                 string
  errata_id           string
  errata_type         string
  id                  string
  issued              date
  modular             Values: true, false
  package             string
  package_name        string
  reboot_suggested    boolean
  repository          string
  severity            string
  title               string
  type                string
  updated             date

2.29. hammer export-templates

将模板导出到 git 仓库或服务器上的目录

Usage:
    hammer export-templates [OPTIONS]

Options:
 --branch BRANCH                             Branch in Git repo.
 --commit-msg COMMIT_MSG                     Custom commit message for templates export
 --dirname DIRNAME                           The directory within Git repo containing the templates
 --filter FILTER                             Export templates with names matching this regex (case-insensitive; snippets are not filtered).
 --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                 REPLACE locations with given ids
                                             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
 --metadata-export-mode METADATA_EXPORT_MODE Specify how to handle metadata
                                             Possible value(s): 'refresh', 'keep', 'remove'
 --negate NEGATE                             Negate the prefix (for purging).
                                             One of true/false, yes/no, 1/0.
 --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         REPLACE organizations with given ids.
                                             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
 --repo REPO                                 Override the default repo from settings.
 --verbose BE_VERBOSE                        Be verbose
                                             One of true/false, yes/no, 1/0.
 -h, --help                                  Print help

2.30. hammer 事实

搜索事实

Usage:
    hammer fact [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 list, index                   List all fact values

Options:
 -h, --help                    Print help

2.30.1. hammer 事实列表

列出所有事实值

Usage:
    hammer fact <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------|-----|--------
  FIELDS | ALL | DEFAULT
  -------|-----|--------
  Host   | x   | x
  Fact   | x   | x
  Value  | x   | x
  -------|-----|--------

Search / Order fields:
  fact                string
  fact_short_name     string
  facts               string
  host                string
  host.hostgroup      string
  host_id             integer
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  origin              string
  reported_at         datetime
  short_name          string
  type                string
  value               string

2.31. hammer 文件

操作文件

Usage:
    hammer file [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a file
 list, index                   List files

Options:
 -h, --help                    Print help

2.31.1. hammer 文件信息

显示文件

Usage:
    hammer file <info|show> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content View Version ID
 --fields FIELDS                                     Show specified fields or predefined field 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
 --id ID                                             A file identifier
 --name NAME                                         File name to search by
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --product PRODUCT_NAME                              Product name to search by
 --product-id PRODUCT_ID                             Product numeric identifier
 --repository REPOSITORY_NAME                        Repository name to search by
 --repository-id REPOSITORY_ID                       Repository ID
 -h, --help                                          Print help

Predefined field sets:
  ---------|-----|---------|-----
  FIELDS   | ALL | DEFAULT | THIN
  ---------|-----|---------|-----
  Id       | x   | x       |
  Name     | x   | x       | x
  Path     | x   | x       |
  Uuid     | x   | x       |
  Checksum | x   | x       |
  ---------|-----|---------|-----

2.31.2. hammer 文件列表

列出文件

Usage:
    hammer file <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                          Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content view filter identifier
 --content-view-filter-rule CONTENT_VIEW_FILTER_RULE_NAME  Name to search by
 --content-view-filter-rule-id CONTENT_VIEW_FILTER_RULE_ID Content view filter rule identifier
 --content-view-id CONTENT_VIEW_ID                         Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content view version identifier
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --ids IDS                                                 Ids to filter content by
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --include-filter-ids INCLUDE_FILTER_IDS                   Includes associated content view filter ids in response
                                                           One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

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

2.32. hammer 过滤器

管理权限过滤器

Usage:
    hammer filter [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 available-permissions         List all permissions
 available-resources           List available resource types
 create                        Create a filter
 delete, destroy               Delete a filter
 info, show                    Show a filter
 list, index                   List all filters
 update                        Update a filter

Options:
 -h, --help                    Print help

2.32.1. hammer 过滤器 available-permissions

列出所有权限

Usage:
    hammer filter available-permissions [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  name                string
  resource_type       string

2.32.2. hammer 过滤器 available-resources

列出可用资源类型

Usage:
    hammer filter available-resources [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

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

2.32.3. hammer 过滤器创建

创建过滤器

Usage:
    hammer filter create [OPTIONS]

Options:
 --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               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
 --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       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
 --override OVERRIDE                       One of true/false, yes/no, 1/0.
 --permission-ids PERMISSION_IDS           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --permissions PERMISSION_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
 --role ROLE_NAME                          User role name
 --role-id ROLE_ID
 --search SEARCH
 -h, --help                                Print help

Overriding organizations and locations:
  Filters inherit organizations and locations from its role by default. This behavior can be changed by setting --override=true.
  Therefore options --organization[s|-ids] and --location[s|-ids] are applicable only when the override flag is set.

2.32.4. hammer 过滤器删除

删除过滤器

Usage:
    hammer filter <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.32.5. hammer 过滤器信息

显示过滤器

Usage:
    hammer filter <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Resource type  | x   | x       |
  Search         | x   | x       |
  Unlimited?     | x   | x       |
  Override?      | x   | x       |
  Role           | x   | x       |
  Permissions    | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.32.6. hammer 过滤器列表

列出所有过滤器

Usage:
    hammer filter <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|---------|-----
  FIELDS        | ALL | DEFAULT | THIN
  --------------|-----|---------|-----
  Id            | x   | x       | x
  Resource type | x   | x       |
  Search        | x   | x       |
  Unlimited?    | x   | x       |
  Override?     | x   | x       |
  Role          | x   | x       |
  Permissions   | x   | x       |
  --------------|-----|---------|-----

Search / Order fields:
  limited             Values: true, false
  location            string
  location_id         integer
  organization        string
  organization_id     integer
  override            Values: true, false
  permission          string
  resource            string
  role                string
  role_id             integer
  search              text
  unlimited           Values: true, false

2.32.7. hammer 过滤器更新

更新过滤器

Usage:
    hammer filter update [OPTIONS]

Options:
 --id ID
 --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               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
 --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       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
 --override OVERRIDE                       One of true/false, yes/no, 1/0.
 --permission-ids PERMISSION_IDS           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --permissions PERMISSION_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
 --role ROLE_NAME                          User role name
 --role-id ROLE_ID
 --search SEARCH
 -h, --help                                Print help

Overriding organizations and locations:
  Filters inherit organizations and locations from its role by default. This behavior can be changed by setting --override=true.
  Therefore options --organization[s|-ids] and --location[s|-ids] are applicable only when the override flag is set.

2.33. hammer foreign-input-set

管理外部输入集

Usage:
    hammer foreign-input-set [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a foreign input set
 delete, destroy               Delete a foreign input set
 info, show                    Show foreign input set details
 list, index                   List foreign input sets
 update                        Update a foreign input set

Options:
 -h, --help                    Print help

2.33.1. hammer foreign-input-set create

创建外部输入集

Usage:
    hammer foreign-input-set create [OPTIONS]

Options:
 --description DESCRIPTION               Input set description
 --exclude EXCLUDE                       A comma separated list of input names to be included from the foreign template.
 --include INCLUDE                       A comma separated list of input names to be included from the foreign template.
 --include-all INCLUDE_ALL               Include all inputs from the foreign template
                                         One of true/false, yes/no, 1/0.
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --target-template-id TARGET_TEMPLATE_ID Target template ID
 --template-id TEMPLATE_ID
 -h, --help                              Print help

2.33.2. hammer foreign-input-set delete

删除外部输入集

Usage:
    hammer foreign-input-set <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --template-id TEMPLATE_ID
 -h, --help                              Print help

2.33.3. hammer foreign-input-set info

显示外部输入设置详情

Usage:
    hammer foreign-input-set <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --template-id TEMPLATE_ID
 -h, --help                              Print help

Predefined field sets:
  ---------------------|-----|---------|-----
  FIELDS               | ALL | DEFAULT | THIN
  ---------------------|-----|---------|-----
  Id                   | x   | x       | x
  Name                 | x   | x       | x
  Target template id   | x   | x       |
  Target template name | x   | x       |
  Include all          | x   | x       |
  Include              | x   | x       |
  Exclude              | x   | x       |
  ---------------------|-----|---------|-----

2.33.4. hammer foreign-input-set list

列表外部输入集

Usage:
    hammer foreign-input-set <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --template-id TEMPLATE_ID
 -h, --help                              Print help

Predefined field sets:
  ---------------------|-----|--------
  FIELDS               | ALL | DEFAULT
  ---------------------|-----|--------
  Id                   | x   | x
  Target template id   | x   | x
  Target template name | x   | x
  ---------------------|-----|--------

2.33.5. hammer foreign-input-set 更新

更新外部输入集

Usage:
    hammer foreign-input-set update [OPTIONS]

Options:
 --description DESCRIPTION               Input set description
 --exclude EXCLUDE                       A comma separated list of input names to be included from the foreign template.
 --id ID
 --include INCLUDE                       A comma separated list of input names to be included from the foreign template.
 --include-all INCLUDE_ALL               Include all inputs from the foreign template
                                         One of true/false, yes/no, 1/0.
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --target-template-id TARGET_TEMPLATE_ID Target template ID
 --template-id TEMPLATE_ID
 -h, --help                              Print help

2.34. hammer full-help

打印所有 hammer 命令的帮助信息

Usage:
    hammer full-help [OPTIONS]

Options:
 --md                          Format output in markdown
 -h, --help                    Print help

2.35. hammer global-parameter

操作全局参数

Usage:
    hammer global-parameter [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete, destroy               Delete a global parameter
 list, index                   List all global parameters
 set                           Set a global parameter

Options:
 -h, --help                    Print help

2.35.1. hammer global-parameter delete

删除全局参数

Usage:
    hammer global-parameter <delete|destroy> [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Common parameter name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.35.2. hammer global-parameter list

列出所有全局参数

Usage:
    hammer global-parameter <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --show-hidden SHOW_HIDDEN               Display hidden values
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

Predefined field sets:
  -------|-----|---------|-----
  FIELDS | ALL | DEFAULT | THIN
  -------|-----|---------|-----
  Name   | x   | x       | x
  Value  | x   | x       |
  Type   | x   | x       |
  -------|-----|---------|-----

Search / Order fields:
  domain_name         string
  host_group_name     string
  host_name           string
  key_type            string
  location_name       string
  name                string
  organization_name   string
  os_name             string
  parameter_type      string
  subnet_name         text
  type                string
  value               text

2.35.3. hammer global-parameter set

设置全局参数

Usage:
    hammer global-parameter set [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE     Should the value be hidden
                                 One of true/false, yes/no, 1/0.
 --name NAME                     Parameter name
 --parameter-type PARAMETER_TYPE Type of the parameter
                                 Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                 Default: "string"
 --value VALUE                   Parameter value
 -h, --help                      Print help

2.36. hammer 主机

操作主机

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

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

Subcommands:
 ansible-roles                 Manage Ansible roles on a host
 boot                          Boot host from specified device
 config-reports                List all reports
 create                        Create a host
 deb-package                   Manage deb packages on your hosts
 delete, destroy               Delete a host
 delete-parameter              Delete parameter for a host
 disassociate                  Disassociate a host
 enc-dump                      Dump host's ENC YAML
 errata                        Manage errata on your hosts
 facts                         List all fact values
 info, show                    Show a host
 interface                     View and manage host's network interfaces
 list, index                   List all hosts
 package                       Manage packages on your hosts
 package-group                 Manage package-groups on your hosts
 policies-enc                  View policies ENC for host
 puppet-classes                List all Puppet classes
 reboot                        Reboot a host
 rebuild-config                Rebuild orchestration related configurations for host
 reports                       List all reports
 reset                         Reset a host
 sc-params                     List all smart class parameters
 set-parameter                 Create or append a parameter for a host
 start                         Power a host on
 status                        Get status of host
 stop                          Power a host off
 subscription                  Manage subscription information on your hosts
 traces                        List traces on your hosts
 update                        Update a host

Options:
 -h, --help                    Print help

2.36.1. hammer 主机 ansible-roles

管理主机上的 Ansible 角色

Usage:
    hammer host ansible-roles [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 assign                        Assigns Ansible roles to a host
 list, index                   List all Ansible roles for a host
 play                          Runs all Ansible roles on a host

Options:
 -h, --help                    Print help
2.36.1.1. hammer 主机 ansible-roles 分配

将 Ansible 角色分配给主机

Usage:
    hammer host ansible-roles assign [OPTIONS]

Options:
 --ansible-role-ids ANSIBLE_ROLE_IDS     Ansible roles to assign to a host
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --ansible-roles ANSIBLE_ROLE_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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.36.1.2. hammer host ansible-roles list

列出主机的所有 Ansible 角色

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

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Imported at | x   | x       |
  ------------|-----|---------|-----
2.36.1.3. hammer 主机 ansible-roles play

在主机上运行所有 Ansible 角色

Usage:
    hammer host ansible-roles play [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.2. hammer 主机引导

从指定设备引导主机

Usage:
    hammer host boot [OPTIONS]

Options:
 --device DEVICE                         Boot device, valid devices are disk, cdrom, pxe, bios
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.3. hammer 主机 config-reports

列出所有报告

Usage:
    hammer host config-reports [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Host id
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Host             | x   | x       |
  Last report      | x   | x       |
  Origin           | x   | x       |
  Applied          | x   | x       |
  Restarted        | x   | x       |
  Failed           | x   | x       |
  Restart failures | x   | x       |
  Skipped          | x   | x       |
  Pending          | x   | x       |
  -----------------|-----|---------|-----

Search / Order fields:
  applied             integer
  environment         string
  eventful            Values: true, false
  failed              integer
  failed_restarts     integer
  host                string
  host_id             integer
  hostgroup           string
  hostgroup_fullname  string
  hostgroup_title     string
  last_report         datetime
  location            string
  log                 text
  organization        string
  origin              string
  pending             integer
  reported            datetime
  resource            text
  restarted           integer
  skipped             integer

2.36.4. hammer 主机创建

创建主机

Usage:
    hammer host create [OPTIONS]

Options:
 --ansible-role-ids ANSIBLE_ROLE_IDS                           IDs of associated ansible roles
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --ansible-roles ANSIBLE_ROLE_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
 --architecture ARCHITECTURE_NAME                              Architecture name
 --architecture-id ARCHITECTURE_ID                             Required if host is managed and value is not inherited from host group
 --ask-root-password ASK_ROOT_PW                               One of true/false, yes/no, 1/0.
 --autoheal AUTOHEAL                                           Sets whether the Host will autoheal subscriptions upon checkin
                                                               One of true/false, yes/no, 1/0.
 --build BUILD                                                 One of true/false, yes/no, 1/0.
 --comment COMMENT                                             Additional information about this host
 --compute-attributes COMPUTE_ATTRS                            Compute resource attributes
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
 --compute-profile COMPUTE_PROFILE_NAME                        Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME                      Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID                     Nil means host is bare metal
 --config-group-ids CONFIG_GROUP_IDS                           IDs of associated config groups
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --config-groups CONFIG_GROUP_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
 --content-source CONTENT_SOURCE_NAME                          Content Source name
 --content-source-id CONTENT_SOURCE_ID
 --content-view CONTENT_VIEW_NAME                              Name to search by
 --content-view-id CONTENT_VIEW_ID
 --domain DOMAIN_NAME                                          Domain name
 --domain-id DOMAIN_ID                                         Required if host is managed and value is not inherited from host group
 --enabled ENABLED                                             Include this host within Satellite reporting
                                                               One of true/false, yes/no, 1/0.
 --environment ENVIRONMENT_NAME                                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID                               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --hostgroup HOSTGROUP_NAME                                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE                             Hostgroup title
 --hypervisor-guest-uuids HYPERVISOR_GUEST_UUIDS               List of hypervisor guest uuids
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --image IMAGE_NAME                                            Name to search by
 --image-id IMAGE_ID
 --installed-products-attributes INSTALLED_PRODUCTS_ATTRIBUTES List of products installed on the host
                                                               Comma separated list of values defined by a schema. See Option details section below.
                                                               JSON is acceptable and preferred way for complex parameters
 --interface INTERFACE                                         Interface parameters
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
                                                               Can be specified multiple times.
 --ip IP                                                       Not required if using a subnet with DHCP Capsule
 --kickstart-repository REPOSITORY_NAME                        Kickstart repository name
 --kickstart-repository-id KICKSTART_REPOSITORY_ID             Repository Id associated with the kickstart repo used for provisioning
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME            Name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --location LOCATION_NAME                                      Set the current location context for the request
 --location-id LOCATION_ID                                     Set the current location context for the request
 --location-title LOCATION_TITLE                               Set the current location context for the request
 --mac MAC                                                     Required for managed host that is bare metal, not required if it's a virtual machine
 --managed MANAGED                                             True/False flag whether a host is managed or unmanaged. Note: this value also determines whether several parameters are required or not
                                                               One of true/false, yes/no, 1/0.
 --medium MEDIUM_NAME                                          Medium name
 --medium-id MEDIUM_ID                                         Required if not imaged based provisioning and host is managed and value is not inherited from host group
 --model MODEL_NAME                                            Model name
 --model-id MODEL_ID
 --name NAME
 --openscap-proxy-id OPENSCAP_PROXY_ID                         ID of OpenSCAP Capsule
 --operatingsystem OPERATINGSYSTEM_TITLE                       Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID                       Required if host is managed and value is not inherited from host group
 --organization ORGANIZATION_NAME                              Set the current organization context for the request
 --organization-id ORGANIZATION_ID                             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE                       Set the current organization context for the request
 --overwrite OVERWRITE                                         One of true/false, yes/no, 1/0.
                                                               Default: "true"
 --owner OWNER_LOGIN                                           Login of the owner
 --owner-id OWNER_ID                                           ID of the owner
 --owner-type OWNER_TYPE                                       Host's owner type
                                                               Possible value(s): 'User', 'Usergroup'
 --parameters PARAMS                                           Replaces with new host parameters
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
 --partition-table PARTITION_TABLE_NAME                        Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --product PRODUCT_NAME                                        Name to search by
 --product-id PRODUCT_ID                                       Product id as listed from a host's installed products,         this is not the same product id as the products api returns
 --progress-report-id PROGRESS_REPORT_ID                       UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks
 --provision-method PROVISION_METHOD                           The method used to provision the host.
                                                               Possible value(s): 'build', 'image', 'bootdisk'
 --puppet-ca-proxy PUPPET_CA_PROXY_NAME
 --puppet-ca-proxy-id PUPPET_CA_PROXY_ID                       Puppet CA Capsule ID
 --puppet-class-ids PUPPET_CLASS_IDS                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --puppet-classes PUPPET_CLASS_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
 --puppet-environment PUPPET_ENVIRONMENT_NAME                  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --puppet-proxy PUPPET_PROXY_NAME
 --puppet-proxy-id PUPPET_PROXY_ID                             Puppet Capsule ID
 --purpose-addons PURPOSE_ADDONS                               Sets the system add-ons
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --purpose-role PURPOSE_ROLE                                   Sets the system purpose usage
 --purpose-usage PURPOSE_USAGE                                 Sets the system purpose usage
 --pxe-loader PXE_LOADER                                       DHCP filename option (Grub2/PXELinux by default)
                                                               Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 BIOS', 'Grub2 ELF', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI'
 --realm REALM_NAME                                            Name to search by
 --realm-id REALM_ID
 --release-version RELEASE_VERSION                             Release version for this Host to use (7Server, 7.1, etc)
 --root-password ROOT_PW                                       Required if host is managed and value is not inherited from host group or default password in settings
 --service-level SERVICE_LEVEL                                 Service level to be used for autoheal
 --subnet SUBNET_NAME                                          Subnet name
 --subnet-id SUBNET_ID                                         Required if host is managed and value is not inherited from host group
 --typed-parameters TYPED_PARAMS                               Replaces with new host parameters (with type support)
                                                               Comma separated list of values defined by a schema. See Option details section below.
                                                               JSON is acceptable and preferred way for complex parameters
 --volume VOLUME                                               Volume parameters
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
                                                               Can be specified multiple times.
 -h, --help                                                    Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --typed-parameters  "name=<string>\,value=<string>\,parameter_type=[string|boolean|integer|real|array|hash|yaml|json]\,hidden_value=[true|false|1|0], ... "

  --installed-products-attributes  "product_id=<string>\,product_name=<string>\,arch=<string>\,version=<string>, ... "

Available keys for --interface:
  mac
  ip
  type                Possible values: interface, bmc, bond, bridge
  name
  subnet_id
  domain_id
  identifier
  managed             true/false
  primary             true/false, each managed hosts needs to have one primary interface.
  provision           true/false
  virtual             true/false

  For virtual=true:
    tag                 VLAN tag, this attribute has precedence over the subnet VLAN ID. Only for virtual interfaces.
    attached_to         Identifier of the interface to which this interface belongs, e.g. eth1.

  For type=bond:
    mode                Possible values: balance-rr, active-backup, balance-xor, broadcast, 802.3ad, balance-tlb, balance-alb
    attached_devices    Identifiers of slave interfaces, e.g. [eth1,eth2]
    bond_options

  For type=bmc:
    provider            always IPMI
    username
    password

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      flavor_id
      groups
      security_group_ids
      managed_ip

  GCE:
    --volume:
      size_gb             Volume size in GB, integer value

    --interface:


    --compute-attributes:
      machine_type
      network
      associate_external_ip

  Libvirt:
    --volume:
      pool_name                    One of available storage pools
      capacity                     String value, e.g. 10G
      allocation
      Initial allocation, e.g. 0G
      format_type                  Possible values: raw, qcow2

    --interface:
      compute_type                            Possible values: bridge, network
      compute_bridge                          Name of interface according to type
      compute_model                           Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000
      compute_network
      Libvirt instance network, e.g. default

    --compute-attributes:
      cpus                Number of CPUs
      memory              String, amount of memory, value in bytes
      cpu_mode            Possible values: default, host-model, host-passthrough
      start               Boolean (expressed as 0 or 1), whether to start the machine or not

  OpenStack:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      boot_from_volume
      flavor_ref
      image_ref
      tenant_id
      security_groups
      network

  oVirt:
    --volume:
      size_gb             Volume size in GB, integer value
      storage_domain      ID or name of storage domain
      bootable            Boolean, set 1 for bootable, only one volume can be bootable
      preallocate         Boolean, set 1 to preallocate
      wipe_after_delete   Boolean, set 1 to wipe disk after delete
      interface           Disk interface name, must be ide, virto or virto_scsi

    --interface:
      compute_name          Compute name, e.g. eth0
      compute_network       Select one of available networks for a cluster, must be an ID or a name
      compute_interface     Interface type
      compute_vnic_profile  Vnic Profile

    --compute-attributes:
      cluster             ID or name of cluster to use
      template            Hardware profile to use
      cores               Integer value, number of cores
      sockets             Integer value, number of sockets
      memory              Amount of memory, integer value in bytes
      ha                  Boolean, set 1 to high availability
      display_type        Possible values: VNC, SPICE
      keyboard_layout     Possible values: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr. Not usable if display type is SPICE.
      start               Boolean, set 1 to start the vm

  Rackspace:
    --volume:


    --interface:


    --compute-attributes:
      flavor_id

  VMware:
    --volume:
      name
      storage_pod         Storage Pod ID from VMware
      datastore           Datastore ID from VMware
      mode                persistent/independent_persistent/independent_nonpersistent
      size_gb             Integer number, volume size in GB
      thin                true/false
      eager_zero          true/false
      controller_key      Associated SCSI controller key

    --interface:
      compute_type        Type of the network adapter, for example one of:
                            VirtualVmxnet3
                            VirtualE1000
                          See documentation center for your version of vSphere to find more details about available adapter types:
                            https://www.vmware.com/support/pubs/
      compute_network     Network ID or Network Name from VMware

    --compute-attributes:
      cluster              Cluster ID from VMware
      corespersocket       Number of cores per socket (applicable to hardware versions < 10 only)
      cpus                 CPU count
      memory_mb            Integer number, amount of memory in MB
      path                 Path to folder
      resource_pool        Resource Pool ID from VMware
      firmware             automatic/bios/efi
      guest_id             Guest OS ID form VMware
      hardware_version     Hardware version ID from VMware
      memoryHotAddEnabled  Must be a 1 or 0, lets you add memory resources while the machine is on
      cpuHotAddEnabled     Must be a 1 or 0, lets you add CPU resources while the machine is on
      add_cdrom            Must be a 1 or 0, Add a CD-ROM drive to the virtual machine
      annotation           Annotation Notes
      scsi_controllers     List with SCSI controllers definitions
                             type - ID of the controller from VMware
                             key  - Key of the controller (e.g. 1000)
      start                Must be a 1 or 0, whether to start the machine or not

  AzureRM:
    --volume:
      disk_size_gb        Volume Size in GB (integer value)
      data_disk_caching   Data Disk Caching (None, ReadOnly, ReadWrite)

    --interface:
      compute_network     Select one of available Azure Subnets, must be an ID
      compute_public_ip   Public IP (None, Static, Dynamic)
      compute_private_ip  Static Private IP (expressed as true or false)

    --compute-attributes:
      resource_group      Existing Azure Resource Group of user
      vm_size             VM Size, eg. Standard_A0 etc.
      username            The Admin username
      password            The Admin password
      platform            OS type eg. Linux
      ssh_key_data        SSH key for passwordless authentication
      os_disk_caching     OS disk caching
      premium_os_disk     Premium OS Disk, Boolean as 0 or 1
      script_command      Custom Script Command
      script_uris         Comma seperated file URIs

2.36.5. hammer 主机 deb-package

管理主机上的 deb 软件包

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

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

Subcommands:
 list, index                   List deb packages installed on the host

Options:
 -h, --help                    Print help
2.36.5.1. hammer 主机 deb-package 列表

列出主机上安装的 deb 软件包

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

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --full-result FULL_RESULT     Whether or not to show all results
                               One of true/false, yes/no, 1/0.
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 --order ORDER                 Sort field and order, eg. 'id DESC'
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return
 --search SEARCH               Search string
 -h, --help                    Print help

Predefined field sets:
  --------|-----|---------|-----
  FIELDS  | ALL | DEFAULT | THIN
  --------|-----|---------|-----
  Id      | x   | x       | x
  Name    | x   | x       | x
  Version | x   | x       |
  Arch    | x   | x       |
  --------|-----|---------|-----

2.36.6. hammer host delete

删除主机

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

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.7. hammer host delete-parameter

主机的 delete 参数

Usage:
    hammer host delete-parameter [OPTIONS]

Options:
 --host HOST_NAME              Host name
 --host-id HOST_ID
 --name NAME                   Parameter name
 -h, --help                    Print help

2.36.8. hammer 主机解除关联

解除主机解除关联

Usage:
    hammer host disassociate [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.9. hammer 主机 enc-dump

转储主机的 ENC YAML

Usage:
    hammer host enc-dump [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.10. hammer 主机勘误表

管理主机上的勘误

Usage:
    hammer host errata [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 apply                         Schedule errata for installation using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead.
 info                          Retrieve a single errata for a host
 list                          List errata available for the content host
 recalculate                   Force regenerate applicability.

Options:
 -h, --help                    Print help
2.36.10.1. 应用 hammer 主机勘误

使用 katello-agent 调度安装的勘误。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。

Usage:
    hammer host errata apply [OPTIONS]

Options:
 --async                       Do not wait for the task
 --errata-ids ERRATA_IDS       List of Errata ids to install. Will be removed in a future release
                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                               JSON is acceptable and preferred way for complex parameters
 --host HOST_NAME              Host name
 --host-id HOST_ID             Host ID
 --ids IDS                     List of errata ids to perform an action on, (ex: RHSA-2019:1168)
                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                               JSON is acceptable and preferred way for complex parameters
 --search SEARCH               Search string for erratum to perform an action on
 -h, --help                    Print help
2.36.10.2. hammer 主机勘误表信息

检索主机的单个勘误

Usage:
    hammer host errata info [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --host HOST_NAME              Host name
 --host-id HOST_ID             Host ID
 --id ID                       Errata id of the erratum (RHSA-2012:108)
 --name NAME                   Name to search by
 -h, --help                    Print help

Predefined field sets:
  ------------------------|-----|--------
  FIELDS                  | ALL | DEFAULT
  ------------------------|-----|--------
  Title                   | x   | x
  Version                 | x   | x
  Description             | x   | x
  Status                  | x   | x
  Id                      | x   | x
  Errata id               | x   | x
  Reboot suggested        | x   | x
  Updated                 | x   | x
  Issued                  | x   | x
  Release                 | x   | x
  Solution                | x   | x
  Packages                | x   | x
  Module streams/name     | x   | x
  Module streams/stream   | x   | x
  Module streams/packages | x   | x
  ------------------------|-----|--------
2.36.10.3. hammer 主机勘误表列表

列出可用于内容主机的勘误

Usage:
    hammer host errata list [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Calculate Applicable Errata based on a particular Content View
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --host HOST_NAME                                    Host name
 --host-id HOST_ID                                   UUID of the content host
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID to search by
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --search SEARCH                                     Search string
 -h, --help                                          Print help

Predefined field sets:
  ------------|-----|--------
  FIELDS      | ALL | DEFAULT
  ------------|-----|--------
  Id          | x   | x
  Erratum id  | x   | x
  Type        | x   | x
  Title       | x   | x
  Installable | x   | x
  ------------|-----|--------
2.36.10.4. rehammer 主机勘误重新计算

强制重新生成适用性。

Usage:
    hammer host errata recalculate [OPTIONS]

Options:
 --async                       Do not wait for the task
 --host HOST_NAME              Host name
 --host-id HOST_ID             Host ID
 -h, --help                    Print help

2.36.11. hammer 主机事实

列出所有事实值

Usage:
    hammer host facts [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------|-----|--------
  FIELDS | ALL | DEFAULT
  -------|-----|--------
  Fact   | x   | x
  Value  | x   | x
  -------|-----|--------

Search / Order fields:
  fact                string
  fact_short_name     string
  facts               string
  host                string
  host.hostgroup      string
  host_id             integer
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  origin              string
  reported_at         datetime
  short_name          string
  type                string
  value               string

2.36.12. hammer 主机信息

显示主机

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

Options:
 --fields FIELDS                                 Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                        Set the current location context for the request
 --location-id LOCATION_ID                       Set the current location context for the request
 --location-title LOCATION_TITLE                 Set the current location context for the request
 --name NAME                                     Host name
 --organization ORGANIZATION_NAME                Set the current organization context for the request
 --organization-id ORGANIZATION_ID               Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE         Set the current organization context for the request
 --show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter values
                                                 One of true/false, yes/no, 1/0.
 -h, --help                                      Print help

Predefined field sets:
  --------------------------------------------------------|-----|---------|-----
  FIELDS                                                  | ALL | DEFAULT | THIN
  --------------------------------------------------------|-----|---------|-----
  Id                                                      | x   | x       | x
  Uuid                                                    | x   | x       |
  Name                                                    | x   | x       | x
  Organization                                            | x   | x       |
  Location                                                | x   | x       |
  Host group                                              | x   | x       |
  Compute resource                                        | x   | x       |
  Compute profile                                         | x   | x       |
  Puppet environment                                      | x   | x       |
  Puppet ca proxy                                         | x   | x       |
  Puppet master proxy                                     | x   | x       |
  Cert name                                               | x   | x       |
  Managed                                                 | x   | x       |
  Installed at                                            | x   | x       |
  Last report                                             | x   | x       |
  Uptime (seconds)                                        | x   | x       |
  Status/global status                                    | x   | x       |
  Status/build status                                     | x   | x       |
  Network/ipv4 address                                    | x   | x       |
  Network/ipv6 address                                    | x   | x       |
  Network/mac                                             | x   | x       |
  Network/subnet ipv4                                     | x   | x       |
  Network/subnet ipv6                                     | x   | x       |
  Network/domain                                          | x   | x       |
  Network/service provider/sp name                        | x   | x       |
  Network/service provider/sp ip                          | x   | x       |
  Network/service provider/sp mac                         | x   | x       |
  Network/service provider/sp subnet                      | x   | x       |
  Network interfaces/id                                   | x   | x       |
  Network interfaces/identifier                           | x   | x       |
  Network interfaces/type                                 | x   | x       |
  Network interfaces/mac address                          | x   | x       |
  Network interfaces/ipv4 address                         | x   | x       |
  Network interfaces/ipv6 address                         | x   | x       |
  Network interfaces/fqdn                                 | x   | x       |
  Operating system/architecture                           | x   | x       |
  Operating system/operating system                       | x   | x       |
  Operating system/build                                  | x   | x       |
  Operating system/medium                                 | x   | x       |
  Operating system/partition table                        | x   | x       |
  Operating system/pxe loader                             | x   | x       |
  Operating system/custom partition table                 | x   | x       |
  Operating system/image                                  | x   | x       |
  Operating system/image file                             | x   | x       |
  Operating system/use image                              | x   | x       |
  Parameters/                                             | x   | x       |
  All parameters/                                         | x   | x       |
  Additional info/owner                                   | x   | x       |
  Additional info/owner id                                | x   | x       |
  Additional info/owner type                              | x   | x       |
  Additional info/enabled                                 | x   | x       |
  Additional info/model                                   | x   | x       |
  Additional info/comment                                 | x   | x       |
  Openscap proxy                                          | x   | x       |
  Content information/content view/id                     | x   | x       |
  Content information/content view/name                   | x   | x       |
  Content information/lifecycle environment/id            | x   | x       |
  Content information/lifecycle environment/name          | x   | x       |
  Content information/content source/id                   | x   | x       |
  Content information/content source/name                 | x   | x       |
  Content information/kickstart repository/id             | x   | x       |
  Content information/kickstart repository/name           | x   | x       |
  Content information/applicable packages                 | x   | x       |
  Content information/upgradable packages                 | x   | x       |
  Content information/applicable errata/enhancement       | x   | x       |
  Content information/applicable errata/bug fix           | x   | x       |
  Content information/applicable errata/security          | x   | x       |
  Subscription information/uuid                           | x   | x       |
  Subscription information/last checkin                   | x   | x       |
  Subscription information/release version                | x   | x       |
  Subscription information/autoheal                       | x   | x       |
  Subscription information/registered to                  | x   | x       |
  Subscription information/registered at                  | x   | x       |
  Subscription information/registered by activation keys/ | x   | x       |
  Subscription information/system purpose/service level   | x   | x       |
  Subscription information/system purpose/purpose usage   | x   | x       |
  Subscription information/system purpose/purpose role    | x   | x       |
  Subscription information/system purpose/purpose addons  | x   | x       |
  Trace status                                            | x   | x       |
  Host collections/id                                     | x   | x       |
  Host collections/name                                   | x   | x       |
  --------------------------------------------------------|-----|---------|-----

2.36.13. hammer 主机接口

查看和管理主机的网络接口

Usage:
    hammer host interface [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create an interface on a host
 delete, destroy               Delete a host's interface
 info, show                    Show an interface for host
 list, index                   List all interfaces for host
 update                        Update a host's interface

Options:
 -h, --help                    Print help
2.36.13.1. hammer 主机接口创建

在主机上创建接口

Usage:
    hammer host interface create [OPTIONS]

Options:
 --attached-devices ATTACHED_DEVICES     Identifiers of attached interfaces, e.g. `['eth1', 'eth2']`. For bond interfaces those are the slaves. Only for bond and bridges interfaces.
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --attached-to ATTACHED_TO               Identifier of the interface to which this interface belongs, e.g. eth1. Only for virtual interfaces.
 --bond-options BOND_OPTIONS             Space separated options, e.g. miimon=100. Only for bond interfaces.
 --compute-attributes COMPUTE_ATTRS      Compute resource specific attributes
                                         Comma-separated list of key=value.
                                         JSON is acceptable and preferred way for complex parameters
 --domain DOMAIN_NAME                    Domain name
 --domain-id DOMAIN_ID                   Satellite domain ID of interface. Required for primary interfaces on managed hosts.
 --execution EXECUTION                   Should this interface be used for remote execution?
                                         One of true/false, yes/no, 1/0.
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       ID or name of host
 --identifier IDENTIFIER                 Device identifier, e.g. eth0 or eth1.1
 --ip IP                                 IPv4 address of interface
 --ip6 IP6                               IPv6 address of interface
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --mac MAC                               MAC address of interface. Required for managed interfaces on bare metal.
 --managed MANAGED                       Should this interface be managed via DHCP and DNS capsule and should it be configured during provisioning?
                                         One of true/false, yes/no, 1/0.
 --mode MODE                             Bond mode of the interface, e.g. balance-rr. Only for bond interfaces.
                                         Possible value(s): 'balance-rr', 'active-backup', 'balance-xor', 'broadcast', '802.3ad', 'balance-tlb', 'balance-alb'
 --mtu MTU                               MTU, this attribute has precedence over the subnet MTU.
 --name NAME                             Interface's DNS name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --password PASSWORD                     Only for BMC interfaces.
 --primary                               Should this interface be used for constructing the FQDN of the host? Each managed hosts needs to have one primary interface
 --provider PROVIDER                     Interface provider, e.g. IPMI. Only for BMC interfaces.
                                         Possible value(s): 'IPMI', 'Redfish', 'SSH'
 --provision                             Should this interface be used for TFTP of PXELinux (or SSH for image-based hosts)? Each managed hosts needs to have one provision interface
 --subnet SUBNET_NAME                    Subnet name
 --subnet-id SUBNET_ID                   Satellite subnet ID of IPv4 interface
 --subnet6-id SUBNET6_ID                 Satellite subnet ID of IPv6 interface
 --tag TAG                               VLAN tag, this attribute has precedence over the subnet VLAN ID. Only for virtual interfaces.
 --type TYPE                             Interface type, e.g. bmc. Default is interface
                                         Possible value(s): 'interface', 'bmc', 'bond', 'bridge'
 --username USERNAME                     Only for BMC interfaces.
 --virtual VIRTUAL                       Alias or VLAN device
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help
2.36.13.2. hammer 主机接口删除

删除主机的接口

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

Options:
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       ID or name of host
 --id ID                                 ID of interface
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.36.13.3. hammer 主机接口信息

显示主机的接口

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

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       ID or name of host
 --id ID                                 ID or name of interface
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Identifier            | x   | x       |
  Type                  | x   | x       |
  Mac address           | x   | x       |
  Ip address            | x   | x       |
  Dns name              | x   | x       |
  Subnet                | x   | x       |
  Domain                | x   | x       |
  Managed               | x   | x       |
  Primary               | x   | x       |
  Provision             | x   | x       |
  Virtual               | x   | x       |
  Tag                   | x   | x       |
  Attached to           | x   | x       |
  Bmc/username          | x   | x       |
  Bmc/provider          | x   | x       |
  Bond/mode             | x   | x       |
  Bond/attached devices | x   | x       |
  Bond/bond options     | x   | x       |
  Execution             | x   | x       |
  ----------------------|-----|---------|-----
2.36.13.4. hammer 主机接口列表

列出主机的所有接口

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

Options:
 --domain DOMAIN_NAME                    Domain name
 --domain-id DOMAIN_ID                   ID or name of domain
 --fields FIELDS                         Show specified fields or predefined field 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
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       ID or name of host
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --subnet SUBNET_NAME                    Subnet name
 --subnet-id SUBNET_ID                   ID or name of subnet
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Identifier  | x   | x       |
  Type        | x   | x       |
  Mac address | x   | x       |
  Ip address  | x   | x       |
  Dns name    | x   | x       |
  ------------|-----|---------|-----
2.36.13.5. hammer 主机接口更新

更新主机的接口

Usage:
    hammer host interface update [OPTIONS]

Options:
 --attached-devices ATTACHED_DEVICES     Identifiers of attached interfaces, e.g. `['eth1', 'eth2']`. For bond interfaces those are the slaves. Only for bond and bridges interfaces.
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --attached-to ATTACHED_TO               Identifier of the interface to which this interface belongs, e.g. eth1. Only for virtual interfaces.
 --bond-options BOND_OPTIONS             Space separated options, e.g. miimon=100. Only for bond interfaces.
 --compute-attributes COMPUTE_ATTRS      Compute resource specific attributes
                                         Comma-separated list of key=value.
                                         JSON is acceptable and preferred way for complex parameters
 --domain DOMAIN_NAME                    Domain name
 --domain-id DOMAIN_ID                   Satellite domain ID of interface. Required for primary interfaces on managed hosts.
 --execution EXECUTION                   Should this interface be used for remote execution?
                                         One of true/false, yes/no, 1/0.
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       ID or name of host
 --id ID                                 ID of interface
 --identifier IDENTIFIER                 Device identifier, e.g. eth0 or eth1.1
 --ip IP                                 IPv4 address of interface
 --ip6 IP6                               IPv6 address of interface
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --mac MAC                               MAC address of interface. Required for managed interfaces on bare metal.
 --managed MANAGED                       Should this interface be managed via DHCP and DNS capsule and should it be configured during provisioning?
                                         One of true/false, yes/no, 1/0.
 --mode MODE                             Bond mode of the interface, e.g. balance-rr. Only for bond interfaces.
                                         Possible value(s): 'balance-rr', 'active-backup', 'balance-xor', 'broadcast', '802.3ad', 'balance-tlb', 'balance-alb'
 --mtu MTU                               MTU, this attribute has precedence over the subnet MTU.
 --name NAME                             Interface's DNS name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --password PASSWORD                     Only for BMC interfaces.
 --primary                               Should this interface be used for constructing the FQDN of the host? Each managed hosts needs to have one primary interface
 --provider PROVIDER                     Interface provider, e.g. IPMI. Only for BMC interfaces.
                                         Possible value(s): 'IPMI', 'Redfish', 'SSH'
 --provision                             Should this interface be used for TFTP of PXELinux (or SSH for image-based hosts)? Each managed hosts needs to have one provision interface
 --subnet SUBNET_NAME                    Subnet name
 --subnet-id SUBNET_ID                   Satellite subnet ID of IPv4 interface
 --subnet6-id SUBNET6_ID                 Satellite subnet ID of IPv6 interface
 --tag TAG                               VLAN tag, this attribute has precedence over the subnet VLAN ID. Only for virtual interfaces.
 --type TYPE                             Interface type, e.g. bmc. Default is interface
                                         Possible value(s): 'interface', 'bmc', 'bond', 'bridge'
 --username USERNAME                     Only for BMC interfaces.
 --virtual VIRTUAL                       Alias or VLAN device
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

2.36.14. hammer 主机列表

列出所有主机

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

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field 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                   ID of host group
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     ID of location
 --location-title LOCATION_TITLE               Set the current location context for the request
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             ID of organization
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return, 'all' to return all results
 --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   |         |
  Trace status           | x   | 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_errata_issued        date
  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
  cve_id                          integer
  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                      boolean
  hypervisor_host                 string
  id                              integer
  image                           string
  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
  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_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.15. hammer 主机软件包

管理主机上的软件包

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

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

Subcommands:
 install                       Install packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead.
 list, index                   List packages installed on the host
 remove                        Uninstall packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead.
 upgrade                       Update packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead.
 upgrade-all                   Update packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead.

Options:
 -h, --help                    Print help
2.36.15.1. hammer 主机软件包安装

使用 katello-agent 远程安装软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。

Usage:
    hammer host package install [OPTIONS]

Options:
 --async                       Do not wait for the task
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 --packages PACKAGES           List of package 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
 -h, --help                    Print help
2.36.15.2. hammer 主机软件包列表

列出主机上安装的软件包

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

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --full-result FULL_RESULT     Whether or not to show all results
                               One of true/false, yes/no, 1/0.
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 --order ORDER                 Sort field and order, eg. 'id DESC'
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return
 --search SEARCH               Search string
 -h, --help                    Print help

Predefined field sets:
  -------|-----|--------
  FIELDS | ALL | DEFAULT
  -------|-----|--------
  Nvra   | x   | x
  -------|-----|--------

Search / Order fields:
  arch                string
  epoch               string
  name                string
  nvra                string
  nvrea               string
  release             string
  version             string
2.36.15.3. hammer 主机软件包删除

使用 katello-agent 远程卸载软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。

Usage:
    hammer host package remove [OPTIONS]

Options:
 --async                       Do not wait for the task
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 --packages PACKAGES           List of package 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
 -h, --help                    Print help
2.36.15.4. hammer 主机软件包升级

使用 katello-agent 远程更新软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。

Usage:
    hammer host package upgrade [OPTIONS]

Options:
 --async                       Do not wait for the task
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 --packages PACKAGES           List of packages 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
 -h, --help                    Print help
2.36.15.5. hammer 主机软件包升级-all

使用 katello-agent 远程更新软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。

Usage:
    hammer host package upgrade-all [OPTIONS]

Options:
 --async                       Do not wait for the task
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 -h, --help                    Print help

2.36.16. hammer host package-group

管理主机上的软件包组

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

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

Subcommands:
 install                       Install packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead.
 remove                        Uninstall packages remotely using katello-agent. NOTE: Katello-agent is deprecated and will be removed in a future release. Consider using remote execution instead.

Options:
 -h, --help                    Print help
2.36.16.1. hammer host package-group install

使用 katello-agent 远程安装软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。

Usage:
    hammer host package-group install [OPTIONS]

Options:
 --async                       Do not wait for the task
 --groups GROUPS               List of package group names (Deprecated)
                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                               JSON is acceptable and preferred way for complex parameters
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 -h, --help                    Print help
2.36.16.2. hammer host package-group remove

使用 katello-agent 远程卸载软件包。注意: Katello-agent 已被弃用,并将在以后的发行版本中删除。考虑改为使用远程执行。

Usage:
    hammer host package-group remove [OPTIONS]

Options:
 --async                       Do not wait for the task
 --groups GROUPS               List of package group names (Deprecated)
                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                               JSON is acceptable and preferred way for complex parameters
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 -h, --help                    Print help

2.36.17. hammer 主机策略一致性

查看主机的策略 ENC

Usage:
    hammer host policies-enc [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 The identifier of the host
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------------------------|-----|--------
  FIELDS                  | ALL | DEFAULT
  ------------------------|-----|--------
  Id                      | x   | x
  Profile id              | x   | x
  Content path            | x   | x
  Content download path   | x   | x
  Tailoring path          | x   | x
  Tailoring download path | x   | x
  Day of month            | x   | x
  Hour                    | x   | x
  Minute                  | x   | x
  Month                   | x   | x
  Week                    | x   | x
  ------------------------|-----|--------

2.36.18. hammer host puppet-classes

列出所有 Puppet 类

Usage:
    hammer host puppet-classes [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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
 --host HOST_NAME                  Host name
 --host-id HOST_ID                 ID of host
 --location-id LOCATION_ID         Set the current location context for the request
 --order ORDER                     Sort field and order, eg. ‘id DESC’
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --page PAGE                       Page number, starting at 1
 --per-page PER_PAGE               Number of results per page to return, 'all' to return all results
 --search SEARCH                   Filter results
 -h, --help                        Print help

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

Search / Order fields:
  config_group        string
  environment         string
  host                string
  hostgroup           string
  key                 string
  location            string
  name                string
  organization        string

2.36.19. hammer 主机重新引导

重启主机

Usage:
    hammer host reboot [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.20. hammer host rebuild-config

为主机重建与编配相关的配置

Usage:
    hammer host rebuild-config [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --only ONLY                             Limit rebuild steps, valid steps are DHCP, DNS, TFTP, Content_Host_Status, Refresh_Content_Host_Status
                                         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 ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.21. hammer 主机报告

列出所有报告

Usage:
    hammer host reports [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Host id
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Host             | x   | x       |
  Last report      | x   | x       |
  Origin           | x   | x       |
  Applied          | x   | x       |
  Restarted        | x   | x       |
  Failed           | x   | x       |
  Restart failures | x   | x       |
  Skipped          | x   | x       |
  Pending          | x   | x       |
  -----------------|-----|---------|-----

Search / Order fields:
  applied             integer
  environment         string
  eventful            Values: true, false
  failed              integer
  failed_restarts     integer
  host                string
  host_id             integer
  hostgroup           string
  hostgroup_fullname  string
  hostgroup_title     string
  last_report         datetime
  location            string
  log                 text
  organization        string
  origin              string
  pending             integer
  reported            datetime
  resource            text
  restarted           integer
  skipped             integer

2.36.22. hammer 主机重置

重置主机

Usage:
    hammer host reset [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.23. hammer 主机 sc-params

列出所有智能类参数

Usage:
    hammer host sc-params [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --host HOST_NAME                        Host name
 --host-id HOST_ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --show-hidden SHOW_HIDDEN               Display hidden values
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Parameter     | x   | x
  Default value | x   | x
  Override      | x   | x
  Puppet class  | x   | x
  Class id      | x   | x
  --------------|-----|--------

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string

2.36.24. hammer 主机 set-parameter

为主机创建或附加参数

Usage:
    hammer host set-parameter [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE     Should the value be hidden
                                 One of true/false, yes/no, 1/0.
 --host HOST_NAME                Host name
 --host-id HOST_ID
 --name NAME                     Parameter name
 --parameter-type PARAMETER_TYPE Type of the parameter
                                 Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                 Default: "string"
 --value VALUE                   Parameter value
 -h, --help                      Print help

2.36.25. hammer 主机启动

打开主机电源

Usage:
    hammer host start [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.26. hammer 主机状态

获取主机状态

Usage:
    hammer host status [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --type TYPE                             Status type, can be one of

                                         Global

                                         Configuration

                                         Build
                                         Possible value(s): 'HostStatus::Global', 'configuration', 'build'
 -h, --help                              Print help

2.36.27. hammer 主机停止

关闭主机

Usage:
    hammer host stop [OPTIONS]

Options:
 --force                                 Force turning off a host
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Host name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.36.28. hammer 主机订阅

管理主机上的订阅信息

Usage:
    hammer host subscription [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 attach                        Add a subscription to a host
 auto-attach                   Trigger an auto-attach of subscriptions
 content-override              Override product content defaults
 product-content               List associated products
 register                      Register a host with subscription and information
 remove
 unregister                    Unregister the host as a subscription consumer

Options:
 -h, --help                    Print help
2.36.28.1. hammer 主机订阅附加

为主机添加订阅

Usage:
    hammer host subscription attach [OPTIONS]

Options:
 --host HOST_NAME                  Host name
 --host-id HOST_ID                 Id of the host
 --quantity Quantity               Quantity of this subscriptions to add. Defaults to 1
 --subscription-id SUBSCRIPTION_ID ID of subscription
 -h, --help                        Print help
2.36.28.2. hammer 主机订阅自动附加

触发订阅的自动附加

Usage:
    hammer host subscription auto-attach [OPTIONS]

Options:
 --host HOST_NAME              Host name
 --host-id HOST_ID             Id of the host
 -h, --help                    Print help
2.36.28.3. hammer 主机订阅 content-override

覆盖产品内容默认设置

Usage:
    hammer host subscription content-override [OPTIONS]

Options:
 --content-label CONTENT_LABEL Label of the content
 --host HOST_NAME              Host name
 --host-id HOST_ID             Id of the content host
 --override-name OVERRIDE_NAME Override parameter key or name.
                               To enable or disable a repo select 'enabled'.
                               Default value: enabled
                               Default: "enabled"
 --remove                      Remove a content override
 --value VALUE                 Override value. Note for repo enablement you can use a boolean value
 -h, --help                    Print help
2.36.28.4. hammer 主机订阅产品-内容

列出相关产品

Usage:
    hammer host subscription product-content [OPTIONS]

Options:
 --content-access-mode-all CONTENT_ACCESS_MODE_ALL Get all content available, not just that provided by subscriptions
                                                   One of true/false, yes/no, 1/0.
 --content-access-mode-env CONTENT_ACCESS_MODE_ENV Limit content to just that available in the host's content view version
                                                   One of true/false, yes/no, 1/0.
 --fields FIELDS                                   Show specified fields or predefined field 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
 --host HOST_NAME                                  Host name
 --host-id HOST_ID                                 Id of the host
 -h, --help                                        Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Name             | x   | x       | x
  Type             | x   | x       |
  Url              | x   | x       |
  Gpg key          | x   | x       |
  Label            | x   | x       |
  Default enabled? | x   | x       |
  Override         | x   | x       |
  -----------------|-----|---------|-----
2.36.28.5. hammer 主机订阅注册

使用订阅和信息注册主机

Usage:
    hammer host subscription register [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content View ID
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --hypervisor-guest-uuids HYPERVISOR_GUEST_UUIDS     UUIDs of the virtual guests from the host's hypervisor
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID Lifecycle Environment ID
 --name NAME                                         Name of the host
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID to search by
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --release-version RELEASE_VERSION                   Release version of the content host
 --service-level SERVICE_LEVEL                       A service level for auto-healing process, e.g. SELF-SUPPORT
 --uuid UUID                                         UUID to use for registered host, random uuid is generated if not provided
 -h, --help                                          Print help
2.36.28.6. 已删除 hammer 主机订阅
Usage:
    hammer host subscription remove [OPTIONS]

Options:
 --host HOST_NAME                  Host name
 --host-id HOST_ID                 Id of the host
 --quantity Quantity               Remove the first instance of a subscription with matching id and quantity
 --subscription-id SUBSCRIPTION_ID ID of subscription
 -h, --help                        Print help
2.36.28.7. hammer 主机订阅未注册

将主机注册为订阅消费者

Usage:
    hammer host subscription unregister [OPTIONS]

Options:
 --host HOST_NAME              Host name
 --host-id HOST_ID             Id of the host
 -h, --help                    Print help

2.36.29. hammer 主机跟踪

列出主机上的追踪

Usage:
    hammer host traces [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 list                          List services that need restarting on the host
 resolve                       Resolve Traces

Options:
 -h, --help                    Print help
2.36.29.1. hammer 主机跟踪列表

列出主机上需要重启的服务

Usage:
    hammer host traces list [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 -h, --help                    Print help

Predefined field sets:
  ------------|-----|--------
  FIELDS      | ALL | DEFAULT
  ------------|-----|--------
  Trace id    | x   | x
  Application | x   | x
  Helper      | x   | x
  Type        | x   | x
  ------------|-----|--------
2.36.29.2. hammer 主机追踪解析

解析 Traces

Usage:
    hammer host traces resolve [OPTIONS]

Options:
 --async                       Do not wait for the task
 --host HOST_NAME              Host name
 --host-id HOST_ID             ID of the host
 --trace-ids TRACE_IDS         Array of Trace IDs
                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                               JSON is acceptable and preferred way for complex parameters
 -h, --help                    Print help

2.36.30. hammer 主机更新

更新主机

Usage:
    hammer host update [OPTIONS]

Options:
 --ansible-role-ids ANSIBLE_ROLE_IDS                           IDs of associated ansible roles
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --ansible-roles ANSIBLE_ROLE_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
 --architecture ARCHITECTURE_NAME                              Architecture name
 --architecture-id ARCHITECTURE_ID                             Required if host is managed and value is not inherited from host group
 --ask-root-password ASK_ROOT_PW                               One of true/false, yes/no, 1/0.
 --autoheal AUTOHEAL                                           Sets whether the Host will autoheal subscriptions upon checkin
                                                               One of true/false, yes/no, 1/0.
 --build BUILD                                                 One of true/false, yes/no, 1/0.
 --comment COMMENT                                             Additional information about this host
 --compute-attributes COMPUTE_ATTRS                            Compute resource attributes
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
 --compute-profile COMPUTE_PROFILE_NAME                        Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID
 --compute-resource COMPUTE_RESOURCE_NAME                      Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID                     Nil means host is bare metal
 --config-group-ids CONFIG_GROUP_IDS                           IDs of associated config groups
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --config-groups CONFIG_GROUP_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
 --content-source CONTENT_SOURCE_NAME                          Content Source name
 --content-source-id CONTENT_SOURCE_ID
 --content-view CONTENT_VIEW_NAME                              Name to search by
 --content-view-id CONTENT_VIEW_ID
 --domain DOMAIN_NAME                                          Domain name
 --domain-id DOMAIN_ID                                         Required if host is managed and value is not inherited from host group
 --enabled ENABLED                                             Include this host within Satellite reporting
                                                               One of true/false, yes/no, 1/0.
 --environment ENVIRONMENT_NAME                                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID                               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --hostgroup HOSTGROUP_NAME                                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE                             Hostgroup title
 --hypervisor-guest-uuids HYPERVISOR_GUEST_UUIDS               List of hypervisor guest uuids
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --id ID
 --image IMAGE_NAME                                            Name to search by
 --image-id IMAGE_ID
 --installed-products-attributes INSTALLED_PRODUCTS_ATTRIBUTES List of products installed on the host
                                                               Comma separated list of values defined by a schema. See Option details section below.
                                                               JSON is acceptable and preferred way for complex parameters
 --interface INTERFACE                                         Interface parameters
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
                                                               Can be specified multiple times.
 --ip IP                                                       Not required if using a subnet with DHCP Capsule
 --kickstart-repository REPOSITORY_NAME                        Kickstart repository name
 --kickstart-repository-id KICKSTART_REPOSITORY_ID             Repository Id associated with the kickstart repo used for provisioning
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME            Name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --location LOCATION_NAME                                      Set the current location context for the request
 --location-id LOCATION_ID                                     Set the current location context for the request
 --location-title LOCATION_TITLE                               Set the current location context for the request
 --mac MAC                                                     Required for managed host that is bare metal, not required if it's a virtual machine
 --managed MANAGED                                             True/False flag whether a host is managed or unmanaged. Note: this value also determines whether several parameters are required or not
                                                               One of true/false, yes/no, 1/0.
 --medium MEDIUM_NAME                                          Medium name
 --medium-id MEDIUM_ID                                         Required if not imaged based provisioning and host is managed and value is not inherited from host group
 --model MODEL_NAME                                            Model name
 --model-id MODEL_ID
 --name NAME                                                   Host name
 --new-location NEW_LOCATION_NAME                              Use to update
 --new-location-id NEW_LOCATION_ID                             Use to update
 --new-location-title NEW_LOCATION_TITLE                       Use to update
 --new-name NEW_NAME
 --new-organization NEW_ORGANIZATION_NAME                      Use to update
 --new-organization-id NEW_ORGANIZATION_ID                     Use to update
 --new-organization-title NEW_ORGANIZATION_TITLE               Use to update
 --openscap-proxy-id OPENSCAP_PROXY_ID                         ID of OpenSCAP Capsule
 --operatingsystem OPERATINGSYSTEM_TITLE                       Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID                       Required if host is managed and value is not inherited from host group
 --organization ORGANIZATION_NAME                              Set the current organization context for the request
 --organization-id ORGANIZATION_ID                             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE                       Set the current organization context for the request
 --overwrite OVERWRITE                                         One of true/false, yes/no, 1/0.
 --owner OWNER_LOGIN                                           Login of the owner
 --owner-id OWNER_ID                                           ID of the owner
 --owner-type OWNER_TYPE                                       Host's owner type
                                                               Possible value(s): 'User', 'Usergroup'
 --parameters PARAMS                                           Replaces with new host parameters
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
 --partition-table PARTITION_TABLE_NAME                        Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --product PRODUCT_NAME                                        Name to search by
 --product-id PRODUCT_ID                                       Product id as listed from a host's installed products,         this is not the same product id as the products api returns
 --progress-report-id PROGRESS_REPORT_ID                       UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks
 --provision-method PROVISION_METHOD                           The method used to provision the host.
                                                               Possible value(s): 'build', 'image', 'bootdisk'
 --puppet-ca-proxy PUPPET_CA_PROXY_NAME
 --puppet-ca-proxy-id PUPPET_CA_PROXY_ID                       Puppet CA Capsule ID
 --puppet-class-ids PUPPET_CLASS_IDS                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --puppet-classes PUPPET_CLASS_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
 --puppet-environment PUPPET_ENVIRONMENT_NAME                  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --puppet-proxy PUPPET_PROXY_NAME
 --puppet-proxy-id PUPPET_PROXY_ID                             Puppet Capsule ID
 --purpose-addons PURPOSE_ADDONS                               Sets the system add-ons
                                                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                               JSON is acceptable and preferred way for complex parameters
 --purpose-role PURPOSE_ROLE                                   Sets the system purpose usage
 --purpose-usage PURPOSE_USAGE                                 Sets the system purpose usage
 --pxe-loader PXE_LOADER                                       DHCP filename option (Grub2/PXELinux by default)
                                                               Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 BIOS', 'Grub2 ELF', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI'
 --realm REALM_NAME                                            Name to search by
 --realm-id REALM_ID
 --release-version RELEASE_VERSION                             Release version for this Host to use (7Server, 7.1, etc)
 --root-password ROOT_PW                                       Required if host is managed and value is not inherited from host group or default password in settings
 --service-level SERVICE_LEVEL                                 Service level to be used for autoheal
 --subnet SUBNET_NAME                                          Subnet name
 --subnet-id SUBNET_ID                                         Required if host is managed and value is not inherited from host group
 --typed-parameters TYPED_PARAMS                               Replaces with new host parameters (with type support)
                                                               Comma separated list of values defined by a schema. See Option details section below.
                                                               JSON is acceptable and preferred way for complex parameters
 --volume VOLUME                                               Volume parameters
                                                               Comma-separated list of key=value.
                                                               JSON is acceptable and preferred way for complex parameters
                                                               Can be specified multiple times.
 -h, --help                                                    Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --typed-parameters  "name=<string>\,value=<string>\,parameter_type=[string|boolean|integer|real|array|hash|yaml|json]\,hidden_value=[true|false|1|0], ... "

  --installed-products-attributes  "product_id=<string>\,product_name=<string>\,arch=<string>\,version=<string>, ... "

Available keys for --interface:
  mac
  ip
  type                Possible values: interface, bmc, bond, bridge
  name
  subnet_id
  domain_id
  identifier
  managed             true/false
  primary             true/false, each managed hosts needs to have one primary interface.
  provision           true/false
  virtual             true/false

  For virtual=true:
    tag                 VLAN tag, this attribute has precedence over the subnet VLAN ID. Only for virtual interfaces.
    attached_to         Identifier of the interface to which this interface belongs, e.g. eth1.

  For type=bond:
    mode                Possible values: balance-rr, active-backup, balance-xor, broadcast, 802.3ad, balance-tlb, balance-alb
    attached_devices    Identifiers of slave interfaces, e.g. [eth1,eth2]
    bond_options

  For type=bmc:
    provider            always IPMI
    username
    password

Provider specific options:
  NOTE: Bold attributes are required.

  EC2:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      flavor_id
      groups
      security_group_ids
      managed_ip

  GCE:
    --volume:
      size_gb             Volume size in GB, integer value

    --interface:


    --compute-attributes:
      machine_type
      network
      associate_external_ip

  Libvirt:
    --volume:
      pool_name                    One of available storage pools
      capacity                     String value, e.g. 10G
      allocation
      Initial allocation, e.g. 0G
      format_type                  Possible values: raw, qcow2

    --interface:
      compute_type                            Possible values: bridge, network
      compute_bridge                          Name of interface according to type
      compute_model                           Possible values: virtio, rtl8139, ne2k_pci, pcnet, e1000
      compute_network
      Libvirt instance network, e.g. default

    --compute-attributes:
      cpus                Number of CPUs
      memory              String, amount of memory, value in bytes
      cpu_mode            Possible values: default, host-model, host-passthrough
      start               Boolean (expressed as 0 or 1), whether to start the machine or not

  OpenStack:
    --volume:


    --interface:


    --compute-attributes:
      availability_zone
      boot_from_volume
      flavor_ref
      image_ref
      tenant_id
      security_groups
      network

  oVirt:
    --volume:
      size_gb             Volume size in GB, integer value
      storage_domain      ID or name of storage domain
      bootable            Boolean, set 1 for bootable, only one volume can be bootable
      preallocate         Boolean, set 1 to preallocate
      wipe_after_delete   Boolean, set 1 to wipe disk after delete
      interface           Disk interface name, must be ide, virto or virto_scsi

    --interface:
      compute_name          Compute name, e.g. eth0
      compute_network       Select one of available networks for a cluster, must be an ID or a name
      compute_interface     Interface type
      compute_vnic_profile  Vnic Profile

    --compute-attributes:
      cluster             ID or name of cluster to use
      template            Hardware profile to use
      cores               Integer value, number of cores
      sockets             Integer value, number of sockets
      memory              Amount of memory, integer value in bytes
      ha                  Boolean, set 1 to high availability
      display_type        Possible values: VNC, SPICE
      keyboard_layout     Possible values: ar, de-ch, es, fo, fr-ca, hu, ja, mk, no, pt-br, sv, da, en-gb, et, fr, fr-ch, is, lt, nl, pl, ru, th, de, en-us, fi, fr-be, hr, it, lv, nl-be, pt, sl, tr. Not usable if display type is SPICE.
      start               Boolean, set 1 to start the vm

  Rackspace:
    --volume:


    --interface:


    --compute-attributes:
      flavor_id

  VMware:
    --volume:
      name
      storage_pod         Storage Pod ID from VMware
      datastore           Datastore ID from VMware
      mode                persistent/independent_persistent/independent_nonpersistent
      size_gb             Integer number, volume size in GB
      thin                true/false
      eager_zero          true/false
      controller_key      Associated SCSI controller key

    --interface:
      compute_type        Type of the network adapter, for example one of:
                            VirtualVmxnet3
                            VirtualE1000
                          See documentation center for your version of vSphere to find more details about available adapter types:
                            https://www.vmware.com/support/pubs/
      compute_network     Network ID or Network Name from VMware

    --compute-attributes:
      cluster              Cluster ID from VMware
      corespersocket       Number of cores per socket (applicable to hardware versions < 10 only)
      cpus                 CPU count
      memory_mb            Integer number, amount of memory in MB
      path                 Path to folder
      resource_pool        Resource Pool ID from VMware
      firmware             automatic/bios/efi
      guest_id             Guest OS ID form VMware
      hardware_version     Hardware version ID from VMware
      memoryHotAddEnabled  Must be a 1 or 0, lets you add memory resources while the machine is on
      cpuHotAddEnabled     Must be a 1 or 0, lets you add CPU resources while the machine is on
      add_cdrom            Must be a 1 or 0, Add a CD-ROM drive to the virtual machine
      annotation           Annotation Notes
      scsi_controllers     List with SCSI controllers definitions
                             type - ID of the controller from VMware
                             key  - Key of the controller (e.g. 1000)
      start                Must be a 1 or 0, whether to start the machine or not

  AzureRM:
    --volume:
      disk_size_gb        Volume Size in GB (integer value)
      data_disk_caching   Data Disk Caching (None, ReadOnly, ReadWrite)

    --interface:
      compute_network     Select one of available Azure Subnets, must be an ID
      compute_public_ip   Public IP (None, Static, Dynamic)
      compute_private_ip  Static Private IP (expressed as true or false)

    --compute-attributes:
      resource_group      Existing Azure Resource Group of user
      vm_size             VM Size, eg. Standard_A0 etc.
      username            The Admin username
      password            The Admin password
      platform            OS type eg. Linux
      ssh_key_data        SSH key for passwordless authentication
      os_disk_caching     OS disk caching
      premium_os_disk     Premium OS Disk, Boolean as 0 or 1
      script_command      Custom Script Command
      script_uris         Comma seperated file URIs

2.37. 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.37.1. hammer host-collection add-host

将主机添加到主机组中

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

Options:
 --host-ids HOST_IDS                     Array of host ids
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --hosts HOST_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
 --id ID                                 Id of the host collection
 --name NAME                             Host collection name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.37.2. hammer host-collection copy

复制主机集合

Usage:
    hammer host-collection copy [OPTIONS]

Options:
 --id ID                                 ID of the host collection
 --name NAME                             Host collection name to search by
 --new-name NEW_NAME                     New host collection name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.37.3. hammer host-collection create

创建主机聚合

Usage:
    hammer host-collection create [OPTIONS]

Options:
 --description DESCRIPTION
 --host-ids HOST_IDS                     List of host ids to replace the hosts in host collection
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --hosts HOST_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-hosts MAX_HOSTS                   Maximum number of hosts in the host collection
 --name NAME                             Host Collection name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --unlimited-hosts UNLIMITED_HOSTS       Whether or not the host collection may have unlimited hosts
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

2.37.4. hammer host-collection delete

销毁主机集合

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

Options:
 --id ID                                 Id of the host collection
 --name NAME                             Host collection name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.37.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.37.5.1. hammer host-collection 勘误安装

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

Usage:
    hammer host-collection erratum install [OPTIONS]

Options:
 --errata ERRATA                         List of Errata to install
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --id HOST_COLLECTION_ID                 Host Collection ID
 --name HOST_COLLECTION_NAME             Host Collection Name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.37.6. hammer host-collection 主机

列出所有主机

Usage:
    hammer host-collection hosts [OPTIONS]

Options:
 --fields FIELDS                                     Show specified fields or predefined field 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                         ID of host group
 --hostgroup-title HOSTGROUP_TITLE                   Hostgroup title
 --id HOST_COLLECTION_ID                             Host Collection ID
 --include INCLUDE                                   Array of extra information types to include
                                                     Possible value(s): 'parameters', 'all_parameters'
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --location LOCATION_NAME                            Set the current location context for the request
 --location-id LOCATION_ID                           ID of location
 --location-title LOCATION_TITLE                     Set the current location context for the request
 --name HOST_COLLECTION_NAME                         Host Collection Name
 --order ORDER                                       Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   ID of organization
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return, 'all' to return all results
 --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
  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_errata_issued        date
  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
  cve_id                          integer
  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                      boolean
  hypervisor_host                 string
  id                              integer
  image                           string
  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
  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_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.37.7. hammer host-collection info

显示主机集合

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

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the host collection
 --name NAME                             Host collection name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE 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       |
  ------------|-----|---------|-----

2.37.8. hammer host-collection list

列出主机组

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

Options:
 --activation-key ACTIVATION_KEY_NAME    Activation key name to search by
 --activation-key-id ACTIVATION_KEY_ID   Activation key identifier
 --available-for AVAILABLE_FOR           Interpret specified object to return only Host Collections that can be associated with specified object. The value 'host' is supported.
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       Filter products by host id
 --name NAME                             Host collection name to filter by
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         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       |
  ------------|-----|---------|-----

Search / Order fields:
  host                string
  name                string
  organization_id     integer

2.37.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.37.9.1. hammer host-collection 软件包安装

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

Usage:
    hammer host-collection package install [OPTIONS]

Options:
 --id HOST_COLLECTION_ID                 Host Collection ID
 --name HOST_COLLECTION_NAME             Host Collection Name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --packages PACKAGES                     Comma-separated list of packages to install
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help
2.37.9.2. hammer host-collection 软件包被删除

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

Usage:
    hammer host-collection package remove [OPTIONS]

Options:
 --id HOST_COLLECTION_ID                 Host Collection ID
 --name HOST_COLLECTION_NAME             Host Collection Name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --packages PACKAGES                     Comma-separated list of packages to install
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help
2.37.9.3. hammer host-collection 软件包更新

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

Usage:
    hammer host-collection package update [OPTIONS]

Options:
 --id HOST_COLLECTION_ID                 Host Collection ID
 --name HOST_COLLECTION_NAME             Host Collection Name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --packages PACKAGES                     Comma-separated list of packages to install
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help

2.37.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.37.10.1. hammer host-collection package-group install

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

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

Options:
 --id HOST_COLLECTION_ID                 Host Collection ID
 --name HOST_COLLECTION_NAME             Host Collection Name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --package-groups PACKAGE-GROUPS         Comma-separated list of package-groups to install
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help
2.37.10.2. hammer host-collection package-group remove

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

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

Options:
 --id HOST_COLLECTION_ID                 Host Collection ID
 --name HOST_COLLECTION_NAME             Host Collection Name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --package-groups PACKAGE-GROUPS         Comma-separated list of package-groups to install
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help
2.37.10.3. hammer host-collection package-group update

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

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

Options:
 --id HOST_COLLECTION_ID                 Host Collection ID
 --name HOST_COLLECTION_NAME             Host Collection Name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --package-groups PACKAGE-GROUPS         Comma-separated list of package-groups to install
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help

2.37.11. hammer host-collection remove-host

从主机组中删除主机

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

Options:
 --host-ids HOST_IDS                     Array of host ids
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --hosts HOST_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
 --id ID                                 Id of the host collection
 --name NAME                             Host collection name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.37.12. hammer host-collection 更新

更新主机集合

Usage:
    hammer host-collection update [OPTIONS]

Options:
 --description DESCRIPTION
 --host-ids HOST_IDS                     List of host ids to replace the hosts in host collection
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --hosts HOST_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
 --id ID                                 Id of the host collection
 --max-hosts MAX_HOSTS                   Maximum number of hosts in the host collection
 --name NAME                             Host collection name to search by
 --new-name NEW_NAME                     Host Collection name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --unlimited-hosts UNLIMITED_HOSTS       Whether or not the host collection may have unlimited hosts
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

2.38. hammer host-registration

主机注册

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

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

Subcommands:
 generate-command              Generate global registration command

Options:
 -h, --help                    Print help

2.38.1. hammer host-registration generate-command

生成全局注册命令

Usage:
    hammer host-registration generate-command [OPTIONS]

Options:
 --activation-key ACTIVATION_KEY                         Activation key for subscription-manager client, required for CentOS and Red Hat Enterprise Linux. For multiple keys use `activation_keys` param instead.
 --activation-keys ACTIVATION_KEYS                       Activation keys for subscription-manager client, required for CentOS and Red Hat Enterprise Linux. Required only if host group has no activation keys.
                                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                         JSON is acceptable and preferred way for complex parameters
 --force FORCE                                           Clear any previous registration and run subscription-manager with –force.
                                                         One of true/false, yes/no, 1/0.
 --hostgroup HOSTGROUP_NAME                              Hostgroup name
 --hostgroup-id HOSTGROUP_ID                             ID of the Host group to register the host in
 --hostgroup-title HOSTGROUP_TITLE                       Hostgroup title
 --ignore-subman-errors IGNORE_SUBMAN_ERRORS             Ignore subscription-manager errors for `subscription-manager register` command
                                                         One of true/false, yes/no, 1/0.
 --insecure INSECURE                                     Enable insecure argument for the initial curl
                                                         One of true/false, yes/no, 1/0.
 --jwt-expiration JWT_EXPIRATION                         Expiration of the authorization token (in hours)
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME      Name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID     Lifecycle environment for the host.
 --location LOCATION_NAME                                Set the current location context for the request
 --location-id LOCATION_ID                               Set the current location context for the request
 --location-title LOCATION_TITLE                         Set the current location context for the request
 --operatingsystem OPERATINGSYSTEM_TITLE                 Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID                 ID of the Operating System to register the host in
 --organization ORGANIZATION_NAME                        Set the current organization context for the request
 --organization-id ORGANIZATION_ID                       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE                 Set the current organization context for the request
 --packages PACKAGES                                     Packages to install on the host when registered. Can be set by `host_packages` parameter. Example: `pkg1 pkg2`
 --remote-execution-interface REMOTE_EXECUTION_INTERFACE Identifier of the Host interface for Remote execution
 --repo REPO                                             Repository URL / details, for example for Debian OS family: 'deb deb.example.com/ buster 1.0', for Red Hat OS family: 'yum.theforeman.org/client/latest/el8/x86_64/'
 --repo-gpg-key-url REPO_GPG_KEY_URL                     URL of the GPG key for the repository
 --setup-insights SETUP_INSIGHTS                         Set 'host_registration_insights' parameter for the host. If it is set to true, insights client will be installed and registered on Red Hat family operating systems
                                                         One of true/false, yes/no, 1/0.
 --setup-remote-execution SETUP_REMOTE_EXECUTION         Set 'host_registration_remote_execution' parameter for the host. If it is set to true, SSH keys will be installed on the host
                                                         One of true/false, yes/no, 1/0.
 --smart-proxy SMART_PROXY_NAME                          Name to search by
 --smart-proxy-id SMART_PROXY_ID                         ID of the Capsule
 --update-packages UPDATE_PACKAGES                       Update all packages on the host
                                                         One of true/false, yes/no, 1/0.
 -h, --help                                              Print help

2.39. hammer hostgroup

操作主机组

Usage:
    hammer hostgroup [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 ansible-roles                 Manage Ansible roles on a hostgroup
 create                        Create a host group
 delete, destroy               Delete a host group
 delete-parameter              Delete parameter for a hostgroup
 info, show                    Show a host group
 list, index                   List all host groups
 puppet-classes                List all Puppet classes
 rebuild-config                Rebuild orchestration config
 sc-params                     List all smart class parameters
 set-parameter                 Create or update parameter for a hostgroup
 update                        Update a host group

Options:
 -h, --help                    Print help

2.39.1. hammer hostgroup ansible-roles

管理主机组上的 Ansible 角色

Usage:
    hammer hostgroup ansible-roles [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 assign                        Assigns Ansible roles to a hostgroup
 list, index                   List all Ansible roles for a hostgroup
 play                          Runs all Ansible roles on a hostgroup

Options:
 -h, --help                    Print help
2.39.1.1. hammer hostgroup ansible-roles 分配

将 Ansible 角色分配给一个主机组

Usage:
    hammer hostgroup ansible-roles assign [OPTIONS]

Options:
 --ansible-role-ids ANSIBLE_ROLE_IDS     Ansible roles to assign to a hostgroup
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --ansible-roles ANSIBLE_ROLE_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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Hostgroup name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Hostgroup title
 -h, --help                              Print help
2.39.1.2. hammer hostgroup ansible-roles list

列出 hostgroup 的所有 Ansible 角色

Usage:
    hammer hostgroup ansible-roles <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Hostgroup name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Hostgroup title
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Imported at | x   | x       |
  ------------|-----|---------|-----
2.39.1.3. hammer hostgroup ansible-roles play

在主机组上运行所有 Ansible 角色

Usage:
    hammer hostgroup ansible-roles play [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Hostgroup name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Hostgroup title
 -h, --help                              Print help

2.39.2. hammer hostgroup create

创建主机组

Usage:
    hammer hostgroup create [OPTIONS]

Options:
 --ansible-role-ids ANSIBLE_ROLE_IDS                       IDs of associated ansible roles
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --ansible-roles ANSIBLE_ROLE_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
 --architecture ARCHITECTURE_NAME                          Architecture name
 --architecture-id ARCHITECTURE_ID                         Architecture ID
 --ask-root-password, --ask-root-pass ASK_ROOT_PW          (--ask-root-pass is deprecated: Use --ask-root-password instead)
                                                           One of true/false, yes/no, 1/0.
 --compute-profile COMPUTE_PROFILE_NAME                    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID                   Compute profile ID
 --compute-resource COMPUTE_RESOURCE_NAME                  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID                 Compute resource ID
 --config-group-ids CONFIG_GROUP_IDS                       IDs of associated config groups
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --config-groups CONFIG_GROUP_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
 --content-source CONTENT_SOURCE_NAME                      Content Source name
 --content-source-id CONTENT_SOURCE_ID                     Content source ID
 --content-view CONTENT_VIEW_NAME                          Name to search by
 --content-view-id CONTENT_VIEW_ID                         Content view ID
 --description DESCRIPTION                                 Host group description
 --domain DOMAIN_NAME                                      Domain name
 --domain-id DOMAIN_ID                                     Domain ID
 --environment ENVIRONMENT_NAME                            Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID                           (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --group-parameters-attributes GROUP_PARAMETERS_ATTRIBUTES Array of parameters
                                                           Comma separated list of values defined by a schema. See Option details section below.
                                                           JSON is acceptable and preferred way for complex parameters
 --kickstart-repository REPOSITORY_NAME                    Kickstart repository name
 --kickstart-repository-id KICKSTART_REPOSITORY_ID         Kickstart repository ID
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID       Lifecycle environment ID
 --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                               REPLACE locations with given ids
                                                           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
 --medium MEDIUM_NAME                                      Medium name
 --medium-id MEDIUM_ID                                     Media ID
 --name NAME                                               Name of the host group
 --openscap-proxy-id OPENSCAP_PROXY_ID                     ID of OpenSCAP Capsule
 --operatingsystem OPERATINGSYSTEM_TITLE                   Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID                   Operating system ID
 --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                       REPLACE organizations with given ids.
                                                           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
 --parent PARENT_NAME                                      Name of parent hostgroup
 --parent-id PARENT_ID                                     Parent ID of the host group
 --partition-table PARTITION_TABLE_NAME                    Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --puppet-ca-proxy PUPPET_CA_PROXY_NAME                    Name of puppet CA proxy
 --puppet-ca-proxy-id PUPPET_CA_PROXY_ID                   Puppet CA Capsule ID
 --puppet-class-ids PUPPETCLASS_IDS                        List of puppetclass ids
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --puppet-classes PUPPET_CLASS_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
 --puppet-environment PUPPET_ENVIRONMENT_NAME              Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --puppet-proxy PUPPET_PROXY_NAME                          Name of puppet proxy
 --puppet-proxy-id PUPPET_PROXY_ID                         Puppet Capsule ID
 --pxe-loader PXE_LOADER                                   DHCP filename option (Grub2/PXELinux by default)
                                                           Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 BIOS', 'Grub2 ELF', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI'
 --query-organization ORGANIZATION_NAME                    Organization name to search by
 --query-organization-id ORGANIZATION_ID                   Organization ID to search by
 --query-organization-label ORGANIZATION_LABEL             Organization label to search by
 --realm REALM_NAME                                        Name to search by
 --realm-id REALM_ID                                       Realm ID
 --root-password, --root-pass ROOT_PASSWORD                Root password (--root-pass is deprecated: Use --root-password instead)
 --subnet SUBNET_NAME                                      Subnet name
 --subnet-id SUBNET_ID                                     Subnet ID
 --subnet6 SUBNET6_NAME                                    Subnet IPv6 name
 --subnet6-id SUBNET6_ID                                   Subnet IPv6 ID
 -h, --help                                                Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --group-parameters-attributes  "name=<string>\,value=<string>\,parameter_type=[string|boolean|integer|real|array|hash|yaml|json]\,hidden_value=[true|false|1|0], ... "

2.39.3. hammer hostgroup delete

删除主机组

Usage:
    hammer hostgroup <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Hostgroup name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Hostgroup title
 -h, --help                              Print help

2.39.4. hammer hostgroup delete-parameter

hostgroup 的 delete 参数

Usage:
    hammer hostgroup delete-parameter [OPTIONS]

Options:
 --hostgroup HOSTGROUP_NAME        Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE Hostgroup title
 --name NAME                       Parameter name
 -h, --help                        Print help

2.39.5. hammer hostgroup info

显示主机组

Usage:
    hammer hostgroup <info|show> [OPTIONS]

Options:
 --fields FIELDS                                 Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                        Set the current location context for the request
 --location-id LOCATION_ID                       Set the current location context for the request
 --location-title LOCATION_TITLE                 Set the current location context for the request
 --name NAME                                     Hostgroup name
 --organization ORGANIZATION_NAME                Set the current organization context for the request
 --organization-id ORGANIZATION_ID               Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE         Set the current organization context for the request
 --show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter values
                                                 One of true/false, yes/no, 1/0.
 --title TITLE                                   Hostgroup title
 -h, --help                                      Print help

Predefined field sets:
  ----------------------------------|-----|---------|-----
  FIELDS                            | ALL | DEFAULT | THIN
  ----------------------------------|-----|---------|-----
  Id                                | x   | x       | x
  Name                              | x   | x       | x
  Title                             | x   | x       | x
  Puppet environment                | x   | x       |
  Model                             | x   | x       |
  Description                       | x   | x       |
  Parent                            | x   | x       |
  Puppet ca proxy                   | x   | x       |
  Puppet master proxy               | x   | x       |
  Compute profile                   | x   | x       |
  Compute resource                  | x   | x       |
  Network/subnet ipv4               | x   | x       |
  Network/subnet ipv6               | x   | x       |
  Network/realm                     | x   | x       |
  Network/domain                    | x   | x       |
  Operating system/architecture     | x   | x       |
  Operating system/operating system | x   | x       |
  Operating system/medium           | x   | x       |
  Operating system/partition table  | x   | x       |
  Operating system/pxe loader       | x   | x       |
  Puppetclasses/                    | x   | x       |
  Parameters/                       | x   | x       |
  Locations/                        | x   | x       |
  Organizations/                    | x   | x       |
  Openscap proxy                    | x   | x       |
  Content view/id                   | x   | x       |
  Content view/name                 | x   | x       |
  Lifecycle environment/id          | x   | x       |
  Lifecycle environment/name        | x   | x       |
  Content source/id                 | x   | x       |
  Content source/name               | x   | x       |
  Kickstart repository/id           | x   | x       |
  Kickstart repository/name         | x   | x       |
  ----------------------------------|-----|---------|-----

2.39.6. hammer hostgroup list

列出所有主机组

Usage:
    hammer hostgroup <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --puppet-class PUPPET_CLASS_NAME        Puppet class name
 --puppet-class-id PUPPET_CLASS_ID
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       | x
  Name               | x   | x       | x
  Title              | x   | x       | x
  Operating system   | x   | x       |
  Puppet environment | x   | x       |
  Model              | x   | x       |
  -------------------|-----|---------|-----

Search / Order fields:
  architecture        string
  class               string
  config_group        string
  environment         string
  host                string
  id                  integer
  label               string
  location            string
  location_id         integer
  medium              string
  name                string
  organization        string
  organization_id     integer
  os                  string
  os_description      string
  os_id               integer
  os_major            string
  os_minor            string
  os_title            string
  params              string
  template            string
  title               string

2.39.7. hammer hostgroup puppet-classes

列出所有 Puppet 类

Usage:
    hammer hostgroup puppet-classes [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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       ID of host group
 --hostgroup-title HOSTGROUP_TITLE Hostgroup title
 --location-id LOCATION_ID         Set the current location context for the request
 --order ORDER                     Sort field and order, eg. ‘id DESC’
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --page PAGE                       Page number, starting at 1
 --per-page PER_PAGE               Number of results per page to return, 'all' to return all results
 --search SEARCH                   Filter results
 -h, --help                        Print help

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

Search / Order fields:
  config_group        string
  environment         string
  host                string
  hostgroup           string
  key                 string
  location            string
  name                string
  organization        string

2.39.8. hammer hostgroup rebuild-config

重建编配配置

Usage:
    hammer hostgroup rebuild-config [OPTIONS]

Options:
 --children-hosts CHILDREN_HOSTS         Operate on child hostgroup hosts
                                         One of true/false, yes/no, 1/0.
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Hostgroup name
 --only ONLY                             Limit rebuild steps, valid steps are DHCP, DNS, TFTP, Content_Host_Status, Refresh_Content_Host_Status
                                         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 ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Hostgroup title
 -h, --help                              Print help

2.39.9. hammer hostgroup sc-params

列出所有智能类参数

Usage:
    hammer hostgroup sc-params [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --show-hidden SHOW_HIDDEN               Display hidden values
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Parameter     | x   | x
  Default value | x   | x
  Override      | x   | x
  Puppet class  | x   | x
  Class id      | x   | x
  --------------|-----|--------

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string

2.39.10. hammer hostgroup set-parameter

为 hostgroup 创建或更新参数

Usage:
    hammer hostgroup set-parameter [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE       Should the value be hidden
                                   One of true/false, yes/no, 1/0.
 --hostgroup HOSTGROUP_NAME        Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE Hostgroup title
 --name NAME                       Parameter name
 --parameter-type PARAMETER_TYPE   Type of the parameter
                                   Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                   Default: "string"
 --value VALUE                     Parameter value
 -h, --help                        Print help

2.39.11. hammer hostgroup 更新

更新主机组

Usage:
    hammer hostgroup update [OPTIONS]

Options:
 --ansible-role-ids ANSIBLE_ROLE_IDS                       IDs of associated ansible roles
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --ansible-roles ANSIBLE_ROLE_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
 --architecture ARCHITECTURE_NAME                          Architecture name
 --architecture-id ARCHITECTURE_ID                         Architecture ID
 --ask-root-password, --ask-root-pass ASK_ROOT_PW          (--ask-root-pass is deprecated: Use --ask-root-password instead)
                                                           One of true/false, yes/no, 1/0.
 --compute-profile COMPUTE_PROFILE_NAME                    Compute profile name
 --compute-profile-id COMPUTE_PROFILE_ID                   Compute profile ID
 --compute-resource COMPUTE_RESOURCE_NAME                  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID                 Compute resource ID
 --config-group-ids CONFIG_GROUP_IDS                       IDs of associated config groups
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --config-groups CONFIG_GROUP_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
 --content-source CONTENT_SOURCE_NAME                      Content Source name
 --content-source-id CONTENT_SOURCE_ID                     Content source ID
 --content-view CONTENT_VIEW_NAME                          Name to search by
 --content-view-id CONTENT_VIEW_ID                         Content view ID
 --description DESCRIPTION                                 Host group description
 --domain DOMAIN_NAME                                      Domain name
 --domain-id DOMAIN_ID                                     Domain ID
 --environment ENVIRONMENT_NAME                            Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID                           (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --group-parameters-attributes GROUP_PARAMETERS_ATTRIBUTES Array of parameters
                                                           Comma separated list of values defined by a schema. See Option details section below.
                                                           JSON is acceptable and preferred way for complex parameters
 --id ID
 --kickstart-repository REPOSITORY_NAME                    Kickstart repository name
 --kickstart-repository-id KICKSTART_REPOSITORY_ID         Kickstart repository ID
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID       Lifecycle environment ID
 --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                               REPLACE locations with given ids
                                                           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
 --medium MEDIUM_NAME                                      Medium name
 --medium-id MEDIUM_ID                                     Media ID
 --name NAME                                               Hostgroup name
 --new-name NEW_NAME                                       Name of the host group
 --openscap-proxy-id OPENSCAP_PROXY_ID                     ID of OpenSCAP Capsule
 --operatingsystem OPERATINGSYSTEM_TITLE                   Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID                   Operating system ID
 --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                       REPLACE organizations with given ids.
                                                           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
 --parent PARENT_NAME                                      Name of parent hostgroup
 --parent-id PARENT_ID                                     Parent ID of the host group
 --partition-table PARTITION_TABLE_NAME                    Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --puppet-ca-proxy PUPPET_CA_PROXY_NAME                    Name of puppet CA proxy
 --puppet-ca-proxy-id PUPPET_CA_PROXY_ID                   Puppet CA Capsule ID
 --puppet-class-ids PUPPETCLASS_IDS                        List of puppetclass ids
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --puppet-classes PUPPET_CLASS_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
 --puppet-environment PUPPET_ENVIRONMENT_NAME              Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --puppet-proxy PUPPET_PROXY_NAME                          Name of puppet proxy
 --puppet-proxy-id PUPPET_PROXY_ID                         Puppet Capsule ID
 --pxe-loader PXE_LOADER                                   DHCP filename option (Grub2/PXELinux by default)
                                                           Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 BIOS', 'Grub2 ELF', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI'
 --query-organization ORGANIZATION_NAME                    Organization name to search by
 --query-organization-id ORGANIZATION_ID                   Organization ID to search by
 --query-organization-label ORGANIZATION_LABEL             Organization label to search by
 --realm REALM_NAME                                        Name to search by
 --realm-id REALM_ID                                       Realm ID
 --root-password, --root-pass ROOT_PASSWORD                Root password (--root-pass is deprecated: Use --root-password instead)
 --subnet SUBNET_NAME                                      Subnet name
 --subnet-id SUBNET_ID                                     Subnet ID
 --subnet6 SUBNET6_NAME                                    Subnet IPv6 name
 --subnet6-id SUBNET6_ID                                   Subnet IPv6 ID
 --title TITLE                                             Hostgroup title
 -h, --help                                                Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --group-parameters-attributes  "name=<string>\,value=<string>\,parameter_type=[string|boolean|integer|real|array|hash|yaml|json]\,hidden_value=[true|false|1|0], ... "

2.40. hammer http-proxy

操作 http 代理

Usage:
    hammer http-proxy [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create an HTTP Proxy
 delete, destroy               Delete an HTTP Proxy
 info, show                    Show an HTTP Proxy
 list, index                   List of HTTP Proxies
 update                        Update an HTTP Proxy

Options:
 -h, --help                    Print help

2.40.1. hammer http-proxy create

创建 HTTP 代理

Usage:
    hammer http-proxy create [OPTIONS]

Options:
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               The HTTP Proxy name
 --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       REPLACE organizations with given ids.
                                           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
 --password PASSWORD                       Password used to authenticate with the HTTP Proxy
 --url URL                                 URL of the HTTP Proxy
 --username USERNAME                       Username used to authenticate with the HTTP Proxy
 -h, --help                                Print help

2.40.2. hammer http-proxy delete

删除 HTTP 代理

Usage:
    hammer http-proxy <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.40.3. hammer http-proxy info

显示 HTTP 代理

Usage:
    hammer http-proxy <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Identifier of the HTTP Proxy
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Username       | x   | x       |
  Url            | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  ---------------|-----|---------|-----

2.40.4. hammer http-proxy list

HTTP Proxies 列表

Usage:
    hammer http-proxy <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  url                 string

2.40.5. hammer http-proxy update

更新 HTTP 代理

Usage:
    hammer http-proxy update [OPTIONS]

Options:
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Name to search by
 --new-name NEW_NAME                       The HTTP Proxy name
 --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       REPLACE organizations with given ids.
                                           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
 --password PASSWORD                       Password used to authenticate with the HTTP Proxy
 --url URL                                 URL of the HTTP Proxy
 --username USERNAME                       Username used to authenticate with the HTTP Proxy
 -h, --help                                Print help

2.41. hammer import-templates

从 git 仓库或服务器上的目录导入模板

Usage:
    hammer import-templates [OPTIONS]

Options:
 --associate ASSOCIATE                     Associate to OS's, Locations & Organizations. Options are: always, new or never.
                                           Possible value(s): 'always', 'new', 'never'
 --branch BRANCH                           Branch in Git repo.
 --dirname DIRNAME                         The directory within Git repo containing the templates
 --filter FILTER                           Export templates with names matching this regex (case-insensitive; snippets are not filtered).
 --force FORCE                             Update templates that are locked
                                           One of true/false, yes/no, 1/0.
 --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               REPLACE locations with given ids
                                           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
 --lock LOCK                               Lock imported templates
                                           Possible value(s): 'lock', 'keep_lock_new', 'keep', 'unlock', 'true', 'false', '0', '1'
 --negate NEGATE                           Negate the prefix (for purging).
                                           One of true/false, yes/no, 1/0.
 --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       REPLACE organizations with given ids.
                                           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
 --prefix PREFIX                           The string all imported templates should begin with.
 --repo REPO                               Override the default repo from settings.
 --verbose VERBOSE                         Show template diff in response
                                           One of true/false, yes/no, 1/0.
 -h, --help                                Print help

2.42. hammer job-invocation

管理作业调用

Usage:
    hammer job-invocation [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 cancel                        Cancel the job
 create                        Create a job invocation
 info, show                    Show job invocation
 list, index                   List job invocations
 output                        View the output for a host
 rerun                         Rerun the job

Options:
 -h, --help                    Print help

2.42.1. hammer job-invocation cancel

取消作业

Usage:
    hammer job-invocation cancel [OPTIONS]

Options:
 --force FORCE                     One of true/false, yes/no, 1/0.
 --id ID
 --location-id LOCATION_ID         Set the current location context for the request
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 -h, --help                        Print help

2.42.2. hammer job-invocation create

创建作业调用

Usage:
    hammer job-invocation create [OPTIONS]

Options:
 --async                                                 Do not wait for the task
 --bookmark BOOKMARK_NAME                                Name to search by
 --bookmark-id BOOKMARK_ID
 --concurrency-level CONCURRENCY_LEVEL                   Run at most N tasks at a time
 --cron-line CRONLINE                                    Create a recurring execution
                                                         Cron line format 'a b c d e', where:
                                                           a. is minute (range: 0-59)
                                                           b. is hour (range: 0-23)
                                                           c. is day of month (range: 1-31)
                                                           d. is month (range: 1-12)
                                                           e. is day of week (range: 0-6)
 --description-format DESCRIPTION_FORMAT                 Override the description format from the template for this invocation only
 --dynamic                                               Dynamic search queries are evaluated at run time
 --effective-user EFFECTIVE_USER                         What user should be used to run the script (using sudo-like mechanisms). Defaults to a template parameter or global setting.
 --end-time DATETIME                                     Perform no more executions after this time, used with --cron-line
                                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 --execution-timeout-interval EXECUTION_TIMEOUT_INTERVAL Override the timeout interval from the template for this invocation only
 --feature FEATURE                                       Remote execution feature label that should be triggered, job template assigned to this feature will be used
 --input-files INPUT FILES                               Read input values from files
                                                         Comma-separated list of key=file, where file is a path to a text file to be read
 --inputs INPUTS                                         Specify inputs from command line
                                                         Comma-separated list of key=value.
                                                         JSON is acceptable and preferred way for complex parameters
 --job-template JOB_TEMPLATE_NAME                        Name to search by
 --job-template-id JOB_TEMPLATE_ID                       The job template to use, parameter is required unless feature was specified
 --location LOCATION_NAME                                Set the current location context for the request
 --location-id LOCATION_ID                               Set the current location context for the request
 --location-title LOCATION_TITLE                         Set the current location context for the request
 --max-iteration MAX_ITERATION                           Repeat a maximum of N times
 --organization ORGANIZATION_NAME                        Set the current organization context for the request
 --organization-id ORGANIZATION_ID                       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE                 Set the current organization context for the request
 --randomized-ordering RANDOMIZED_ORDERING               Execute the jobs on hosts in randomized order
                                                         One of true/false, yes/no, 1/0.
 --search-query SEARCH_QUERY
 --start-at DATETIME                                     Schedule the execution for a later time
                                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 --start-before DATETIME                                 Execution should be cancelled if it cannot be started before --start-at
                                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 --time-span TIME_SPAN                                   Distribute tasks over N seconds
 -h, --help                                              Print help

2.42.3. hammer job-invocation info

显示任务调用

Usage:
    hammer job-invocation <info|show> [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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
 --id ID
 --location-id LOCATION_ID         Set the current location context for the request
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --show-host-status                Show job status for the hosts
 --show-inputs                     Show the complete input of the job
 -h, --help                        Print help

Predefined field sets:
  --------------------|-----|--------
  FIELDS              | ALL | DEFAULT
  --------------------|-----|--------
  Id                  | x   | x
  Description         | x   | x
  Status              | x   | x
  Success             | x   | x
  Failed              | x   | x
  Pending             | x   | x
  Missing             | x   | x
  Total               | x   | x
  Start               | x   | x
  Randomized ordering | x   | x
  Inputs              | x   | x
  Job category        | x   | x
  Mode                | x   | x
  Cron line           | x   | x
  Recurring logic id  | x   | x
  Hosts               | x   | x
  --------------------|-----|--------

2.42.4. hammer job-invocation list

列出任务调用

Usage:
    hammer job-invocation <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  --------------------|-----|--------
  FIELDS              | ALL | DEFAULT
  --------------------|-----|--------
  Id                  | x   | x
  Description         | x   | x
  Status              | x   | x
  Success             | x   | x
  Failed              | x   | x
  Pending             | x   | x
  Total               | x   | x
  Start               | x   | x
  Randomized ordering | x   | x
  Inputs              | x   | x
  --------------------|-----|--------

2.42.5. hammer job-invocation 输出

查看主机的输出

Usage:
    hammer job-invocation output [OPTIONS]

Options:
 --async                                 Do not wait for job to complete, shows current output only
 --host HOST_NAME                        Host name
 --host-id HOST_ID
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.42.6. hammer job-invocation 重新运行

重新运行作业

Usage:
    hammer job-invocation rerun [OPTIONS]

Options:
 --failed-only FAILED_ONLY         One of true/false, yes/no, 1/0.
 --id ID
 --location-id LOCATION_ID         Set the current location context for the request
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 -h, --help                        Print help

2.43. hammer job-template

管理作业模板

Usage:
    hammer job-template [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a job template
 delete, destroy               Delete a job template
 dump                          View job template content
 export                        Export a template including all metadata
 import                        Import a job template from ERB
 info, show                    Show job template details
 list, index                   List job templates
 update                        Update a job template

Options:
 -h, --help                    Print help

2.43.1. hammer job-template create

创建作业模板

Usage:
    hammer job-template create [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --current-user CURRENT_USER               Whether the current user login should be used as the effective user
                                           One of true/false, yes/no, 1/0.
 --description DESCRIPTION
 --description-format DESCRIPTION_FORMAT   This template is used to generate the description. Input values can be used using the syntax %{package}. You may also include the job category and template name using %{job_category} and %{template_name}.
 --file TEMPLATE                           Path to a file that contains the template
 --job-category JOB_CATEGORY               Job category
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Template name
 --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       REPLACE organizations with given ids.
                                           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
 --overridable OVERRIDABLE                 Whether it should be allowed to override the effective user from the invocation form.
                                           One of true/false, yes/no, 1/0.
 --provider-type PROVIDER_TYPE             Provider type
                                           Possible value(s): 'SSH', 'Ansible'
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 --value VALUE                             What user should be used to run the script (using sudo-like mechanisms)
 -h, --help                                Print help

2.43.2. hammer job-template delete

删除作业模板

Usage:
    hammer job-template <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.43.3. hammer job-template dump

查看作业模板内容

Usage:
    hammer job-template dump [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------
  FIELDS
  ------

2.43.4. hammer job-template 导出

导出包括所有元数据的模板

Usage:
    hammer job-template export [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------
  FIELDS
  ------

2.43.5. hammer job-template import

从 ERB 导入作业模板

Usage:
    hammer job-template import [OPTIONS]

Options:
 --file TEMPLATE                         Path to a file that contains the template - must include ERB metadata
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --overwrite OVERWRITE                   Overwrite template if it already exists
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

2.43.6. hammer job-template info

显示作业模板详情

Usage:
    hammer job-template <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Job category   | x   | x       |
  Provider       | x   | x       |
  Type           | x   | x       |
  Description    | x   | x       |
  Inputs         | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  ---------------|-----|---------|-----

2.43.7. hammer job-template list

列出作业模板

Usage:
    hammer job-template <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Job category | x   | x       |
  Provider     | x   | x       |
  Type         | x   | x       |
  -------------|-----|---------|-----

2.43.8. hammer job-template 更新

更新作业模板

Usage:
    hammer job-template update [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --current-user CURRENT_USER               Whether the current user login should be used as the effective user
                                           One of true/false, yes/no, 1/0.
 --description DESCRIPTION
 --description-format DESCRIPTION_FORMAT   This template is used to generate the description. Input values can be used using the syntax %{package}. You may also include the job category and template name using %{job_category} and %{template_name}.
 --file TEMPLATE                           Path to a file that contains the template
 --id ID
 --job-category JOB_CATEGORY               Job category
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Name to search by
 --new-name NEW_NAME                       Template name
 --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       REPLACE organizations with given ids.
                                           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
 --overridable OVERRIDABLE                 Whether it should be allowed to override the effective user from the invocation form.
                                           One of true/false, yes/no, 1/0.
 --provider-type PROVIDER_TYPE             Provider type
                                           Possible value(s): 'SSH', 'Ansible'
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 --value VALUE                             What user should be used to run the script (using sudo-like mechanisms)
 -h, --help                                Print help

2.44. hammer lifecycle-environment

在服务器上操作 lifecycle_environments

Usage:
    hammer lifecycle-environment [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create an environment
 delete, destroy               Destroy an environment
 info, show                    Show an environment
 list, index                   List environments in an organization
 paths                         List environment paths
 update                        Update an environment

Options:
 -h, --help                    Print help

2.44.1. hammer 生命周期环境创建

创建环境

Usage:
    hammer lifecycle-environment create [OPTIONS]

Options:
 --description DESCRIPTION                                     Description of the environment
 --label LABEL                                                 Label of the environment
 --name NAME                                                   Name of the environment
 --organization ORGANIZATION_NAME                              Organization name to search by
 --organization-id ORGANIZATION_ID                             Name of organization
 --organization-label ORGANIZATION_LABEL                       Organization label to search by
 --organization-title ORGANIZATION_TITLE                       Organization title
 --prior PRIOR                                                 Name of the prior environment
 --prior-id PRIOR_ID                                           ID of an environment that is prior to the new environment in the chain. It has to be either the ID of Library or the ID of an environment at the end of a chain.
 --registry-name-pattern REGISTRY_NAME_PATTERN                 Pattern for container image names
 --registry-unauthenticated-pull REGISTRY_UNAUTHENTICATED_PULL Allow unauthenticed pull of container images
                                                               One of true/false, yes/no, 1/0.
 -h, --help                                                    Print help

2.44.2. hammer lifecycle-environment 删除

销毁环境

Usage:
    hammer lifecycle-environment <delete|destroy> [OPTIONS]

Options:
 --id ID                                 ID of the environment
 --name NAME                             Lifecycle environment name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.44.3. hammer 生命周期环境信息

显示环境

Usage:
    hammer lifecycle-environment <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 ID of the environment
 --name NAME                             Lifecycle environment name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       ID of the organization
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  ----------------------------|-----|---------|-----
  FIELDS                      | ALL | DEFAULT | THIN
  ----------------------------|-----|---------|-----
  Id                          | x   | x       | x
  Name                        | x   | x       | x
  Label                       | x   | x       |
  Description                 | x   | x       |
  Organization                | x   | x       |
  Library                     | x   | x       |
  Prior lifecycle environment | x   | x       |
  Unauthenticated pull        | x   | x       |
  Registry name pattern       | x   | x       |
  ----------------------------|-----|---------|-----

2.44.4. hammer lifecycle-environment 列表

列出机构中的环境

Usage:
    hammer lifecycle-environment <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --library LIBRARY                       Set true if you want to see only library environments
                                         Possible value(s): 'true', 'false'
 --name NAME                             Filter only environments containing this name
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 -h, --help                              Print help

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

Search / Order fields:
  id                  integer
  name                string
  organization_id     integer

2.44.5. hammer 生命周期环境路径

列出环境路径

Usage:
    hammer lifecycle-environment paths [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --permission-type PERMISSION_TYPE       The associated permission type. One of (readable | promotable) Default: readable
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|--------
  FIELDS         | ALL | DEFAULT
  ---------------|-----|--------
  Lifecycle path | x   | x
  ---------------|-----|--------

2.44.6. hammer 生命周期环境更新

更新环境

Usage:
    hammer lifecycle-environment update [OPTIONS]

Options:
 --async ASYNC                                                 Do not wait for the update action to finish. Default: true
                                                               One of true/false, yes/no, 1/0.
 --description DESCRIPTION                                     Description of the environment
 --id ID                                                       ID of the environment
 --name NAME                                                   Lifecycle environment name to search by
 --new-name NEW_NAME                                           New name to be given to the environment
 --organization ORGANIZATION_NAME                              Organization name to search by
 --organization-id ORGANIZATION_ID                             Name of the organization
 --organization-label ORGANIZATION_LABEL                       Organization label to search by
 --organization-title ORGANIZATION_TITLE                       Organization title
 --registry-name-pattern REGISTRY_NAME_PATTERN                 Pattern for container image names
 --registry-unauthenticated-pull REGISTRY_UNAUTHENTICATED_PULL Allow unauthenticed pull of container images
                                                               One of true/false, yes/no, 1/0.
 -h, --help                                                    Print help

2.45. hammer 位置

操作位置

Usage:
    hammer location [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-compute-resource          Associate a compute resource
 add-domain                    Associate a domain
 add-environment               Associate a Puppet environment
 add-hostgroup                 Associate a hostgroup
 add-medium                    Associate a medium
 add-organization              Associate an organization
 add-provisioning-template     Associate provisioning templates
 add-smart-proxy               Associate a smart proxy
 add-subnet                    Associate a subnet
 add-user                      Associate an user
 create                        Create a location
 delete, destroy               Delete a location
 delete-parameter              Delete parameter for a location
 info, show                    Show a location
 list, index                   List all locations
 remove-compute-resource       Disassociate a compute resource
 remove-domain                 Disassociate a domain
 remove-environment            Disassociate a Puppet environment
 remove-hostgroup              Disassociate a hostgroup
 remove-medium                 Disassociate a medium
 remove-organization           Disassociate an organization
 remove-provisioning-template  Disassociate provisioning templates
 remove-smart-proxy            Disassociate a smart proxy
 remove-subnet                 Disassociate a subnet
 remove-user                   Disassociate an user
 set-parameter                 Create or update parameter for a location
 update                        Update a location

Options:
 -h, --help                    Print help

2.45.1. hammer 位置 add-compute-resource

关联计算资源

Usage:
    hammer location add-compute-resource [OPTIONS]

Options:
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --id ID
 --name NAME                               Set the current location context for the request
 --title TITLE                             Set the current location context for the request
 -h, --help                                Print help

2.45.2. hammer 位置 add-domain

关联域

Usage:
    hammer location add-domain [OPTIONS]

Options:
 --domain DOMAIN_NAME          Domain name
 --domain-id DOMAIN_ID         Numerical ID or domain name
 --id ID
 --name NAME                   Set the current location context for the request
 --title TITLE                 Set the current location context for the request
 -h, --help                    Print help

2.45.3. hammer 位置附加组件

关联 Puppet 环境

Usage:
    hammer location add-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --id ID
 --name NAME                                   Set the current location context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --title TITLE                                 Set the current location context for the request
 -h, --help                                    Print help

2.45.4. hammer 位置 add-hostgroup

关联 hostgroup

Usage:
    hammer location add-hostgroup [OPTIONS]

Options:
 --hostgroup HOSTGROUP_NAME        Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE Hostgroup title
 --id ID
 --name NAME                       Set the current location context for the request
 --title TITLE                     Set the current location context for the request
 -h, --help                        Print help

2.45.5. hammer 位置附加中等

关联一个介质

Usage:
    hammer location add-medium [OPTIONS]

Options:
 --id ID
 --medium MEDIUM_NAME          Medium name
 --medium-id MEDIUM_ID
 --name NAME                   Set the current location context for the request
 --title TITLE                 Set the current location context for the request
 -h, --help                    Print help

2.45.6. hammer 位置 add-organization

关联机构

Usage:
    hammer location add-organization [OPTIONS]

Options:
 --id ID
 --name NAME                             Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Set the current location context for the request
 -h, --help                              Print help

2.45.7. hammer 位置 add-provisioning-template

关联的置备模板

Usage:
    hammer location add-provisioning-template [OPTIONS]

Options:
 --id ID
 --name NAME                                                 Set the current location context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be associated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template 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
 --title TITLE                                               Set the current location context for the request
 -h, --help                                                  Print help

2.45.8. hammer location add-smart-proxy

关联一个智能代理

Usage:
    hammer location add-smart-proxy [OPTIONS]

Options:
 --id ID
 --name NAME                     Set the current location context for the request
 --smart-proxy SMART_PROXY_NAME  Name to search by
 --smart-proxy-id SMART_PROXY_ID
 --title TITLE                   Set the current location context for the request
 -h, --help                      Print help

2.45.9. hammer 位置添加子网

关联子网

Usage:
    hammer location add-subnet [OPTIONS]

Options:
 --id ID
 --name NAME                   Set the current location context for the request
 --subnet SUBNET_NAME          Subnet name
 --subnet-id SUBNET_ID
 --title TITLE                 Set the current location context for the request
 -h, --help                    Print help

2.45.10. hammer 位置 add-user

关联用户

Usage:
    hammer location add-user [OPTIONS]

Options:
 --id ID
 --name NAME                   Set the current location context for the request
 --title TITLE                 Set the current location context for the request
 --user USER_LOGIN             User's login to search by
 --user-id USER_ID
 -h, --help                    Print help

2.45.11. hammer 位置创建

创建位置

Usage:
    hammer location create [OPTIONS]

Options:
 --compute-resource-ids COMPUTE_RESOURCE_IDS           Compute resource IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --compute-resources COMPUTE_RESOURCE_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
 --description DESCRIPTION
 --domain-ids DOMAIN_IDS                               Domain IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --domains DOMAIN_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
 --environment-ids ENVIRONMENT_IDS                     Environment IDs (--environment-ids is deprecated: Use --puppet-environment[s|-ids] instead)
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --environments ENVIRONMENT_NAMES                      (--environments is deprecated: Use --puppet-environment[s|-ids] instead)
 --hostgroup-ids HOSTGROUP_IDS                         Host group IDs
                                                       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-titles HOSTGROUP_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
 --hostgroups HOSTGROUP_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
 --ignore-types IGNORE_TYPES                           List of resources types that will be automatically associated
                                                       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 LOCATION_NAME                              Set the current location context for the request
 --location-id LOCATION_ID                             Set the current location context for the request
 --location-title LOCATION_TITLE                       Set the current location context for the request
 --media MEDIUM_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
 --medium-ids MEDIUM_IDS                               Medium IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --name NAME
 --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                   Associated organization IDs
                                                       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
 --parent-id PARENT_ID                                 Parent ID
 --partition-table-ids PARTITION_TABLE_IDS             Partition template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_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
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS Provisioning template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_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
 --puppet-environment-ids PUPPET_ENVIRONMENT_IDS       Environment IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --puppet-environments PUPPET_ENVIRONMENT_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
 --realm-ids REALM_IDS                                 Realm IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --realms REALM_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
 --smart-proxies SMART_PROXY_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
 --smart-proxy-ids SMART_PROXY_IDS                     Capsule IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnet-ids SUBNET_IDS                               Subnet IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnets SUBNET_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
 --user-ids USER_IDS                                   User IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --users USER_LOGINS                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 -h, --help                                            Print help

2.45.12. hammer 位置删除

删除位置

Usage:
    hammer location <delete|destroy> [OPTIONS]

Options:
 --id ID                                 Location numeric id to search by
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Set the current organization context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Set the current organization context for the request
 -h, --help                              Print help

2.45.13. hammer location delete-parameter

删除位置的参数

Usage:
    hammer location delete-parameter [OPTIONS]

Options:
 --location LOCATION_NAME        Set the current location context for the request
 --location-id LOCATION_ID
 --location-title LOCATION_TITLE Set the current location context for the request
 --name NAME                     Parameter name
 -h, --help                      Print help

2.45.14. hammer 位置信息

显示位置

Usage:
    hammer location <info|show> [OPTIONS]

Options:
 --fields FIELDS                                 Show specified fields or predefined field 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
 --id ID                                         Location numeric id to search by
 --location LOCATION_NAME                        Set the current location context for the request
 --location-id LOCATION_ID                       Set the current location context for the request
 --location-title LOCATION_TITLE                 Set the current location context for the request
 --name NAME                                     Set the current organization context for the request
 --organization ORGANIZATION_NAME                Set the current organization context for the request
 --organization-id ORGANIZATION_ID               Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE         Set the current organization context for the request
 --show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter values
                                                 One of true/false, yes/no, 1/0.
 --title TITLE                                   Set the current organization context for the request
 -h, --help                                      Print help

Predefined field sets:
  --------------------|-----|---------|-----
  FIELDS              | ALL | DEFAULT | THIN
  --------------------|-----|---------|-----
  Id                  | x   | x       | x
  Title               | x   | x       | x
  Name                | x   | x       | x
  Description         | x   | x       |
  Parent              | x   | x       |
  Users/              | x   | x       |
  Smart proxies/      | x   | x       |
  Subnets/            | x   | x       |
  Compute resources/  | x   | x       |
  Installation media/ | x   | x       |
  Templates/          | x   | x       |
  Partition tables/   | x   | x       |
  Domains/            | x   | x       |
  Realms/             | x   | x       |
  Environments/       | x   | x       |
  Hostgroups/         | x   | x       |
  Parameters/         | x   | x       |
  Organizations/      | x   | x       |
  Created at          | x   | x       |
  Updated at          | x   | x       |
  --------------------|-----|---------|-----

2.45.15. hammer 位置列表

列出所有位置

Usage:
    hammer location <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  description         text
  id                  integer
  location_id         integer
  name                string
  title               string

2.45.16. hammer 位置 remove-compute-resource

解除计算资源关联

Usage:
    hammer location remove-compute-resource [OPTIONS]

Options:
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --id ID
 --name NAME                               Set the current location context for the request
 --title TITLE                             Set the current location context for the request
 -h, --help                                Print help

2.45.17. hammer 位置 remove-domain

解除域关联

Usage:
    hammer location remove-domain [OPTIONS]

Options:
 --domain DOMAIN_NAME          Domain name
 --domain-id DOMAIN_ID         Numerical ID or domain name
 --id ID
 --name NAME                   Set the current location context for the request
 --title TITLE                 Set the current location context for the request
 -h, --help                    Print help

2.45.18. hammer 位置 remove-environment

解除 Puppet 环境关联

Usage:
    hammer location remove-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --id ID
 --name NAME                                   Set the current location context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --title TITLE                                 Set the current location context for the request
 -h, --help                                    Print help

2.45.19. hammer location remove-hostgroup

解除 hostgroup 解除关联

Usage:
    hammer location remove-hostgroup [OPTIONS]

Options:
 --hostgroup HOSTGROUP_NAME        Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE Hostgroup title
 --id ID
 --name NAME                       Set the current location context for the request
 --title TITLE                     Set the current location context for the request
 -h, --help                        Print help

2.45.20. hammer 位置 remove-medium

解除介质关联

Usage:
    hammer location remove-medium [OPTIONS]

Options:
 --id ID
 --medium MEDIUM_NAME          Medium name
 --medium-id MEDIUM_ID
 --name NAME                   Set the current location context for the request
 --title TITLE                 Set the current location context for the request
 -h, --help                    Print help

2.45.21. hammer 位置 remove-organization

解除机构关联

Usage:
    hammer location remove-organization [OPTIONS]

Options:
 --id ID
 --name NAME                             Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Set the current location context for the request
 -h, --help                              Print help

2.45.22. hammer 位置 remove-provisioning-template

解除关联置备模板

Usage:
    hammer location remove-provisioning-template [OPTIONS]

Options:
 --id ID
 --name NAME                                                 Set the current location context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be disassociated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template 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
 --title TITLE                                               Set the current location context for the request
 -h, --help                                                  Print help

2.45.23. hammer location remove-smart-proxy

解除智能代理关联

Usage:
    hammer location remove-smart-proxy [OPTIONS]

Options:
 --id ID
 --name NAME                     Set the current location context for the request
 --smart-proxy SMART_PROXY_NAME  Name to search by
 --smart-proxy-id SMART_PROXY_ID
 --title TITLE                   Set the current location context for the request
 -h, --help                      Print help

2.45.24. hammer 位置 remove-subnet

解除子网关联

Usage:
    hammer location remove-subnet [OPTIONS]

Options:
 --id ID
 --name NAME                   Set the current location context for the request
 --subnet SUBNET_NAME          Subnet name
 --subnet-id SUBNET_ID
 --title TITLE                 Set the current location context for the request
 -h, --help                    Print help

2.45.25. hammer 位置 remove-user

解除用户解除关联

Usage:
    hammer location remove-user [OPTIONS]

Options:
 --id ID
 --name NAME                   Set the current location context for the request
 --title TITLE                 Set the current location context for the request
 --user USER_LOGIN             User's login to search by
 --user-id USER_ID
 -h, --help                    Print help

2.45.26. hammer 位置 set-parameter

为位置创建或更新参数

Usage:
    hammer location set-parameter [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE     Should the value be hidden
                                 One of true/false, yes/no, 1/0.
 --location LOCATION_NAME        Set the current location context for the request
 --location-id LOCATION_ID
 --location-title LOCATION_TITLE Set the current location context for the request
 --name NAME                     Parameter name
 --parameter-type PARAMETER_TYPE Type of the parameter
                                 Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                 Default: "string"
 --value VALUE                   Parameter value
 -h, --help                      Print help

2.45.27. hammer 位置更新

更新位置

Usage:
    hammer location update [OPTIONS]

Options:
 --compute-resource-ids COMPUTE_RESOURCE_IDS           Compute resource IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --compute-resources COMPUTE_RESOURCE_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
 --description DESCRIPTION
 --domain-ids DOMAIN_IDS                               Domain IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --domains DOMAIN_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
 --environment-ids ENVIRONMENT_IDS                     Environment IDs (--environment-ids is deprecated: Use --puppet-environment[s|-ids] instead)
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --environments ENVIRONMENT_NAMES                      (--environments is deprecated: Use --puppet-environment[s|-ids] instead)
 --hostgroup-ids HOSTGROUP_IDS                         Host group IDs
                                                       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-titles HOSTGROUP_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
 --hostgroups HOSTGROUP_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
 --id ID                                               Location numeric id to search by
 --ignore-types IGNORE_TYPES                           List of resources types that will be automatically associated
                                                       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 LOCATION_NAME                              Set the current location context for the request
 --location-id LOCATION_ID                             Set the current location context for the request
 --location-title LOCATION_TITLE                       Set the current location context for the request
 --media MEDIUM_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
 --medium-ids MEDIUM_IDS                               Medium IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --name NAME                                           Set the current location context for the request
 --new-name NEW_NAME
 --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                   Associated organization IDs
                                                       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
 --parent-id PARENT_ID                                 Parent ID
 --partition-table-ids PARTITION_TABLE_IDS             Partition template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_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
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS Provisioning template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_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
 --puppet-environment-ids PUPPET_ENVIRONMENT_IDS       Environment IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --puppet-environments PUPPET_ENVIRONMENT_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
 --realm-ids REALM_IDS                                 Realm IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --realms REALM_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
 --smart-proxies SMART_PROXY_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
 --smart-proxy-ids SMART_PROXY_IDS                     Capsule IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnet-ids SUBNET_IDS                               Subnet IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnets SUBNET_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
 --title TITLE                                         Set the current location context for the request
 --user-ids USER_IDS                                   User IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --users USER_LOGINS                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 -h, --help                                            Print help

2.46. hammer mail-notification

管理电子邮件通知

Usage:
    hammer mail-notification [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show an email notification
 list, index                   List of email notifications

Options:
 -h, --help                    Print help

2.46.1. hammer 邮件通知信息

显示电子邮件通知

Usage:
    hammer mail-notification <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID                       Numerical ID or email notification name
 --name NAME                   Name to search by
 -h, --help                    Print help

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

2.46.2. hammer mail-notification list

电子邮件通知列表

Usage:
    hammer mail-notification <list|index> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --order ORDER                 Sort field and order, eg. ‘id DESC’
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return, 'all' to return all results
 --search SEARCH               Filter results
 -h, --help                    Print help

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

Search / Order fields:
  description         text
  name                string
  user                string

2.47. hammer 中型

操作安装介质

Usage:
    hammer medium [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-operatingsystem           Associate an operating system
 create                        Create a medium
 delete, destroy               Delete a medium
 info, show                    Show a medium
 list, index                   List all installation media
 remove-operatingsystem        Disassociate an operating system
 update                        Update a medium

Options:
 -h, --help                    Print help

2.47.1. hammer 中附加操作系统

关联操作系统

Usage:
    hammer medium add-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Medium name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.47.2. hammer 中型创建

创建介质

Usage:
    hammer medium create [OPTIONS]

Options:
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Name of media
 --operatingsystem-ids OPERATINGSYSTEM_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 --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       REPLACE organizations with given ids.
                                           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
 --os-family OS_FAMILY                     Operating system family, available values: AIX, Altlinux, Archlinux, Coreos, Debian, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Solaris, Suse, VRP, Windows, Xenserver
 --path PATH                               The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture).

                                           For example mirror.centos.org/centos/$version/os/$arch where $arch will be substituted for the host's actual OS architecture and $version, $major and $minor will be substituted for the version of the operating system.

                                           Solaris and Debian media may also use $release.
 -h, --help                                Print help

2.47.3. hammer 中等删除

删除介质

Usage:
    hammer medium <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Medium name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.47.4. hammer 介质信息

显示介质

Usage:
    hammer medium <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Medium name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       | x
  Name               | x   | x       | x
  Path               | x   | x       |
  Os family          | x   | x       |
  Operating systems/ | x   | x       |
  Locations/         | x   | x       |
  Organizations/     | x   | x       |
  Created at         | x   | x       |
  Updated at         | x   | x       |
  -------------------|-----|---------|-----

2.47.5. hammer 中型列表

列出所有安装介质

Usage:
    hammer medium <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID ID of operating system
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  family              string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  path                string

2.47.6. hammerium remove-operatingsystem

解除操作系统关联

Usage:
    hammer medium remove-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Medium name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.47.7. hammer 介质更新

更新介质

Usage:
    hammer medium update [OPTIONS]

Options:
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Medium name
 --new-name NEW_NAME                       Name of media
 --operatingsystem-ids OPERATINGSYSTEM_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 --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       REPLACE organizations with given ids.
                                           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
 --os-family OS_FAMILY                     Operating system family, available values: AIX, Altlinux, Archlinux, Coreos, Debian, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Solaris, Suse, VRP, Windows, Xenserver
 --path PATH                               The path to the medium, can be a URL or a valid NFS server (exclusive of the architecture).

                                           For example mirror.centos.org/centos/$version/os/$arch where $arch will be substituted for the host's actual OS architecture and $version, $major and $minor will be substituted for the version of the operating system.

                                           Solaris and Debian media may also use $release.
 -h, --help                                Print help

2.48. hammer 模型

操作硬件模型

Usage:
    hammer model [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a hardware model
 delete, destroy               Delete a hardware model
 info, show                    Show a hardware model
 list, index                   List all hardware models
 update                        Update a hardware model

Options:
 -h, --help                    Print help

2.48.1. hammer 模型创建

创建硬件模型

Usage:
    hammer model create [OPTIONS]

Options:
 --hardware-model HARDWARE_MODEL
 --info INFO
 --name NAME
 --vendor-class VENDOR_CLASS
 -h, --help                      Print help

2.48.2. hammer 模型删除

删除硬件模型

Usage:
    hammer model <delete|destroy> [OPTIONS]

Options:
 --id ID
 --name NAME                   Model name
 -h, --help                    Print help

2.48.3. hammer 模型信息

显示硬件模型

Usage:
    hammer model <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID
 --name NAME                   Model name
 -h, --help                    Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Vendor class | x   | x       |
  Hw model     | x   | x       |
  Info         | x   | x       |
  Created at   | x   | x       |
  Updated at   | x   | x       |
  -------------|-----|---------|-----

2.48.4. hammer 模型列表

列出所有硬件模型

Usage:
    hammer model <list|index> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --order ORDER                 Sort field and order, eg. ‘id DESC’
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return, 'all' to return all results
 --search SEARCH               Filter results
 -h, --help                    Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Vendor class | x   | x       |
  Hw model     | x   | x       |
  -------------|-----|---------|-----

Search / Order fields:
  hardware_model      string
  info                text
  name                string
  vendor_class        string

2.48.5. hammer 模型更新

更新硬件模型

Usage:
    hammer model update [OPTIONS]

Options:
 --hardware-model HARDWARE_MODEL
 --id ID
 --info INFO
 --name NAME                     Model name
 --new-name NEW_NAME
 --vendor-class VENDOR_CLASS
 -h, --help                      Print help

2.49. hammer module-stream

查看模块流

Usage:
    hammer module-stream [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a module stream
 list, index                   List module streams

Options:
 -h, --help                    Print help

2.49.1. hammer module-stream info

显示模块流

Usage:
    hammer module-stream <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 A module stream identifier
 --name NAME                             Module stream name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository ID
 -h, --help                              Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       |
  Module stream name | x   | x       | x
  Stream             | x   | x       |
  Uuid               | x   | x       |
  Version            | x   | x       |
  Architecture       | x   | x       |
  Context            | x   | x       |
  Repositories/id    | x   | x       |
  Repositories/name  | x   | x       |
  Repositories/label | x   | x       |
  Artifacts/id       | x   | x       |
  Artifacts/name     | x   | x       |
  Profiles/id        | x   | x       |
  Profiles/name      | x   | x       |
  Profiles/rpms/id   | x   | x       |
  Profiles/rpms/name | x   | x       |
  -------------------|-----|---------|-----

2.49.2. hammer module-stream list

列出模块流

Usage:
    hammer module-stream <list|index> [OPTIONS]

Options:
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content view filter identifier
 --content-view-filter-rule CONTENT_VIEW_FILTER_RULE_NAME  Name to search by
 --content-view-filter-rule-id CONTENT_VIEW_FILTER_RULE_ID Content view filter rule identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content view version identifier
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --host-ids HOST_IDS                                       List of host id to list available module streams for
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --hosts HOST_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
 --ids IDS                                                 Ids to filter content by
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --include-filter-ids INCLUDE_FILTER_IDS                   Includes associated content view filter ids in response
                                                           One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name-stream-only NAME_STREAM_ONLY                       Return name and stream information only)
                                                           One of true/false, yes/no, 1/0.
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       |
  Module stream name | x   | x       | x
  Stream             | x   | x       |
  Uuid               | x   | x       |
  Version            | x   | x       |
  Architecture       | x   | x       |
  Context            | x   | x       |
  -------------------|-----|---------|-----

2.50. hammer 机构

操作机构

Usage:
    hammer organization [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-compute-resource          Associate a compute resource
 add-domain                    Associate a domain
 add-environment               Associate a Puppet environment
 add-hostgroup                 Associate a hostgroup
 add-location                  Associate a location
 add-medium                    Associate a medium
 add-provisioning-template     Associate provisioning templates
 add-smart-proxy               Associate a smart proxy
 add-subnet                    Associate a subnet
 add-user                      Associate an user
 create                        Create organization
 delete, destroy               Delete an organization
 delete-parameter              Delete parameter for an organization
 info, show                    Show organization
 list, index                   List all organizations
 remove-compute-resource       Disassociate a compute resource
 remove-domain                 Disassociate a domain
 remove-environment            Disassociate a Puppet environment
 remove-hostgroup              Disassociate a hostgroup
 remove-location               Disassociate a location
 remove-medium                 Disassociate a medium
 remove-provisioning-template  Disassociate provisioning templates
 remove-smart-proxy            Disassociate a smart proxy
 remove-subnet                 Disassociate a subnet
 remove-user                   Disassociate an user
 set-parameter                 Create or update parameter for an organization
 update                        Update organization

Options:
 -h, --help                    Print help

2.50.1. hammer 机构 add-compute-resource

关联计算资源

Usage:
    hammer organization add-compute-resource [OPTIONS]

Options:
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --id ID                                   Organization ID
 --name NAME                               Set the current organization context for the request
 --title TITLE                             Set the current organization context for the request
 -h, --help                                Print help

2.50.2. hammer 机构添加域

关联域

Usage:
    hammer organization add-domain [OPTIONS]

Options:
 --domain DOMAIN_NAME          Domain name
 --domain-id DOMAIN_ID         Numerical ID or domain name
 --id ID                       Organization ID
 --name NAME                   Set the current organization context for the request
 --title TITLE                 Set the current organization context for the request
 -h, --help                    Print help

2.50.3. hammer 机构附加组件

关联 Puppet 环境

Usage:
    hammer organization add-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --id ID                                       Organization ID
 --name NAME                                   Set the current organization context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --title TITLE                                 Set the current organization context for the request
 -h, --help                                    Print help

2.50.4. hammer 机构附加组件

关联 hostgroup

Usage:
    hammer organization add-hostgroup [OPTIONS]

Options:
 --hostgroup HOSTGROUP_NAME        Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE Hostgroup title
 --id ID                           Organization ID
 --name NAME                       Set the current organization context for the request
 --title TITLE                     Set the current organization context for the request
 -h, --help                        Print help

2.50.5. hammer 机构附加组件

关联位置

Usage:
    hammer organization add-location [OPTIONS]

Options:
 --id ID                         Organization ID
 --location LOCATION_NAME        Set the current location context for the request
 --location-id LOCATION_ID
 --location-title LOCATION_TITLE Set the current location context for the request
 --name NAME                     Set the current organization context for the request
 --title TITLE                   Set the current organization context for the request
 -h, --help                      Print help

2.50.6. hammer 机构附加功能

关联一个介质

Usage:
    hammer organization add-medium [OPTIONS]

Options:
 --id ID                       Organization ID
 --medium MEDIUM_NAME          Medium name
 --medium-id MEDIUM_ID
 --name NAME                   Set the current organization context for the request
 --title TITLE                 Set the current organization context for the request
 -h, --help                    Print help

2.50.7. hammer 机构 add-provisioning-template

关联的置备模板

Usage:
    hammer organization add-provisioning-template [OPTIONS]

Options:
 --id ID                                                     Organization ID
 --name NAME                                                 Set the current organization context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be associated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template 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
 --title TITLE                                               Set the current organization context for the request
 -h, --help                                                  Print help

2.50.8. hammer organization add-smart-proxy

关联一个智能代理

Usage:
    hammer organization add-smart-proxy [OPTIONS]

Options:
 --id ID                         Organization ID
 --name NAME                     Set the current organization context for the request
 --smart-proxy SMART_PROXY_NAME  Name to search by
 --smart-proxy-id SMART_PROXY_ID
 --title TITLE                   Set the current organization context for the request
 -h, --help                      Print help

2.50.9. hammer 机构附加子网

关联子网

Usage:
    hammer organization add-subnet [OPTIONS]

Options:
 --id ID                       Organization ID
 --name NAME                   Set the current organization context for the request
 --subnet SUBNET_NAME          Subnet name
 --subnet-id SUBNET_ID
 --title TITLE                 Set the current organization context for the request
 -h, --help                    Print help

2.50.10. hammer 机构添加用户

关联用户

Usage:
    hammer organization add-user [OPTIONS]

Options:
 --id ID                       Organization ID
 --name NAME                   Set the current organization context for the request
 --title TITLE                 Set the current organization context for the request
 --user USER_LOGIN             User's login to search by
 --user-id USER_ID
 -h, --help                    Print help

2.50.11. hammer 机构创建

创建机构

Usage:
    hammer organization create [OPTIONS]

Options:
 --compute-resource-ids COMPUTE_RESOURCE_IDS           Compute resource IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --compute-resources COMPUTE_RESOURCE_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
 --description DESCRIPTION
 --domain-ids DOMAIN_IDS                               Domain IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --domains DOMAIN_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
 --environment-ids ENVIRONMENT_IDS                     Environment IDs (--environment-ids is deprecated: Use --puppet-environment[s|-ids] instead)
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --environments ENVIRONMENT_NAMES                      (--environments is deprecated: Use --puppet-environment[s|-ids] instead)
 --hostgroup-ids HOSTGROUP_IDS                         Host group IDs
                                                       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-titles HOSTGROUP_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
 --hostgroups HOSTGROUP_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
 --label LABEL
 --lifecycle-environment-ids LIFECYCLE_ENVIRONMENT_IDS Environment IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --lifecycle-environments LIFECYCLE_ENVIRONMENT_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
 --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                           Associated location IDs
                                                       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
 --media MEDIUM_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
 --medium-ids MEDIUM_IDS                               Medium IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --name NAME
 --organization ORGANIZATION_NAME                      Set the current organization context for the request
 --organization-id ORGANIZATION_ID                     Set the current organization context for the request
 --organization-label ORGANIZATION_LABEL               Organization label to search by
 --organization-title ORGANIZATION_TITLE               Set the current organization context for the request
 --partition-table-ids PARTITION_TABLE_IDS             Partition template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_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
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS Provisioning template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_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
 --ptable-ids PTABLE_IDS                               Partition template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --ptables PTABLE_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
 --puppet-environment-ids PUPPET_ENVIRONMENT_IDS       Environment IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --puppet-environments PUPPET_ENVIRONMENT_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
 --realm-ids REALM_IDS                                 Realm IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --realms REALM_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
 --smart-proxies SMART_PROXY_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
 --smart-proxy-ids SMART_PROXY_IDS                     Capsule IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnet-ids SUBNET_IDS                               Subnet IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnets SUBNET_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
 --user-ids USER_IDS                                   User IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --users USER_LOGINS                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 -h, --help                                            Print help

2.50.12. hammer 机构删除

删除机构

Usage:
    hammer organization <delete|destroy> [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --id ID
 --label LABEL                           Organization label to search by
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Set the current organization context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Set the current organization context for the request
 -h, --help                              Print help

2.50.13. hammer organization delete-parameter

机构的 delete 参数

Usage:
    hammer organization delete-parameter [OPTIONS]

Options:
 --name NAME                             Parameter name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.50.14. hammer 机构信息

显示机构

Usage:
    hammer organization <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --label LABEL                           Organization label to search by
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Set the current organization context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --title TITLE                           Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -----------------------|-----|---------|-----
  FIELDS                 | ALL | DEFAULT | THIN
  -----------------------|-----|---------|-----
  Id                     | x   | x       | x
  Title                  | x   | x       | x
  Name                   | x   | x       | x
  Description            | x   | x       |
  Parent                 | x   | x       |
  Users/                 | x   | x       |
  Smart proxies/         | x   | x       |
  Subnets/               | x   | x       |
  Compute resources/     | x   | x       |
  Installation media/    | x   | x       |
  Templates/             | x   | x       |
  Partition tables/      | x   | x       |
  Domains/               | x   | x       |
  Realms/                | x   | x       |
  Environments/          | x   | x       |
  Hostgroups/            | x   | x       |
  Parameters/            | x   | x       |
  Locations/             | x   | x       |
  Created at             | x   | x       |
  Updated at             | x   | x       |
  Label                  | x   | x       | x
  Description            | x   | x       |
  Red hat repository url | x   | x       |
  Simple content access  | x   | x       |
  Service levels         | x   | x       |
  -----------------------|-----|---------|-----

2.50.15. hammer 机构列表

列出所有机构

Usage:
    hammer organization <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 --sort-by SORT_BY                       Field to sort the results on
 --sort-order SORT_ORDER                 How to order the sorted results (e.g. ASC for ascending)
 -h, --help                              Print help

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

Search / Order fields:
  description         text
  id                  integer
  label               string
  name                string
  organization_id     integer
  title               string

2.50.16. hammer 机构 remove-compute-resource

解除计算资源关联

Usage:
    hammer organization remove-compute-resource [OPTIONS]

Options:
 --compute-resource COMPUTE_RESOURCE_NAME  Compute resource name
 --compute-resource-id COMPUTE_RESOURCE_ID
 --id ID                                   Organization ID
 --name NAME                               Set the current organization context for the request
 --title TITLE                             Set the current organization context for the request
 -h, --help                                Print help

2.50.17. hammer organization remove-domain

解除域关联

Usage:
    hammer organization remove-domain [OPTIONS]

Options:
 --domain DOMAIN_NAME          Domain name
 --domain-id DOMAIN_ID         Numerical ID or domain name
 --id ID                       Organization ID
 --name NAME                   Set the current organization context for the request
 --title TITLE                 Set the current organization context for the request
 -h, --help                    Print help

2.50.18. hammer 机构 remove-environment

解除 Puppet 环境关联

Usage:
    hammer organization remove-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --id ID                                       Organization ID
 --name NAME                                   Set the current organization context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --title TITLE                                 Set the current organization context for the request
 -h, --help                                    Print help

2.50.19. hammer organization remove-hostgroup

解除 hostgroup 解除关联

Usage:
    hammer organization remove-hostgroup [OPTIONS]

Options:
 --hostgroup HOSTGROUP_NAME        Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE Hostgroup title
 --id ID                           Organization ID
 --name NAME                       Set the current organization context for the request
 --title TITLE                     Set the current organization context for the request
 -h, --help                        Print help

2.50.20. hammer 机构移除位置

解除关联位置

Usage:
    hammer organization remove-location [OPTIONS]

Options:
 --id ID                         Organization ID
 --location LOCATION_NAME        Set the current location context for the request
 --location-id LOCATION_ID
 --location-title LOCATION_TITLE Set the current location context for the request
 --name NAME                     Set the current organization context for the request
 --title TITLE                   Set the current organization context for the request
 -h, --help                      Print help

2.50.21. hammer 机构移除中等

解除介质关联

Usage:
    hammer organization remove-medium [OPTIONS]

Options:
 --id ID                       Organization ID
 --medium MEDIUM_NAME          Medium name
 --medium-id MEDIUM_ID
 --name NAME                   Set the current organization context for the request
 --title TITLE                 Set the current organization context for the request
 -h, --help                    Print help

2.50.22. hammer organization remove-provisioning-template

解除关联置备模板

Usage:
    hammer organization remove-provisioning-template [OPTIONS]

Options:
 --id ID                                                     Organization ID
 --name NAME                                                 Set the current organization context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be disassociated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template 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
 --title TITLE                                               Set the current organization context for the request
 -h, --help                                                  Print help

2.50.23. hammer organization remove-smart-proxy

解除智能代理关联

Usage:
    hammer organization remove-smart-proxy [OPTIONS]

Options:
 --id ID                         Organization ID
 --name NAME                     Set the current organization context for the request
 --smart-proxy SMART_PROXY_NAME  Name to search by
 --smart-proxy-id SMART_PROXY_ID
 --title TITLE                   Set the current organization context for the request
 -h, --help                      Print help

2.50.24. hammer 机构 remove-subnet

解除子网关联

Usage:
    hammer organization remove-subnet [OPTIONS]

Options:
 --id ID                       Organization ID
 --name NAME                   Set the current organization context for the request
 --subnet SUBNET_NAME          Subnet name
 --subnet-id SUBNET_ID
 --title TITLE                 Set the current organization context for the request
 -h, --help                    Print help

2.50.25. hammer organization remove-user

解除用户解除关联

Usage:
    hammer organization remove-user [OPTIONS]

Options:
 --id ID                       Organization ID
 --name NAME                   Set the current organization context for the request
 --title TITLE                 Set the current organization context for the request
 --user USER_LOGIN             User's login to search by
 --user-id USER_ID
 -h, --help                    Print help

2.50.26. hammer 机构 set-parameter

为机构创建或更新参数

Usage:
    hammer organization set-parameter [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE             Should the value be hidden
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Parameter name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --parameter-type PARAMETER_TYPE         Type of the parameter
                                         Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                         Default: "string"
 --value VALUE                           Parameter value
 -h, --help                              Print help

2.50.27. hammer 机构更新

更新机构

Usage:
    hammer organization update [OPTIONS]

Options:
 --compute-resource-ids COMPUTE_RESOURCE_IDS           Compute resource IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --compute-resources COMPUTE_RESOURCE_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
 --description DESCRIPTION
 --domain-ids DOMAIN_IDS                               Domain IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --domains DOMAIN_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
 --environment-ids ENVIRONMENT_IDS                     Environment IDs (--environment-ids is deprecated: Use --puppet-environment[s|-ids] instead)
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --environments ENVIRONMENT_NAMES                      (--environments is deprecated: Use --puppet-environment[s|-ids] instead)
 --hostgroup-ids HOSTGROUP_IDS                         Host group IDs
                                                       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-titles HOSTGROUP_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
 --hostgroups HOSTGROUP_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
 --id ID
 --label LABEL
 --lifecycle-environment-ids LIFECYCLE_ENVIRONMENT_IDS Environment IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --lifecycle-environments LIFECYCLE_ENVIRONMENT_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
 --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                           Associated location IDs
                                                       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
 --media MEDIUM_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
 --medium-ids MEDIUM_IDS                               Medium IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --name NAME                                           Set the current organization context for the request
 --new-name NEW_NAME
 --new-title NEW_TITLE
 --organization ORGANIZATION_NAME                      Set the current organization context for the request
 --organization-id ORGANIZATION_ID                     Set the current organization context for the request
 --organization-label ORGANIZATION_LABEL               Organization label to search by
 --organization-title ORGANIZATION_TITLE               Set the current organization context for the request
 --partition-table-ids PARTITION_TABLE_IDS             Partition template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_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
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS Provisioning template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_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
 --ptable-ids PTABLE_IDS                               Partition template IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --ptables PTABLE_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
 --puppet-environment-ids PUPPET_ENVIRONMENT_IDS       Environment IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --puppet-environments PUPPET_ENVIRONMENT_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
 --realm-ids REALM_IDS                                 Realm IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --realms REALM_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
 --redhat-repository-url REDHAT_REPOSITORY_URL         Red Hat CDN URL
 --smart-proxies SMART_PROXY_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
 --smart-proxy-ids SMART_PROXY_IDS                     Capsule IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnet-ids SUBNET_IDS                               Subnet IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --subnets SUBNET_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
 --title TITLE                                         Set the current organization context for the request
 --user-ids USER_IDS                                   User IDs
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --users USER_LOGINS                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 -h, --help                                            Print help

2.51. hammer os

操作操作系统

Usage:
    hammer os [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-architecture              Associate an architecture
 add-provisioning-template     Associate provisioning templates
 add-ptable                    Associate a partition table
 create                        Create an operating system
 delete, destroy               Delete an operating system
 delete-default-template
 delete-parameter              Delete parameter for an operating system
 info, show                    Show an operating system
 list, index                   List all operating systems
 remove-architecture           Disassociate an architecture
 remove-provisioning-template  Disassociate provisioning templates
 remove-ptable                 Disassociate a partition table
 set-default-template
 set-parameter                 Create or update parameter for an operating system
 update                        Update an operating system

Options:
 -h, --help                    Print help

2.51.1. hammer os add-architecture

关联架构

Usage:
    hammer os add-architecture [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME  Architecture name
 --architecture-id ARCHITECTURE_ID
 --id ID
 --title TITLE                     Operating system title
 -h, --help                        Print help

2.51.2. hammer os add-provisioning-template

关联的置备模板

Usage:
    hammer os add-provisioning-template [OPTIONS]

Options:
 --id ID
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be associated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template 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
 --title TITLE                                               Operating system title
 -h, --help                                                  Print help

2.51.3. hammer os add-ptable

关联分区表

Usage:
    hammer os add-ptable [OPTIONS]

Options:
 --id ID
 --partition-table PARTITION_TABLE_NAME  Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --title TITLE                           Operating system title
 -h, --help                              Print help

2.51.4. hammer os create

创建操作系统

Usage:
    hammer os create [OPTIONS]

Options:
 --architecture-ids ARCHITECTURE_IDS                   IDs of associated architectures
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --architectures ARCHITECTURE_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
 --description DESCRIPTION
 --family FAMILY
 --major MAJOR
 --media MEDIUM_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
 --medium-ids MEDIUM_IDS                               IDs of associated media
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --minor MINOR
 --name NAME
 --os-parameters-attributes OS_PARAMETERS_ATTRIBUTES   Array of parameters
                                                       Comma separated list of values defined by a schema. See Option details section below.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-table-ids PARTITION_TABLE_IDS             IDs of associated partition tables
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_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
 --password-hash PASSWORD_HASH                         Root password hash function to use
                                                       Possible value(s): 'SHA256', 'SHA512', 'Base64', 'Base64-Windows', 'MD5'
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS IDs of associated provisioning templates
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_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
 --release-name RELEASE_NAME
 -h, --help                                            Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --os-parameters-attributes  "name=<string>\,value=<string>, ... "

2.51.5. hammer os delete

删除操作系统

Usage:
    hammer os <delete|destroy> [OPTIONS]

Options:
 --id ID
 --title TITLE                 Operating system title
 -h, --help                    Print help

2.51.6. hammer os delete-default-template

Usage:
    hammer os delete-default-template [OPTIONS]

Options:
 --id OS ID                    Operatingsystem id
 --type TPL TYPE               Type of the provisioning template
 -h, --help                    Print help

2.51.7. hammer os delete-parameter

删除操作系统的参数

Usage:
    hammer os delete-parameter [OPTIONS]

Options:
 --name NAME                             Parameter name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.51.8. hammer os info

显示操作系统

Usage:
    hammer os <info|show> [OPTIONS]

Options:
 --fields FIELDS                                 Show specified fields or predefined field 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
 --id ID
 --show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter values
                                                 One of true/false, yes/no, 1/0.
 --title TITLE                                   Operating system title
 -h, --help                                      Print help

Predefined field sets:
  --------------------|-----|---------|-----
  FIELDS              | ALL | DEFAULT | THIN
  --------------------|-----|---------|-----
  Id                  | x   | x       | x
  Title               | x   | x       | x
  Release name        | x   | x       |
  Family              | x   | x       |
  Name                | x   | x       |
  Major version       | x   | x       |
  Minor version       | x   | x       |
  Partition tables/   | x   | x       |
  Default templates/  | x   | x       |
  Architectures/      | x   | x       |
  Installation media/ | x   | x       |
  Templates/          | x   | x       |
  Parameters/         | x   | x       |
  --------------------|-----|---------|-----

2.51.9. hammer os list

列出所有操作系统

Usage:
    hammer os <list|index> [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME                    Architecture name
 --architecture-id ARCHITECTURE_ID                   ID of architecture
 --fields FIELDS                                     Show specified fields or predefined field 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
 --medium MEDIUM_NAME                                Medium name
 --medium-id MEDIUM_ID                               ID of medium
 --order ORDER                                       Sort field and order, eg. ‘id DESC’
 --os-parameters-attributes OS_PARAMETERS_ATTRIBUTES Array of parameters
                                                     Comma separated list of values defined by a schema. See Option details section below.
                                                     JSON is acceptable and preferred way for complex parameters
 --page PAGE                                         Page number, starting at 1
 --partition-table PARTITION_TABLE_NAME              Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --per-page PER_PAGE                                 Number of results per page to return, 'all' to return all results
 --provisioning-template PROVISIONING_TEMPLATE_NAME  Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID ID of template
 --search SEARCH                                     Filter results
 -h, --help                                          Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --os-parameters-attributes  "name=<string>\,value=<string>, ... "

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Title        | x   | x       | x
  Release name | x   | x       |
  Family       | x   | x       |
  -------------|-----|---------|-----

Search / Order fields:
  architecture        string
  description         string
  family              string
  major               string
  medium              string
  minor               string
  name                string
  params              string
  template            string
  title               string

2.51.10. hammer os remove-architecture

解除架构关联

Usage:
    hammer os remove-architecture [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME  Architecture name
 --architecture-id ARCHITECTURE_ID
 --id ID
 --title TITLE                     Operating system title
 -h, --help                        Print help

2.51.11. hammer os remove-provisioning-template

解除关联置备模板

Usage:
    hammer os remove-provisioning-template [OPTIONS]

Options:
 --id ID
 --provisioning-template PROVISIONING_TEMPLATE_NAME          Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS       List of provisioning template ids
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --provisioning-template-search PROVISIONING_TEMPLATE_SEARCH Provisioning template name regex to search, all matching templates will be disassociated
 --provisioning-templates PROVISIONING_TEMPLATE_NAMES        List of provisioning template 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
 --title TITLE                                               Operating system title
 -h, --help                                                  Print help

2.51.12. hammer os remove-ptable

解除分区表关联

Usage:
    hammer os remove-ptable [OPTIONS]

Options:
 --id ID
 --partition-table PARTITION_TABLE_NAME  Partition table name
 --partition-table-id PARTITION_TABLE_ID
 --title TITLE                           Operating system title
 -h, --help                              Print help

2.51.13. hammer os set-default-template

Usage:
    hammer os set-default-template [OPTIONS]

Options:
 --id OS ID                        Operatingsystem id
 --provisioning-template-id TPL ID Provisioning template id to be set
 -h, --help                        Print help

2.51.14. hammer os set-parameter

为操作系统创建或更新参数

Usage:
    hammer os set-parameter [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE             Should the value be hidden
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Parameter name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 --parameter-type PARAMETER_TYPE         Type of the parameter
                                         Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                         Default: "string"
 --value VALUE                           Parameter value
 -h, --help                              Print help

2.51.15. hammer os 更新

更新操作系统

Usage:
    hammer os update [OPTIONS]

Options:
 --architecture-ids ARCHITECTURE_IDS                   IDs of associated architectures
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --architectures ARCHITECTURE_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
 --description DESCRIPTION
 --family FAMILY
 --id ID
 --major MAJOR
 --media MEDIUM_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
 --medium-ids MEDIUM_IDS                               IDs of associated media
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --minor MINOR
 --name NAME
 --os-parameters-attributes OS_PARAMETERS_ATTRIBUTES   Array of parameters
                                                       Comma separated list of values defined by a schema. See Option details section below.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-table-ids PARTITION_TABLE_IDS             IDs of associated partition tables
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --partition-tables PARTITION_TABLE_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
 --password-hash PASSWORD_HASH                         Root password hash function to use
                                                       Possible value(s): 'SHA256', 'SHA512', 'Base64', 'Base64-Windows', 'MD5'
 --provisioning-template-ids PROVISIONING_TEMPLATE_IDS IDs of associated provisioning templates
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --provisioning-templates PROVISIONING_TEMPLATE_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
 --release-name RELEASE_NAME
 --title TITLE                                         Operating system title
 -h, --help                                            Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --os-parameters-attributes  "name=<string>\,value=<string>, ... "

2.52. hammer ostree-branch

操作 ostree 分支

Usage:
    hammer ostree-branch [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show an ostree branch
 list, index                   List ostree_branches

Options:
 -h, --help                    Print help

2.52.1. hammer ostree-branch info

显示 ostree 分支

Usage:
    hammer ostree-branch <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 An ostree branch identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  --------|-----|---------|-----
  FIELDS  | ALL | DEFAULT | THIN
  --------|-----|---------|-----
  Id      | x   | x       | x
  Name    | x   | x       | x
  Version | x   | x       |
  Commit  | x   | x       |
  --------|-----|---------|-----

2.52.2. hammer ostree-branch list

list ostree_branches

Usage:
    hammer ostree-branch <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                          Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content view filter identifier
 --content-view-filter-rule CONTENT_VIEW_FILTER_RULE_NAME  Name to search by
 --content-view-filter-rule-id CONTENT_VIEW_FILTER_RULE_ID Content view filter rule identifier
 --content-view-id CONTENT_VIEW_ID                         Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content view version identifier
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --ids IDS                                                 Ids to filter content by
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --include-filter-ids INCLUDE_FILTER_IDS                   Includes associated content view filter ids in response
                                                           One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

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

2.53. hammer 软件包

操作软件包

Usage:
    hammer package [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a package
 list, index                   List packages

Options:
 -h, --help                    Print help

2.53.1. hammer 软件包信息

显示软件包

Usage:
    hammer package <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 A package identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Pulp id               | x   | x       |
  Uuid                  | x   | x       |
  Name                  | x   | x       | x
  Version               | x   | x       |
  Architecture          | x   | x       |
  Epoch                 | x   | x       |
  Release               | x   | x       |
  Author                | x   | x       |
  Filename              | x   | x       |
  Source rpm            | x   | x       |
  Nvrea                 | x   | x       |
  Build host            | x   | x       |
  Available host count  | x   | x       |
  Applicable host count | x   | x       |
  Children              | x   | x       |
  Vendor                | x   | x       |
  License               | x   | x       |
  Relative path         | x   | x       |
  Description           | x   | x       |
  Summary               | x   | x       |
  Url                   | x   | x       |
  Build time            | x   | x       |
  Group                 | x   | x       |
  Requires              | x   | x       |
  Provides              | x   | x       |
  Files                 | x   | x       |
  Size                  | x   | x       |
  Modular               | x   | x       |
  ----------------------|-----|---------|-----

2.53.2. hammer 软件包列表

列出软件包

Usage:
    hammer package <list|index> [OPTIONS]

Options:
 --available-for AVAILABLE_FOR                               Return packages that can be added to the specified object.  Only the value 'content_view_version' is supported.
 --content-view CONTENT_VIEW_NAME                            Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME              Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID             Content View Filter identifier
 --content-view-id CONTENT_VIEW_ID                           Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION         Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID           Content View Version identifier
 --environment ENVIRONMENT_NAME                              Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                             (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --fields FIELDS                                             Show specified fields or predefined field 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
 --full-result FULL_RESULT                                   Whether or not to show all results
                                                             One of true/false, yes/no, 1/0.
 --host HOST_NAME                                            Host name
 --host-id HOST_ID                                           Host id to list applicable packages for
 --ids IDS                                                   Package identifiers to filter content by
                                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                             JSON is acceptable and preferred way for complex parameters
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME          Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                               Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                            Organization name to search by
 --organization-id ORGANIZATION_ID                           Organization identifier
 --organization-label ORGANIZATION_LABEL                     Organization label to search by
 --organization-title ORGANIZATION_TITLE                     Organization title
 --packages-restrict-applicable PACKAGES_RESTRICT_APPLICABLE Return packages that are applicable to one or more hosts (defaults to true if host_id is specified)
                                                             One of true/false, yes/no, 1/0.
 --packages-restrict-latest PACKAGES_RESTRICT_LATEST         Return only the latest version of each package
                                                             One of true/false, yes/no, 1/0.
 --packages-restrict-upgradable PACKAGES_RESTRICT_UPGRADABLE Return packages that are upgradable on one or more hosts
                                                             One of true/false, yes/no, 1/0.
 --page PAGE                                                 Page number, starting at 1
 --per-page PER_PAGE                                         Number of results per page to return
 --product PRODUCT_NAME                                      Product name to search by
 --product-id PRODUCT_ID                                     Product numeric identifier
 --repository REPOSITORY_NAME                                Repository name to search by
 --repository-id REPOSITORY_ID                               Repository identifier
 --search SEARCH                                             Search string
 -h, --help                                                  Print help

Predefined field sets:
  -----------|-----|--------
  FIELDS     | ALL | DEFAULT
  -----------|-----|--------
  Id         | x   | x
  Filename   | x   | x
  Source rpm | x   | x
  -----------|-----|--------

2.54. hammer package-group

操作软件包组

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

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

Subcommands:
 info, show                    Show a package group
 list, index                   List package_groups

Options:
 -h, --help                    Print help

2.54.1. hammer package-group info

显示软件包组

Usage:
    hammer package-group <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 A package group identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  ---------------------|-----|---------|-----
  FIELDS               | ALL | DEFAULT | THIN
  ---------------------|-----|---------|-----
  Id                   | x   | x       | x
  Package group name   | x   | x       | x
  Repository name      | x   | x       |
  Uuid                 | x   | x       |
  Description          | x   | x       |
  Default packages     | x   | x       |
  Mandatory packages   | x   | x       |
  Conditional packages | x   | x       |
  Optional packages    | x   | x       |
  ---------------------|-----|---------|-----

2.54.2. hammer package-group list

list package_groups

Usage:
    hammer package-group <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                          Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME            Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID           Content view filter identifier
 --content-view-filter-rule CONTENT_VIEW_FILTER_RULE_NAME  Name to search by
 --content-view-filter-rule-id CONTENT_VIEW_FILTER_RULE_ID Content view filter rule identifier
 --content-view-id CONTENT_VIEW_ID                         Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION       Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID         Content view version identifier
 --fields FIELDS                                           Show specified fields or predefined field 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
 --full-result FULL_RESULT                                 Whether or not to show all results
                                                           One of true/false, yes/no, 1/0.
 --ids IDS                                                 Ids to filter content by
                                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                           JSON is acceptable and preferred way for complex parameters
 --include-filter-ids INCLUDE_FILTER_IDS                   Includes associated content view filter ids in response
                                                           One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME        Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                             Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                          Organization name to search by
 --organization-id ORGANIZATION_ID                         Organization identifier
 --organization-label ORGANIZATION_LABEL                   Organization label to search by
 --organization-title ORGANIZATION_TITLE                   Organization title
 --page PAGE                                               Page number, starting at 1
 --per-page PER_PAGE                                       Number of results per page to return
 --product PRODUCT_NAME                                    Product name to search by
 --product-id PRODUCT_ID                                   Product numeric identifier
 --repository REPOSITORY_NAME                              Repository name to search by
 --repository-id REPOSITORY_ID                             Repository identifier
 --search SEARCH                                           Search string
 -h, --help                                                Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       | x
  Package group name | x   | x       | x
  Repository name    | x   | x       |
  Uuid               | x   | x       |
  -------------------|-----|---------|-----

2.55. hammer partition-table

操作分区表

Usage:
    hammer partition-table [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-operatingsystem           Associate an operating system
 create                        Create a partition table
 delete, destroy               Delete a partition table
 dump                          View partition table content
 info, show                    Show a partition table
 list, index                   List all partition tables
 remove-operatingsystem        Disassociate an operating system
 update                        Update a partition table

Options:
 -h, --help                    Print help

2.55.1. hammer partition-table add-operatingsystem

关联操作系统

Usage:
    hammer partition-table add-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Partition table name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.55.2. hammer 分区可写入创建

创建分区表

Usage:
    hammer partition-table create [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --description DESCRIPTION
 --file LAYOUT                             Path to a file that contains the partition layout
 --host-ids HOST_IDS                       Array of host IDs to associate with the partition table
                                           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-ids HOSTGROUP_IDS             Array of host group IDs to associate with the partition table
                                           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-titles HOSTGROUP_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
 --hostgroups HOSTGROUP_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
 --hosts HOST_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
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME
 --operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs to associate with the partition table
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 --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       REPLACE organizations with given ids.
                                           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
 --os-family OS_FAMILY
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 -h, --help                                Print help

2.55.3. hammer partition-table delete

删除分区表

Usage:
    hammer partition-table <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Partition table name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.55.4. hammer 分区可写入转储

查看分区表内容

Usage:
    hammer partition-table dump [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Partition table name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------
  FIELDS
  ------

2.55.5. hammer 分区可写入信息

显示分区表

Usage:
    hammer partition-table <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Partition table name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       | x
  Name               | x   | x       | x
  Os family          | x   | x       |
  Description        | x   | x       |
  Locked             | x   | x       |
  Operating systems/ | x   | x       |
  Created at         | x   | x       |
  Updated at         | x   | x       |
  Locations/         | x   | x       |
  Organizations/     | x   | x       |
  -------------------|-----|---------|-----

2.55.6. hammer partition-table list

列出所有分区表

Usage:
    hammer partition-table <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID ID of operating system
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ----------|-----|---------|-----
  FIELDS    | ALL | DEFAULT | THIN
  ----------|-----|---------|-----
  Id        | x   | x       | x
  Name      | x   | x       | x
  Os family | x   | x       |
  ----------|-----|---------|-----

Search / Order fields:
  default             Values: true, false
  family              string
  layout              text
  location            string
  location_id         integer
  locked              Values: true, false
  name                string
  organization        string
  organization_id     integer
  snippet             Values: true, false
  template            text
  vendor              string

2.55.7. hammer partition-table remove-operatingsystem

解除操作系统关联

Usage:
    hammer partition-table remove-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Partition table name
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.55.8. hammer 分区可写入更新

更新分区表

Usage:
    hammer partition-table update [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --description DESCRIPTION
 --file LAYOUT                             Path to a file that contains the partition layout
 --host-ids HOST_IDS                       Array of host IDs to associate with the partition table
                                           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-ids HOSTGROUP_IDS             Array of host group IDs to associate with the partition table
                                           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-titles HOSTGROUP_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
 --hostgroups HOSTGROUP_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
 --hosts HOST_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
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Partition table name
 --new-name NEW_NAME
 --operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs to associate with the partition table
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 --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       REPLACE organizations with given ids.
                                           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
 --os-family OS_FAMILY
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 -h, --help                                Print help

2.56. hammer ping

获取服务器的状态和/或它的子组件

Usage:
    hammer ping [OPTIONS] [SUBCOMMAND] [ARG] ...

Parameters:
 [ARG] ...                     Subcommand arguments
 [SUBCOMMAND]                  Subcommand (default: "foreman")

Subcommands:
 foreman                       Shows status of Satellite system and it's subcomponents
 katello                       Shows status of Katello system and it's subcomponents

Options:
 -h, --help                    Print help

2.56.1. hammer ping foreman

显示 Satellite 系统的状态,它是子组件

Usage:
    hammer ping foreman [OPTIONS]

Options:
 -h, --help                    Print help

2.56.2. hammer ping katello

显示 Katello 系统的状态及其子组件

Usage:
    hammer ping katello [OPTIONS]

Options:
 -h, --help                    Print help

2.57. hammer 策略

操作策略

Usage:
    hammer policy [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a Policy
 delete, destroy               Delete a Policy
 hosts                         List all hosts
 info, show                    Show a Policy
 list, index                   List Policies
 update                        Update a Policy

Options:
 -h, --help                    Print help

2.57.1. hammer 策略创建

创建策略

Usage:
    hammer policy create [OPTIONS]

Options:
 --cron-line CRON_LINE                                 Policy schedule cron line (only if period == “custom”)
 --day-of-month DAY_OF_MONTH                           Policy schedule day of month (only if period == “monthly”)
 --deploy-by DEPLOY_BY                                 How the policy should be deployed
                                                       Possible value(s): 'puppet', 'ansible', 'manual'
 --description DESCRIPTION                             Policy description
 --host-ids HOST_IDS                                   Apply policy to 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
 --hostgroup-ids HOSTGROUP_IDS                         Apply policy to host groups
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --hostgroups HOSTGROUP_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
 --hosts HOST_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
 --location LOCATION_NAME                              Name to search by
 --location-id LOCATION_ID                             Set the current location context for the request
 --location-ids LOCATION_IDS                           REPLACE locations with given ids
                                                       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
 --name NAME                                           Policy name
 --organization ORGANIZATION_NAME                      Name to search by
 --organization-id ORGANIZATION_ID                     Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS                   REPLACE organizations with given ids.
                                                       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
 --period PERIOD                                       Policy schedule period (weekly, monthly, custom)
 --scap-content SCAP_CONTENT_TITLE                     SCAP content title
 --scap-content-id SCAP_CONTENT_ID                     Policy SCAP content ID
 --scap-content-profile SCAP_CONTENT_PROFILE_NAME      Name to search by
 --scap-content-profile-id SCAP_CONTENT_PROFILE_ID     Policy SCAP content profile ID
 --tailoring-file TAILORING_FILE_NAME                  Tailoring file name
 --tailoring-file-id TAILORING_FILE_ID                 Tailoring file ID
 --tailoring-file-profile-id TAILORING_FILE_PROFILE_ID Tailoring file profile ID
 --weekday WEEKDAY                                     Policy schedule weekday (only if period == “weekly”)
 -h, --help                                            Print help

2.57.2. hammer 策略删除

删除策略

Usage:
    hammer policy <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.57.3. hammer 策略主机

列出所有主机

Usage:
    hammer policy hosts [OPTIONS]

Options:
 --fields FIELDS                               Show specified fields or predefined field 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                   ID of host group
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --id ID                                       Policy Id
 --include INCLUDE                             Array of extra information types to include
                                               Possible value(s): 'parameters', 'all_parameters'
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     ID of location
 --location-title LOCATION_TITLE               Set the current location context for the request
 --name NAME                                   Policy name
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             ID of organization
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return, 'all' to return all results
 --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   |         |
  Trace status           | x   | 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_errata_issued        date
  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
  cve_id                          integer
  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                      boolean
  hypervisor_host                 string
  id                              integer
  image                           string
  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
  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_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.57.4. hammer 策略信息

显示策略

Usage:
    hammer policy <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  --------------------------|-----|---------|-----
  FIELDS                    | ALL | DEFAULT | THIN
  --------------------------|-----|---------|-----
  Id                        | x   | x       | x
  Name                      | x   | x       | x
  Created at                | x   | x       |
  Period                    | x   | x       |
  Weekday                   | x   | x       |
  Day of month              | x   | x       |
  Cron line                 | x   | x       |
  Scap content id           | x   | x       |
  Scap content profile id   | x   | x       |
  Tailoring file id         | x   | x       |
  Tailoring file profile id | x   | x       |
  Deployment option         | x   | x       |
  Locations/                | x   | x       |
  Organizations/            | x   | x       |
  Hostgroups/               | x   | x       |
  --------------------------|-----|---------|-----

2.57.5. hammer 策略列表

列出策略

Usage:
    hammer policy <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -----------|-----|---------|-----
  FIELDS     | ALL | DEFAULT | THIN
  -----------|-----|---------|-----
  Id         | x   | x       | x
  Name       | x   | x       | x
  Created at | x   | x       |
  -----------|-----|---------|-----

Search / Order fields:
  content                 string
  location                string
  location_id             integer
  name                    string
  organization            string
  organization_id         integer
  profile                 string
  tailoring_file          string
  tailoring_file_profile  string

2.57.6. hammer 策略更新

更新策略

Usage:
    hammer policy update [OPTIONS]

Options:
 --cron-line CRON_LINE                                 Policy schedule cron line (only if period == “custom”)
 --day-of-month DAY_OF_MONTH                           Policy schedule day of month (only if period == “monthly”)
 --deploy-by DEPLOY_BY                                 How the policy should be deployed
                                                       Possible value(s): 'puppet', 'ansible', 'manual'
 --description DESCRIPTION                             Policy description
 --host-ids HOST_IDS                                   Apply policy to 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
 --hostgroup-ids HOSTGROUP_IDS                         Apply policy to host groups
                                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                       JSON is acceptable and preferred way for complex parameters
 --hostgroups HOSTGROUP_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
 --hosts HOST_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
 --id ID
 --location LOCATION_NAME                              Name to search by
 --location-id LOCATION_ID                             Set the current location context for the request
 --location-ids LOCATION_IDS                           REPLACE locations with given ids
                                                       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
 --name NAME                                           Policy name
 --new-name NEW_NAME                                   Policy name
 --organization ORGANIZATION_NAME                      Name to search by
 --organization-id ORGANIZATION_ID                     Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS                   REPLACE organizations with given ids.
                                                       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
 --period PERIOD                                       Policy schedule period (weekly, monthly, custom)
 --scap-content SCAP_CONTENT_TITLE                     SCAP content title
 --scap-content-id SCAP_CONTENT_ID                     Policy SCAP content ID
 --scap-content-profile SCAP_CONTENT_PROFILE_NAME      Name to search by
 --scap-content-profile-id SCAP_CONTENT_PROFILE_ID     Policy SCAP content profile ID
 --tailoring-file TAILORING_FILE_NAME                  Tailoring file name
 --tailoring-file-id TAILORING_FILE_ID                 Tailoring file ID
 --tailoring-file-profile-id TAILORING_FILE_PROFILE_ID Tailoring file profile ID
 --weekday WEEKDAY                                     Policy schedule weekday (only if period == “weekly”)
 -h, --help                                            Print help

2.58. hammer prebuild-bash-completion

准备用于完成 Bash 的选项和子命令映射

Usage:
    hammer prebuild-bash-completion [OPTIONS]

Options:
 -h, --help                    Print help

2.59. hammer 产品

操作产品

Usage:
    hammer product [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a product
 delete, destroy               Destroy a product
 info, show                    Show a product
 list, index                   List products
 remove-sync-plan              Delete assignment sync plan and product
 set-sync-plan                 Assign sync plan to product
 synchronize                   Sync all repositories for a product
 update                        Updates a product
 update-proxy                  Updates an HTTP Proxy for a product

Options:
 -h, --help                    Print help

2.59.1. hammer 产品创建

创建产品

Usage:
    hammer product create [OPTIONS]

Options:
 --description DESCRIPTION               Product description
 --gpg-key-id GPG_KEY_ID                 Identifier of the GPG key
 --label LABEL
 --name NAME                             Product name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       ID of the organization
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --ssl-ca-cert-id SSL_CA_CERT_ID         Idenifier of the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID   Identifier of the SSL Client Key
 --sync-plan SYNC_PLAN_NAME              Sync plan name to search by
 --sync-plan-id SYNC_PLAN_ID             Plan numeric identifier
 -h, --help                              Print help

2.59.2. hammer 产品删除

销毁产品

Usage:
    hammer product <delete|destroy> [OPTIONS]

Options:
 --id ID                                 Product numeric identifier
 --name NAME                             Product name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.59.3. hammer 产品信息

显示产品

Usage:
    hammer product <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Product numeric identifier
 --name NAME                             Product name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  ---------------------|-----|---------|-----
  FIELDS               | ALL | DEFAULT | THIN
  ---------------------|-----|---------|-----
  Id                   | x   | x       | x
  Name                 | x   | x       | x
  Label                | x   | x       |
  Description          | x   | x       |
  Sync state (all)     | x   | x       |
  Sync state (last)    | x   | x       |
  Sync plan id         | x   | x       |
  Gpg/gpg key id       | x   | x       |
  Gpg/gpg key          | x   | x       |
  Organization         | x   | x       |
  Readonly             | x   | x       |
  Deletable            | x   | x       |
  Content/repo name    | x   | x       |
  Content/url          | x   | x       |
  Content/content type | x   | x       |
  ---------------------|-----|---------|-----

2.59.4. hammer 产品列表

列出产品

Usage:
    hammer product <list|index> [OPTIONS]

Options:
 --available-for AVAILABLE_FOR                         Interpret specified object to return only Products that can be associated with specified object.  Only 'sync_plan' is supported.
 --custom CUSTOM                                       Return custom products only
                                                       One of true/false, yes/no, 1/0.
 --enabled ENABLED                                     Return enabled products only
                                                       One of true/false, yes/no, 1/0.
 --fields FIELDS                                       Show specified fields or predefined field 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
 --full-result FULL_RESULT                             Whether or not to show all results
                                                       One of true/false, yes/no, 1/0.
 --include-available-content INCLUDE_AVAILABLE_CONTENT Whether to include available content attribute in results
                                                       One of true/false, yes/no, 1/0.
 --name NAME                                           Filter products by name
 --order ORDER                                         Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                      Organization name to search by
 --organization-id ORGANIZATION_ID                     Filter products by organization
 --organization-label ORGANIZATION_LABEL               Organization label to search by
 --organization-title ORGANIZATION_TITLE               Organization title
 --page PAGE                                           Page number, starting at 1
 --per-page PER_PAGE                                   Number of results per page to return
 --redhat-only REDHAT_ONLY                             Return Red Hat (non-custom) products only
                                                       One of true/false, yes/no, 1/0.
 --search SEARCH                                       Search string
 --subscription SUBSCRIPTION_NAME                      Subscription name to search by
 --subscription-id SUBSCRIPTION_ID                     Filter products by subscription
 --sync-plan SYNC_PLAN_NAME                            Sync plan name to search by
 --sync-plan-id SYNC_PLAN_ID                           Filter products by sync plan id
 -h, --help                                            Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Description  | x   | x       |
  Organization | x   | x       |
  Repositories | x   | x       |
  Sync state   | x   | x       |
  -------------|-----|---------|-----

Search / Order fields:
  description         text
  label               string
  name                string
  organization_id     integer
  redhat              Values: true, false

2.59.5. hammer 产品 remove-sync-plan

删除分配同步计划和产品

Usage:
    hammer product remove-sync-plan [OPTIONS]

Options:
 --description DESCRIPTION               Product description
 --gpg-key-id GPG_KEY_ID                 Identifier of the GPG key
 --id ID                                 Product numeric identifier
 --name NAME                             Product name to search by
 --new-name NEW_NAME                     Product name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --ssl-ca-cert-id SSL_CA_CERT_ID         Idenifier of the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID   Identifier of the SSL Client Key
 -h, --help                              Print help

2.59.6. hammer product set-sync-plan

为产品分配同步计划

Usage:
    hammer product set-sync-plan [OPTIONS]

Options:
 --id ID                                 Product numeric identifier
 --name NAME                             Product name to search by
 --new-name NEW_NAME                     Product name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --ssl-ca-cert-id SSL_CA_CERT_ID         Idenifier of the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID   Identifier of the SSL Client Key
 --sync-plan SYNC_PLAN_NAME              Sync plan name to search by
 --sync-plan-id SYNC_PLAN_ID             Plan numeric identifier
 -h, --help                              Print help

2.59.7. hammer 产品同步

同步产品的所有软件仓库

Usage:
    hammer product synchronize [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --id ID                                 Product ID
 --name NAME                             Product name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.59.8. hammer 产品更新

更新产品

Usage:
    hammer product update [OPTIONS]

Options:
 --description DESCRIPTION               Product description
 --gpg-key-id GPG_KEY_ID                 Identifier of the GPG key
 --id ID                                 Product numeric identifier
 --name NAME                             Product name to search by
 --new-name NEW_NAME                     Product name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --ssl-ca-cert-id SSL_CA_CERT_ID         Idenifier of the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID   Identifier of the SSL Client Key
 --sync-plan SYNC_PLAN_NAME              Sync plan name to search by
 --sync-plan-id SYNC_PLAN_ID             Plan numeric identifier
 -h, --help                              Print help

2.59.9. hammer 产品 update-proxy

为产品更新 HTTP 代理

Usage:
    hammer product update-proxy [OPTIONS]

Options:
 --http-proxy HTTP_PROXY_NAME          Name to search by
 --http-proxy-id HTTP_PROXY_ID         HTTP Proxy identifier to associated
 --http-proxy-policy HTTP_PROXY_POLICY Policy for HTTP Proxy for content sync
                                       Possible value(s): 'global_default_http_proxy', 'none', 'use_selected_http_proxy'
 --ids IDS                             List of product ids
                                       Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                       JSON is acceptable and preferred way for complex parameters
 -h, --help                            Print help

2.60. hammer 代理

操作智能代理

Usage:
    hammer proxy [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 content                       Manage the capsule content
 create                        Create a capsule
 delete, destroy               Delete a capsule
 import-classes                Import puppet classes from puppet Capsule
 info, show                    Show a capsule
 list, index                   List all capsules
 refresh-features              Refresh capsule features
 update                        Update a capsule

Options:
 -h, --help                    Print help

2.60.1. hammer 代理内容

管理过期内容

Usage:
    hammer proxy content [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-lifecycle-environment        Add lifecycle environments to the capsule
 available-lifecycle-environments List the lifecycle environments not attached to the capsule
 cancel-synchronization           Cancel running capsule synchronization
 info                             Get current capsule synchronization status
 lifecycle-environments           List the lifecycle environments attached to the capsule
 remove-lifecycle-environment     Remove lifecycle environments from the capsule
 synchronization-status           Get current capsule synchronization status
 synchronize                      Synchronize the content to the capsule

Options:
 -h, --help                    Print help
2.60.1.1. hammer 代理内容 add-lifecycle-environment

将生命周期阶段添加到过期

Usage:
    hammer proxy content add-lifecycle-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 -h, --help                                          Print help
2.60.1.2. hammer 代理内容 available-lifecycle-environments

列出未附加到过期的生命周期阶段

Usage:
    hammer proxy content available-lifecycle-environments [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to limit environments on
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Organization | x   | x       |
  -------------|-----|---------|-----
2.60.1.3. hammer 代理内容取消同步

取消运行过期同步

Usage:
    hammer proxy content cancel-synchronization [OPTIONS]

Options:
 --id ID                       Id of the capsule
 --name NAME                   Name to search by
 -h, --help                    Print help
2.60.1.4. hammer 代理内容信息

获取当前的同步状态

Usage:
    hammer proxy content info [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to get the status for
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  -------------------------------------------------------------------|-----|--------
  FIELDS                                                             | ALL | DEFAULT
  -------------------------------------------------------------------|-----|--------
  Lifecycle environments/name                                        | x   | x
  Lifecycle environments/organization                                | x   | x
  Lifecycle environments/content views/name                          | x   | x
  Lifecycle environments/content views/composite                     | x   | x
  Lifecycle environments/content views/last published                | x   | x
  Lifecycle environments/content views/content/hosts                 | x   | x
  Lifecycle environments/content views/content/products              | x   | x
  Lifecycle environments/content views/content/yum repos             | x   | x
  Lifecycle environments/content views/content/container image repos | x   | x
  Lifecycle environments/content views/content/packages              | x   | x
  Lifecycle environments/content views/content/package groups        | x   | x
  Lifecycle environments/content views/content/errata                | x   | x
  -------------------------------------------------------------------|-----|--------
2.60.1.5. hammer 代理内容生命周期-environments

列出附加到过期的产品生命周期

Usage:
    hammer proxy content lifecycle-environments [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to limit environments on
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Organization | x   | x       |
  -------------|-----|---------|-----
2.60.1.6. hammer 代理内容 remove-lifecycle-environment

从过期中删除生命周期阶段

Usage:
    hammer proxy content remove-lifecycle-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 -h, --help                                          Print help
2.60.1.7. hammer 代理内容同步-status

获取当前的同步状态

Usage:
    hammer proxy content synchronization-status [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to get the status for
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  --------------------------------------|-----|--------
  FIELDS                                | ALL | DEFAULT
  --------------------------------------|-----|--------
  Last sync                             | x   | x
  Status                                | x   | x
  Currently running sync tasks/task id  | x   | x
  Currently running sync tasks/progress | x   | x
  Last failure/task id                  | x   | x
  Last failure/messages                 | x   | x
  --------------------------------------|-----|--------
2.60.1.8. hammer 代理内容同步

将内容同步到过期

Usage:
    hammer proxy content synchronize [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 --skip-metadata-check SKIP_METADATA_CHECK           Skip metadata check on each repository on the capsule
                                                     One of true/false, yes/no, 1/0.
 -h, --help                                          Print help

2.60.2. hammer 代理创建

创建过期

Usage:
    hammer proxy create [OPTIONS]

Options:
 --download-policy DOWNLOAD_POLICY         Download Policy of the capsule, must be one of on_demand, immediate, inherit
 --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               REPLACE locations with given ids
                                           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
 --name NAME
 --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       REPLACE organizations with given ids.
                                           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
 --url URL
 -h, --help                                Print help

2.60.3. hammer 代理删除

删除过期

Usage:
    hammer proxy <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.60.4. hammer 代理 import-classes

从 puppet Capsule 导入 puppet 类

Usage:
    hammer proxy import-classes [OPTIONS]

Options:
 --dryrun                                      Do not run the import
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --except EXCEPT                               Optional comma-delimited string containing either 'new', 'updated', or 'obsolete' that is used to limit the imported Puppet classes
 --id ID
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --name NAME                                   Name to search by
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                    Print help

2.60.5. hammer 代理信息

显示过期

Usage:
    hammer proxy <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Url            | x   | x       |
  Features       | x   | x       |
  Features/      | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.60.6. hammer 代理列表

列出所有公司

Usage:
    hammer proxy <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ---------|-----|---------|-----
  FIELDS   | ALL | DEFAULT | THIN
  ---------|-----|---------|-----
  Id       | x   | x       | x
  Name     | x   | x       | x
  Url      | x   | x       |
  Features | x   | x       |
  ---------|-----|---------|-----

Search / Order fields:
  feature             string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  url                 string

Search / Order fields:
  feature             string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  url                 string

2.60.7. hammer 代理刷新功能

刷新功能

Usage:
    hammer proxy refresh-features [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.60.8. hammer 代理更新

更新过期

Usage:
    hammer proxy update [OPTIONS]

Options:
 --download-policy DOWNLOAD_POLICY         Download Policy of the capsule, must be one of on_demand, immediate, inherit
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 --url URL
 -h, --help                                Print help

2.61. hammer puppet-class

搜索 puppet 模块

Usage:
    hammer puppet-class [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a Puppet class
 list, index                   List all Puppet classes
 sc-params                     List all smart class parameters

Options:
 -h, --help                    Print help

2.61.1. hammer puppet-class info

显示 Puppet 类

Usage:
    hammer puppet-class <info|show> [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field 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
 --host HOST_NAME                              Host name
 --host-id HOST_ID                             ID of host
 --hostgroup HOSTGROUP_NAME                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID                   ID of host group
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --id ID                                       ID of Puppet class
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --name NAME                                   Puppet class name
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                    Print help

Predefined field sets:
  ------------------------|-----|---------|-----
  FIELDS                  | ALL | DEFAULT | THIN
  ------------------------|-----|---------|-----
  Id                      | x   | x       | x
  Name                    | x   | x       | x
  Smart class parameters/ | x   | x       |
  Hostgroups/             | x   | x       |
  Environments/           | x   | x       |
  Parameters/             | x   | x       |
  ------------------------|-----|---------|-----

2.61.2. hammer puppet-class list

列出所有 Puppet 类

Usage:
    hammer puppet-class <list|index> [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field 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
 --host HOST_NAME                              Host name
 --host-id HOST_ID                             ID of host
 --hostgroup HOSTGROUP_NAME                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID                   ID of host group
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return, 'all' to return all results
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --search SEARCH                               Filter results
 -h, --help                                    Print help

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

Search / Order fields:
  config_group        string
  environment         string
  host                string
  hostgroup           string
  key                 string
  location            string
  name                string
  organization        string

2.61.3. hammer puppet-class sc-params

列出所有智能类参数

Usage:
    hammer puppet-class sc-params [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --puppet-class PUPPET_CLASS_NAME        Puppet class name
 --puppet-class-id PUPPET_CLASS_ID
 --search SEARCH                         Filter results
 --show-hidden SHOW_HIDDEN               Display hidden values
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Parameter     | x   | x
  Default value | x   | x
  Override      | x   | x
  --------------|-----|--------

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string

2.62. hammer puppet-environment

操作 Puppet 环境

Usage:
    hammer puppet-environment [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create an environment
 delete, destroy               Delete an environment
 info, show                    Show an environment
 list, index                   List all environments
 sc-params                     List all smart class parameters
 update                        Update an environment

Options:
 -h, --help                    Print help

2.62.1. hammer puppet-environment create

创建环境

Usage:
    hammer puppet-environment create [OPTIONS]

Options:
 --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               REPLACE locations with given ids
                                           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
 --name NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.62.2. hammer puppet-environment delete

删除环境

Usage:
    hammer puppet-environment <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Puppet environment name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.62.3. hammer puppet-environment info

显示环境

Usage:
    hammer puppet-environment <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Puppet environment name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Puppetclasses/ | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.62.4. hammer puppet-environment list

列出所有环境

Usage:
    hammer puppet-environment <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --puppet-class PUPPET_CLASS_NAME        Puppet class name
 --puppet-class-id PUPPET_CLASS_ID
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer

2.62.5. hammer puppet-environment sc-params

列出所有智能类参数

Usage:
    hammer puppet-environment sc-params [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field 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
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return, 'all' to return all results
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --search SEARCH                               Filter results
 --show-hidden SHOW_HIDDEN                     Display hidden values
                                               One of true/false, yes/no, 1/0.
 -h, --help                                    Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Parameter     | x   | x
  Default value | x   | x
  Override      | x   | x
  Puppet class  | x   | x
  Class id      | x   | x
  --------------|-----|--------

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string

2.62.6. hammer puppet-environment 更新

更新环境

Usage:
    hammer puppet-environment update [OPTIONS]

Options:
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Puppet environment name
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.63. hammer 域

操作域

Usage:
    hammer realm [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a realm
 delete, destroy               Delete a realm
 info, show                    Show a realm
 list, index                   List of realms
 update                        Update a realm

Options:
 -h, --help                    Print help

2.63.1. hammer realm create

创建一个 realm

Usage:
    hammer realm create [OPTIONS]

Options:
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               The realm name, e.g. EXAMPLE.COM
 --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       REPLACE organizations with given ids.
                                           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
 --realm-proxy-id REALM_PROXY_ID           Capsule ID to use within this realm
 --realm-type REALM_TYPE                   Realm type, e.g. Red Hat Identity Management or Active Directory
 -h, --help                                Print help

2.63.2. hammer realm delete

删除域

Usage:
    hammer realm <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.63.3. hammer 域信息

显示域

Usage:
    hammer realm <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Numerical ID or realm name
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Realm proxy id | x   | x       |
  Realm type     | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.63.4. hammer 域列表

域列表

Usage:
    hammer realm <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  type                string

2.63.5. hammer 域更新

更新域

Usage:
    hammer realm update [OPTIONS]

Options:
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               Name to search by
 --new-name NEW_NAME                       The realm name, e.g. EXAMPLE.COM
 --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       REPLACE organizations with given ids.
                                           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
 --realm-proxy-id REALM_PROXY_ID           Capsule ID to use within this realm
 --realm-type REALM_TYPE                   Realm type, e.g. Red Hat Identity Management or Active Directory
 -h, --help                                Print help

2.64. hammer 重复日志

与重复逻辑相关的操作

Usage:
    hammer recurring-logic [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 cancel                        Cancel recurring logic
 delete                        Delete all recuring logics filtered by the arguments
 info, show                    Show recurring logic details
 list, index                   List recurring logics

Options:
 -h, --help                    Print help

2.64.1. hammerduplicate-logic cancel

取消重复的逻辑

Usage:
    hammer recurring-logic cancel [OPTIONS]

Options:
 --id ID                                 ID of the recurring logic
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.64.2. hammer 重复删除

删除所有按参数过滤的递归逻辑

Usage:
    hammer recurring-logic delete [OPTIONS]

Options:
 --cancelled                   Only delete cancelled recurring logics
 --finished                    Only delete finished recurring logics
 -h, --help                    Print help

2.64.3. hammer 重复日志信息

显示重复的逻辑详情

Usage:
    hammer recurring-logic <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 ID of the recurring logic
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ----------------|-----|--------
  FIELDS          | ALL | DEFAULT
  ----------------|-----|--------
  Id              | x   | x
  Cron line       | x   | x
  Action          | x   | x
  Last occurrence | x   | x
  Next occurrence | x   | x
  Iteration       | x   | x
  Iteration limit | x   | x
  Repeat until    | x   | x
  State           | x   | x
  ----------------|-----|--------

2.64.4. hammer 重复日志列表

列出重复逻辑

Usage:
    hammer recurring-logic <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ----------|-----|--------
  FIELDS    | ALL | DEFAULT
  ----------|-----|--------
  Id        | x   | x
  Cron line | x   | x
  Iteration | x   | x
  End time  | x   | x
  State     | x   | x
  ----------|-----|--------

2.65. hammer remote-execution-feature

管理远程执行功能

Usage:
    hammer remote-execution-feature [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show remote execution feature
 list, index                   List remote execution features
 update                        Update a job template

Options:
 -h, --help                    Print help

2.65.1. hammer remote-execution-feature info

显示远程执行功能

Usage:
    hammer remote-execution-feature <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------------------|-----|---------|-----
  FIELDS            | ALL | DEFAULT | THIN
  ------------------|-----|---------|-----
  Id                | x   | x       | x
  Label             | x   | x       |
  Name              | x   | x       | x
  Description       | x   | x       |
  Job template name | x   | x       |
  Job template id   | x   | x       |
  ------------------|-----|---------|-----

2.65.2. hammer remote-execution-feature list

列出远程执行功能

Usage:
    hammer remote-execution-feature <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------------------|-----|---------|-----
  FIELDS            | ALL | DEFAULT | THIN
  ------------------|-----|---------|-----
  Id                | x   | x       | x
  Name              | x   | x       | x
  Description       | x   | x       |
  Job template name | x   | x       |
  ------------------|-----|---------|-----

2.65.3. hammer remote-execution-feature 更新

更新作业模板

Usage:
    hammer remote-execution-feature update [OPTIONS]

Options:
 --id ID
 --job-template JOB_TEMPLATE_NAME        Name to search by
 --job-template-id JOB_TEMPLATE_ID       Job template ID to be used for the feature
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.66. hammer 报告

浏览和读取报告

Usage:
    hammer report [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete, destroy               Delete a report
 info, show                    Show a report
 list, index                   List all reports

Options:
 -h, --help                    Print help

2.66.1. hammer report delete

删除报告

Usage:
    hammer report <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.66.2. hammer 报告信息

显示报告

Usage:
    hammer report <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  --------------------------------|-----|---------|-----
  FIELDS                          | ALL | DEFAULT | THIN
  --------------------------------|-----|---------|-----
  Id                              | x   | x       | x
  Host                            | x   | x       |
  Reported at                     | x   | x       |
  Origin                          | x   | x       |
  Report status/applied           | x   | x       |
  Report status/restarted         | x   | x       |
  Report status/failed            | x   | x       |
  Report status/restart failures  | x   | x       |
  Report status/skipped           | x   | x       |
  Report status/pending           | x   | x       |
  Report metrics/config_retrieval | x   | x       |
  Report metrics/exec             | x   | x       |
  Report metrics/file             | x   | x       |
  Report metrics/package          | x   | x       |
  Report metrics/service          | x   | x       |
  Report metrics/user             | x   | x       |
  Report metrics/yumrepo          | x   | x       |
  Report metrics/filebucket       | x   | x       |
  Report metrics/cron             | x   | x       |
  Report metrics/total            | x   | x       |
  Logs/resource                   | x   | x       |
  Logs/message                    | x   | x       |
  --------------------------------|-----|---------|-----

2.66.3. hammer 报告列表

列出所有报告

Usage:
    hammer report <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -----------------|-----|---------|-----
  FIELDS           | ALL | DEFAULT | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Host             | x   | x       |
  Last report      | x   | x       |
  Origin           | x   | x       |
  Applied          | x   | x       |
  Restarted        | x   | x       |
  Failed           | x   | x       |
  Restart failures | x   | x       |
  Skipped          | x   | x       |
  Pending          | x   | x       |
  -----------------|-----|---------|-----

Search / Order fields:
  applied             integer
  environment         string
  eventful            Values: true, false
  failed              integer
  failed_restarts     integer
  host                string
  host_id             integer
  hostgroup           string
  hostgroup_fullname  string
  hostgroup_title     string
  last_report         datetime
  location            string
  log                 text
  organization        string
  origin              string
  pending             integer
  reported            datetime
  resource            text
  restarted           integer
  skipped             integer

Search / Order fields:
  applied             integer
  environment         string
  eventful            Values: true, false
  failed              integer
  failed_restarts     integer
  host                string
  host_id             integer
  hostgroup           string
  hostgroup_fullname  string
  hostgroup_title     string
  last_report         datetime
  location            string
  log                 text
  organization        string
  origin              string
  pending             integer
  reported            datetime
  resource            text
  restarted           integer
  skipped             integer

2.67. hammer report-template

操作报告模板

Usage:
    hammer report-template [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 clone                         Clone a template
 create                        Create a report template
 delete, destroy               Delete a report template
 dump                          View report content
 generate                      Generate report
 import                        Import a report template
 info, show                    Show a report template
 list, index                   List all report templates
 report-data                   Downloads a generated report
 schedule                      Schedule generating of a report
 update                        Update a report template

Options:
 -h, --help                    Print help

2.67.1. hammer report-template 克隆

克隆模板

Usage:
    hammer report-template clone [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.67.2. hammer report-template create

创建报告模板

Usage:
    hammer report-template create [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --default DEFAULT                         Whether or not the template is added automatically to new organizations and locations
                                           One of true/false, yes/no, 1/0.
 --description DESCRIPTION
 --file LAYOUT                             Path to a file that contains the report template content
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME
 --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       REPLACE organizations with given ids.
                                           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
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 -h, --help                                Print help
 -i, --interactive                         Open empty template in an $EDITOR. Upload the result

2.67.3. hammer report-template delete

删除报告模板

Usage:
    hammer report-template <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.67.4. hammer report-template dump

查看报告内容

Usage:
    hammer report-template dump [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------
  FIELDS
  ------

2.67.5. hammer report-template generate

生成报告

Usage:
    hammer report-template generate [OPTIONS]

Options:
 --gzip GZIP                             Compress the report uzing gzip
                                         One of true/false, yes/no, 1/0.
 --id ID
 --inputs INPUTS                         Specify inputs
                                         Comma-separated list of key=value.
                                         JSON is acceptable and preferred way for complex parameters
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --path PATH                             Path to directory where downloaded content will be saved
 --report-format REPORT_FORMAT           Report format, defaults to 'csv'
                                         Possible value(s): 'csv', 'json', 'yaml', 'html'
 -h, --help                              Print help

2.67.6. hammer report-template import

导入报告模板

Usage:
    hammer report-template import [OPTIONS]

Options:
 --associate ASSOCIATE                     Determines when the template should associate objects based on metadata, new means only when new template is being created, always means both for new and existing template which is only being updated, never ignores metadata
                                           Possible value(s): 'new', 'always', 'never'
 --default DEFAULT                         Makes the template default meaning it will be automatically associated with newly created organizations and locations (false by default)
                                           One of true/false, yes/no, 1/0.
 --file PATH                               Path to a file that contains the report template content including metadata
 --force FORCE                             Use if you want update locked templates
                                           One of true/false, yes/no, 1/0.
 --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               REPLACE locations with given ids
                                           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
 --lock LOCK                               Lock imported templates (false by default)
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Template name
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.67.7. hammer report-template info

显示报告模板

Usage:
    hammer report-template <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ----------------------------|-----|---------|-----
  FIELDS                      | ALL | DEFAULT | THIN
  ----------------------------|-----|---------|-----
  Id                          | x   | x       | x
  Name                        | x   | x       | x
  Description                 | x   | x       |
  Locked                      | x   | x       |
  Default                     | x   | x       |
  Created at                  | x   | x       |
  Updated at                  | x   | x       |
  Locations/                  | x   | x       |
  Organizations/              | x   | x       |
  Template inputs/id          | x   | x       |
  Template inputs/name        | x   | x       |
  Template inputs/description | x   | x       |
  Template inputs/required    | x   | x       |
  Template inputs/options     | x   | x       |
  ----------------------------|-----|---------|-----

2.67.8. hammer report-template list

列出所有报告模板

Usage:
    hammer report-template <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  default             Values: true, false
  location            string
  location_id         integer
  locked              Values: true, false
  name                string
  organization        string
  organization_id     integer
  snippet             Values: true, false
  template            text

2.67.9. hammer report-template report-data

下载生成的报告

Usage:
    hammer report-template report-data [OPTIONS]

Options:
 --id ID
 --job-id JOB_ID                         ID assigned to generating job by the schedule command
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --path PATH                             Path to directory where downloaded content will be saved
 -h, --help                              Print help

2.67.10. hammer report-template 调度

计划生成报告的调度

Usage:
    hammer report-template schedule [OPTIONS]

Options:
 --generate-at GENERATE_AT               UTC time to generate report at
 --gzip GZIP                             Compress the report using gzip
                                         One of true/false, yes/no, 1/0.
 --id ID
 --inputs INPUTS                         Specify inputs
                                         Comma-separated list of key=value.
                                         JSON is acceptable and preferred way for complex parameters
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --mail-to MAIL_TO                       If set, scheduled report will be delivered via e-mail. Use ',' to separate multiple email addresses.
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --path PATH                             Path to directory where downloaded content will be saved. Only usable if wait is specified
 --report-format REPORT_FORMAT           Report format, defaults to 'csv'
                                         Possible value(s): 'csv', 'json', 'yaml', 'html'
 --wait                                  Turns a command to be active, wait for the result and download it right away
 -h, --help                              Print help

2.67.11. hammer report-template 更新

更新报告模板

Usage:
    hammer report-template update [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --default DEFAULT                         Whether or not the template is added automatically to new organizations and locations
                                           One of true/false, yes/no, 1/0.
 --description DESCRIPTION
 --file REPORT                             Path to a file that contains the report template content
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 -h, --help                                Print help
 -i, --interactive                         Dump existing template and open it in an $EDITOR. Update with the result

2.68. hammer 存储库

操作软件仓库

Usage:
    hammer repository [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a custom repository
 delete, destroy               Destroy a custom repository
 info, show                    Show a repository
 list, index                   List of enabled repositories
 remove-content                Remove content from a repository
 synchronize                   Sync a repository
 update                        Update a repository
 upload-content                Upload content into the repository

Options:
 -h, --help                    Print help

2.68.1. hammer 存储库创建

创建自定义软件仓库

Usage:
    hammer repository create [OPTIONS]

Options:
 --ansible-collection-auth-token ANSIBLE_COLLECTION_AUTH_TOKEN     The token key to use for authentication.
 --ansible-collection-auth-url ANSIBLE_COLLECTION_AUTH_URL         The URL to receive a session token from, e.g. used with Automation Hub.
 --ansible-collection-requirements ANSIBLE_COLLECTION_REQUIREMENTS Contents of requirement yaml file to sync from URL
 --ansible-collection-requirements-file REQUIREMENTS_FILE          Location of the ansible collections requirements.yml file.
 --arch ARCH                                                       Architecture of content in the repository
 --checksum-type CHECKSUM_TYPE                                     Checksum of the repository, currently 'sha1' & 'sha256' are supported
 --content-type CONTENT_TYPE                                       Type of repo
                                                                   Possible value(s): 'ansible_collection', 'docker', 'file', 'yum'
 --deb-architectures DEB_ARCHITECTURES                             Whitespace-separated list of architectures to be synced from deb-archive
 --deb-components DEB_COMPONENTS                                   Whitespace-separated list of repo components to be synced from deb-archive
 --deb-releases DEB_RELEASES                                       Whitespace-separated list of releases to be synced from deb-archive
 --description DESCRIPTION                                         Description of the repository
 --docker-tags-whitelist DOCKER_TAGS_WHITELIST                     Comma-separated list of tags to sync for Container Image repository
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --docker-upstream-name DOCKER_UPSTREAM_NAME                       Name of the upstream docker repository
 --download-concurrency DOWNLOAD_CONCURRENCY                       Used to determine download concurrency of the repository in pulp3. Use value less than 20. Defaults to 10
 --download-policy DOWNLOAD_POLICY                                 Download policy for yum repos (either 'immediate' or 'on_demand')
                                                                   Possible value(s): 'immediate', 'on_demand'
 --gpg-key-id GPG_KEY_ID                                           Id of the gpg key that will be assigned to the new repository
 --http-proxy HTTP_PROXY_NAME                                      Name to search by
 --http-proxy-id HTTP_PROXY_ID                                     ID of a HTTP Proxy
 --http-proxy-policy HTTP_PROXY_POLICY                             Policies for HTTP Proxy for content sync
                                                                   Possible value(s): 'global_default_http_proxy', 'none', 'use_selected_http_proxy'
 --ignorable-content IGNORABLE_CONTENT                             List of content units to ignore while syncing a yum repository. Must be subset of srpm
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --label LABEL
 --mirror-on-sync MIRROR_ON_SYNC                                   True if this repository when synced has to be mirrored from the source and stale rpms removed
                                                                   One of true/false, yes/no, 1/0.
 --name NAME                                                       Name of the repository
 --organization ORGANIZATION_NAME                                  Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL                           Organization label to search by
 --organization-title ORGANIZATION_TITLE                           Organization title
 --os-versions OS_VERSIONS                                         Identifies whether the repository should be disabled on a client with a non-matching OS version. Pass [] to enable regardless of OS version. Maximum length 1; allowed tags are: rhel-6, rhel-7, rhel-8
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --ostree-upstream-sync-depth OSTREE_UPSTREAM_SYNC_DEPTH           If a custom sync policy is chosen for ostree repositories then a 'depth' value must be provided
 --ostree-upstream-sync-policy OSTREE_UPSTREAM_SYNC_POLICY         Policies for syncing upstream ostree repositories
                                                                   Possible value(s): 'latest', 'all', 'custom'
 --product PRODUCT_NAME                                            Product name to search by
 --product-id PRODUCT_ID                                           Product the repository belongs to
 --publish-via-http ENABLE                                         Publish Via HTTP
                                                                   One of true/false, yes/no, 1/0.
 --ssl-ca-cert-id SSL_CA_CERT_ID                                   Identifier of the content credential containing the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID                           Identifier of the content credential containing the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID                             Identifier of the content credential containing the SSL Client Key
 --upstream-authentication-token UPSTREAM_AUTHENTICATION_TOKEN     Password of the upstream authentication token.
 --upstream-password UPSTREAM_PASSWORD                             Password of the upstream repository user used for authentication
 --upstream-username UPSTREAM_USERNAME                             Username of the upstream repository user used for authentication
 --url URL                                                         Repository source url
 --verify-ssl-on-sync VERIFY_SSL_ON_SYNC                           If true, Katello will verify the upstream url's SSL certifcates are signed by a trusted CA
                                                                   One of true/false, yes/no, 1/0.
 -h, --help                                                        Print help

2.68.2. hammer 存储库删除

销毁自定义软件仓库

Usage:
    hammer repository <delete|destroy> [OPTIONS]

Options:
 --id ID
 --name NAME                             Repository name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 -h, --help                              Print help

2.68.3. hammer 存储库信息

显示软件仓库

Usage:
    hammer repository <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Repository ID
 --name NAME                             Repository name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 -h, --help                              Print help

Predefined field sets:
  ----------------------------------------------|-----|---------|-----
  FIELDS                                        | ALL | DEFAULT | THIN
  ----------------------------------------------|-----|---------|-----
  Id                                            | x   | x       | x
  Name                                          | x   | x       | x
  Label                                         | x   | x       |
  Description                                   | x   | x       |
  Organization                                  | x   | x       |
  Red hat repository                            | x   | x       |
  Content type                                  | x   | x       |
  Checksum type                                 | x   | x       |
  Mirror on sync                                | x   | x       |
  Url                                           | x   | x       |
  Publish via http                              | x   | x       |
  Published at                                  | x   | x       |
  Relative path                                 | x   | x       |
  Download policy                               | x   | x       |
  Ostree upstream sync policy                   | x   | x       |
  Ostree upstream sync depth                    | x   | x       |
  Upstream repository name                      | x   | x       |
  Container image tags filter                   | x   | x       |
  Container repository name                     | x   | x       |
  Ignorable content units                       | x   | x       |
  Http proxy/id                                 | x   | x       |
  Http proxy/name                               | x   | x       |
  Http proxy/http proxy policy                  | x   | x       |
  Product/id                                    | x   | x       |
  Product/name                                  | x   | x       |
  Gpg key/id                                    | x   | x       |
  Gpg key/name                                  | x   | x       |
  Sync/status                                   | x   | x       |
  Sync/last sync date                           | x   | x       |
  Created                                       | x   | x       |
  Updated                                       | x   | x       |
  Content counts/packages                       | x   | x       |
  Content counts/source rpms                    | x   | x       |
  Content counts/package groups                 | x   | x       |
  Content counts/errata                         | x   | x       |
  Content counts/container image manifest lists | x   | x       |
  Content counts/container image manifests      | x   | x       |
  Content counts/container image tags           | x   | x       |
  Content counts/ostree branches                | x   | x       |
  Content counts/files                          | x   | x       |
  Content counts/module streams                 | x   | x       |
  ----------------------------------------------|-----|---------|-----

2.68.4. hammer 存储库列表

启用的存储库列表

Usage:
    hammer repository <list|index> [OPTIONS]

Options:
 --ansible-collection ANSIBLE_COLLECTION_NAME        Name to search by
 --ansible-collection-id ANSIBLE_COLLECTION_ID       Id of an ansible collection to find repositories that contain the ansible collection
 --archived ARCHIVED                                 Show archived repositories
                                                     One of true/false, yes/no, 1/0.
 --available-for AVAILABLE_FOR                       Interpret specified object to return only Repositories that can be associated with specified object.  Only 'content_view' & 'content_view_version' are supported.
 --content-type CONTENT_TYPE                         Limit to only repositories of this type
                                                     Possible value(s): 'ansible_collection', 'docker', 'file', 'yum'
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   ID of a content view to show repositories in
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   ID of a content view version to show repositories in
 --deb DEB_NAME                                      Name to search by
 --deb-id DEB_ID                                     Id of a deb package to find repositories that contain the deb
 --description DESCRIPTION                           Description of the repository
 --download-policy DOWNLOAD_POLICY                   Limit to only repositories with this download policy
                                                     Possible value(s): 'immediate', 'on_demand'
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --erratum-id ERRATUM_ID                             Id of an erratum to find repositories that contain the erratum
 --fields FIELDS                                     Show specified fields or predefined field 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
 --file-id FILE_ID                                   Id of a file to find repositories that contain the file
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --label LABEL                                       Label of the repository
 --library LIBRARY                                   Show repositories in Library and the default content view
                                                     One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name of the repository
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   ID of an organization to show repositories in
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --ostree-branch OSTREE_BRANCH_NAME                  Name to search by
 --ostree-branch-id OSTREE_BRANCH_ID                 Id of an ostree branch to find repositories that contain that branch
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --product PRODUCT_NAME                              Product name to search by
 --product-id PRODUCT_ID                             ID of a product to show repositories of
 --rpm-id RPM_ID                                     Id of a rpm package to find repositories that contain the rpm
 --search SEARCH                                     Search string
 --username USERNAME                                 Only show the repositories readable by this user with this username
 --with-content WITH_CONTENT                         Only repositories having at least one of the specified content type ex: rpm , erratum
                                                     Possible value(s): 'ansible collection', 'docker_manifest', 'docker_manifest_list', 'docker_tag', 'docker_blob', 'file', 'rpm', 'modulemd', 'erratum', 'distribution', 'package_category', 'package_group', 'yum_repo_metadata_file', 'srpm'
 -h, --help                                          Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Product      | x   | x       |
  Content type | x   | x       |
  Url          | x   | x       |
  -------------|-----|---------|-----

Search / Order fields:
  container_repository_name  string
  content_label              string
  content_type               string
  content_view_id            integer
  description                text
  distribution_arch          string
  distribution_bootable      boolean
  distribution_family        string
  distribution_variant       string
  distribution_version       string
  download_policy            string
  label                      string
  name                       string
  product                    string
  product_id                 integer
  product_name               string
  redhat                     Values: true, false

2.68.5. hammer 存储库 remove-content

从存储库中删除内容

Usage:
    hammer repository remove-content [OPTIONS]

Options:
 --content-type CONTENT_TYPE             Content type ('deb', 'docker_manifest', 'file', 'ostree', 'rpm', 'srpm')
                                         Possible value(s): 'docker_manifest', 'file', 'rpm', 'srpm'
 --id ID                                 Repository ID
 --ids IDS                               Array of content ids to remove
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --name NAME                             Repository name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID to search by
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 --sync-capsule SYNC_CAPSULE             Whether or not to sync an external capsule after upload. Default: true
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

2.68.6. hammer 存储库同步

同步存储库

Usage:
    hammer repository synchronize [OPTIONS]

Options:
 --async                                   Do not wait for the task
 --id ID                                   Repository ID
 --incremental INCREMENTAL                 Perform an incremental import
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Repository name to search by
 --organization ORGANIZATION_NAME          Organization name to search by
 --organization-id ORGANIZATION_ID         Organization ID
 --organization-label ORGANIZATION_LABEL   Organization label to search by
 --organization-title ORGANIZATION_TITLE   Organization title
 --product PRODUCT_NAME                    Product name to search by
 --product-id PRODUCT_ID                   Product numeric identifier
 --skip-metadata-check SKIP_METADATA_CHECK Force sync even if no upstream changes are detected. Only used with yum repositories.
                                           One of true/false, yes/no, 1/0.
 --source-url SOURCE_URL                   Temporarily override feed URL for sync
 --validate-contents VALIDATE_CONTENTS     Force a sync and validate the checksums of all content. Only used with yum repositories.
                                           One of true/false, yes/no, 1/0.
 -h, --help                                Print help

2.68.7. hammer 存储库更新

更新软件仓库

Usage:
    hammer repository update [OPTIONS]

Options:
 --ansible-collection-auth-token ANSIBLE_COLLECTION_AUTH_TOKEN     The token key to use for authentication.
 --ansible-collection-auth-url ANSIBLE_COLLECTION_AUTH_URL         The URL to receive a session token from, e.g. used with Automation Hub.
 --ansible-collection-requirements ANSIBLE_COLLECTION_REQUIREMENTS Contents of requirement yaml file to sync from URL
 --ansible-collection-requirements-file REQUIREMENTS_FILE          Location of the ansible collections requirements.yml file.
 --arch ARCH                                                       Architecture of content in the repository
 --checksum-type CHECKSUM_TYPE                                     Checksum of the repository, currently 'sha1' & 'sha256' are supported
 --deb-architectures DEB_ARCHITECTURES                             Whitespace-separated list of architectures to be synced from deb-archive
 --deb-components DEB_COMPONENTS                                   Whitespace-separated list of repo components to be synced from deb-archive
 --deb-releases DEB_RELEASES                                       Whitespace-separated list of releases to be synced from deb-archive
 --description DESCRIPTION                                         Description of the repository
 --docker-digest DIGEST                                            Container Image manifest digest
 --docker-tag TAG                                                  Container Image tag
 --docker-tags-whitelist DOCKER_TAGS_WHITELIST                     Comma-separated list of tags to sync for Container Image repository
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --docker-upstream-name DOCKER_UPSTREAM_NAME                       Name of the upstream docker repository
 --download-concurrency DOWNLOAD_CONCURRENCY                       Used to determine download concurrency of the repository in pulp3. Use value less than 20. Defaults to 10
 --download-policy DOWNLOAD_POLICY                                 Download policy for yum repos (either 'immediate' or 'on_demand')
                                                                   Possible value(s): 'immediate', 'on_demand'
 --gpg-key-id GPG_KEY_ID                                           Id of the gpg key that will be assigned to the new repository
 --http-proxy HTTP_PROXY_NAME                                      Name to search by
 --http-proxy-id HTTP_PROXY_ID                                     ID of a HTTP Proxy
 --http-proxy-policy HTTP_PROXY_POLICY                             Policies for HTTP Proxy for content sync
                                                                   Possible value(s): 'global_default_http_proxy', 'none', 'use_selected_http_proxy'
 --id ID                                                           Repository ID
 --ignorable-content IGNORABLE_CONTENT                             List of content units to ignore while syncing a yum repository. Must be subset of srpm
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --mirror-on-sync MIRROR_ON_SYNC                                   True if this repository when synced has to be mirrored from the source and stale rpms removed
                                                                   One of true/false, yes/no, 1/0.
 --name NAME                                                       Repository name to search by
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME                                  Organization name to search by
 --organization-id ORGANIZATION_ID                                 Organization ID to search by
 --organization-label ORGANIZATION_LABEL                           Organization label to search by
 --os-versions OS_VERSIONS                                         Identifies whether the repository should be disabled on a client with a non-matching OS version. Pass [] to enable regardless of OS version. Maximum length 1; allowed tags are: rhel-6, rhel-7, rhel-8
                                                                   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                                   JSON is acceptable and preferred way for complex parameters
 --ostree-upstream-sync-depth OSTREE_UPSTREAM_SYNC_DEPTH           If a custom sync policy is chosen for ostree repositories then a 'depth' value must be provided
 --ostree-upstream-sync-policy OSTREE_UPSTREAM_SYNC_POLICY         Policies for syncing upstream ostree repositories
                                                                   Possible value(s): 'latest', 'all', 'custom'
 --product PRODUCT_NAME                                            Product name to search by
 --product-id PRODUCT_ID                                           Product numeric identifier
 --publish-via-http ENABLE                                         Publish Via HTTP
                                                                   One of true/false, yes/no, 1/0.
 --ssl-ca-cert-id SSL_CA_CERT_ID                                   Identifier of the content credential containing the SSL CA Cert
 --ssl-client-cert-id SSL_CLIENT_CERT_ID                           Identifier of the content credential containing the SSL Client Cert
 --ssl-client-key-id SSL_CLIENT_KEY_ID                             Identifier of the content credential containing the SSL Client Key
 --upstream-authentication-token UPSTREAM_AUTHENTICATION_TOKEN     Password of the upstream authentication token.
 --upstream-password UPSTREAM_PASSWORD                             Password of the upstream repository user used for authentication
 --upstream-username UPSTREAM_USERNAME                             Username of the upstream repository user used for authentication
 --url URL                                                         Repository source url
 --verify-ssl-on-sync VERIFY_SSL_ON_SYNC                           If true, Katello will verify the upstream url's SSL certifcates are signed by a trusted CA
                                                                   One of true/false, yes/no, 1/0.
 -h, --help                                                        Print help

2.68.8. hammer 存储库 upload-content

将内容上传到存储库中

Usage:
    hammer repository upload-content [OPTIONS]

Options:
 --content-type CONTENT_TYPE             Content type ('deb', 'docker_manifest', 'file', 'ostree', 'rpm', 'srpm')
                                         Possible value(s): 'docker_manifest', 'file', 'rpm', 'srpm'
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Repository ID
 --name NAME                             Repository name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --path PATH                             Upload file, directory of files, or glob of files as content for a repository.
                                         Globs must be escaped by single or double quotes
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 Product numeric identifier
 -h, --help                              Print help

Predefined field sets:
  ------
  FIELDS
  ------

2.69. hammer repository-set

在服务器上操作存储库集

Usage:
    hammer repository-set [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 available-repositories        Get list of available repositories for the repository set
 disable                       Disable a repository from the set
 enable                        Enable a repository from the set
 info, show                    Get info about a repository set
 list, index                   List repository sets.

Options:
 -h, --help                    Print help

2.69.1. hammer repository-set available-repositories

获取存储库集合的可用存储库列表

Usage:
    hammer repository-set available-repositories [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 ID of the repository set
 --name NAME                             Repository set name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 ID of a product to list repository sets from
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|---------|-----
  FIELDS        | ALL | DEFAULT | THIN
  --------------|-----|---------|-----
  Name          | x   | x       | x
  Arch          | x   | x       |
  Release       | x   | x       |
  Registry name | x   | x       |
  Enabled       | x   | x       |
  --------------|-----|---------|-----

2.69.2. hammer repository-set disable

从集合中禁用存储库

Usage:
    hammer repository-set disable [OPTIONS]

Options:
 --basearch BASEARCH                     Basearch to disable
 --id ID                                 ID of the repository set to disable
 --name NAME                             Repository set name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 ID of the product containing the repository set
 --releasever RELEASEVER                 Releasever to disable
 -h, --help                              Print help

2.69.3. hammer repository-set enable

从集合中启用存储库

Usage:
    hammer repository-set enable [OPTIONS]

Options:
 --basearch BASEARCH                     Basearch to enable
 --id ID                                 ID of the repository set to enable
 --name NAME                             Repository set name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 ID of the product containing the repository set
 --releasever RELEASEVER                 Releasever to enable
 -h, --help                              Print help

2.69.4. hammer repository-set info

获取有关存储库集的信息

Usage:
    hammer repository-set <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 ID of the repository set
 --name NAME                             Repository set name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --product PRODUCT_NAME                  Product name to search by
 --product-id PRODUCT_ID                 ID of a product to list repository sets from
 -h, --help                              Print help

Predefined field sets:
  --------------------------|-----|---------|-----
  FIELDS                    | ALL | DEFAULT | THIN
  --------------------------|-----|---------|-----
  Id                        | x   | x       | x
  Name                      | x   | x       | x
  Type                      | x   | x       |
  Url                       | x   | x       |
  Gpg key                   | x   | x       |
  Label                     | x   | x       |
  Enabled repositories/id   | x   | x       |
  Enabled repositories/name | x   | x       |
  --------------------------|-----|---------|-----

2.69.5. hammer repository-set list

列出存储库集。

Usage:
    hammer repository-set <list|index> [OPTIONS]

Options:
 --activation-key ACTIVATION_KEY_NAME                Activation key name to search by
 --activation-key-id ACTIVATION_KEY_ID               Activation key identifier
 --content-access-mode-all CONTENT_ACCESS_MODE_ALL   Get all content available, not just that provided by subscriptions. Relevant for Activation Keys only
                                                     One of true/false, yes/no, 1/0.
 --content-access-mode-env CONTENT_ACCESS_MODE_ENV   Limit content to just that available in the activation key's content view version. Relevant for Activation Keys only
                                                     One of true/false, yes/no, 1/0.
 --enabled ENABLED                                   If true, only return repository sets that have been enabled. Defaults to false
                                                     One of true/false, yes/no, 1/0.
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --host HOST_NAME                                    Host name
 --host-id HOST_ID                                   Id of the host
 --name NAME                                         Repository set name to search on
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --product PRODUCT_NAME                              Product name to search by
 --product-id PRODUCT_ID                             ID of a product to list repository sets from
 --search SEARCH                                     Search string
 --with-active-subscription WITH_ACTIVE_SUBSCRIPTION If true, only return repository sets that are associated with an active subscriptions
                                                     One of true/false, yes/no, 1/0.
 --with-custom WITH_CUSTOM                           If true, return custom repository sets along with redhat repos
                                                     One of true/false, yes/no, 1/0.
 -h, --help                                          Print help

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

Search / Order fields:
  content_label       string
  content_type        string
  enabled_by_default  Values: true, false
  label               string
  name                string
  path                string
  product_id          integer
  product_name        string

2.70. hammer 角色

管理用户角色

Usage:
    hammer role [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 clone                         Clone a role
 create                        Create a role
 delete, destroy               Delete a role
 filters                       List all filters
 info, show                    Show a role
 list, index                   List all roles
 update                        Update a role

Options:
 -h, --help                    Print help

2.70.1. hammer 角色克隆

克隆角色

Usage:
    hammer role clone [OPTIONS]

Options:
 --description DESCRIPTION                 Role description
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               User role name
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.70.2. hammer 角色创建

创建角色

Usage:
    hammer role create [OPTIONS]

Options:
 --description DESCRIPTION                 Role description
 --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               REPLACE locations with given ids
                                           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
 --name NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.70.3. hammer 角色删除

删除角色

Usage:
    hammer role <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             User role name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.70.4. hammer 角色过滤器

列出所有过滤器

Usage:
    hammer role filters [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 User role id
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             User role name
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 -h, --help                              Print help

Predefined field sets:
  --------------|-----|---------|-----
  FIELDS        | ALL | DEFAULT | THIN
  --------------|-----|---------|-----
  Id            | x   | x       | x
  Resource type | x   | x       |
  Search        | x   | x       |
  Unlimited?    | x   | x       |
  Override?     | x   | x       |
  Role          | x   | x       |
  Permissions   | x   | x       |
  --------------|-----|---------|-----

2.70.5. hammer 角色信息

显示角色

Usage:
    hammer role <info|show> [OPTIONS]

Options:
 --description DESCRIPTION
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             User role name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Builtin        | x   | x       |
  Description    | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  ---------------|-----|---------|-----

2.70.6. hammer 角色列表

列出所有角色

Usage:
    hammer role <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  builtin             Values: true, false
  description         text
  name                string
  permission          string

2.70.7. hammer 角色更新

更新角色

Usage:
    hammer role update [OPTIONS]

Options:
 --description DESCRIPTION                 Role description
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --name NAME                               User role name
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.71. hammer sc-param

操作智能类参数

Usage:
    hammer sc-param [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-matcher                   Create an override value for a specific smart class parameter
 info, show                    Show a smart class parameter
 list, index                   List all smart class parameters
 remove-matcher                Delete an override value for a specific smart class parameter
 update                        Update a smart class parameter

Options:
 -h, --help                    Print help

2.71.1. hammer sc-param add-matcher

为特定 smart class 参数创建覆盖值

Usage:
    hammer sc-param add-matcher [OPTIONS]

Options:
 --location LOCATION_NAME                            Set the current location context for the request
 --location-id LOCATION_ID                           Set the current location context for the request
 --location-title LOCATION_TITLE                     Set the current location context for the request
 --match MATCH                                       Override match
 --omit OMIT                                         Satellite will not send this parameter in classification output
                                                     One of true/false, yes/no, 1/0.
 --organization ORGANIZATION_NAME                    Set the current organization context for the request
 --organization-id ORGANIZATION_ID                   Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE             Set the current organization context for the request
 --puppet-class PUPPET_CLASS_NAME                    Puppet class name
 --puppet-class-id PUPPET_CLASS_ID                   ID of Puppet class
 --smart-class-parameter SMART_CLASS_PARAMETER_NAME  Smart class parameter name
 --smart-class-parameter-id SMART_CLASS_PARAMETER_ID
 --value VALUE                                       Override value, required if omit is false
 -h, --help                                          Print help

2.71.2. hammer sc-param info

显示智能类参数

Usage:
    hammer sc-param <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Smart class parameter name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --puppet-class PUPPET_CLASS_NAME        Puppet class name
 --puppet-class-id PUPPET_CLASS_ID       ID of Puppet class
 --show-hidden SHOW_HIDDEN               Display hidden values
                                         One of true/false, yes/no, 1/0.
 -h, --help                              Print help

Predefined field sets:
  ------------------------------------|-----|--------
  FIELDS                              | ALL | DEFAULT
  ------------------------------------|-----|--------
  Id                                  | x   | x
  Parameter                           | x   | x
  Default value                       | x   | x
  Override                            | x   | x
  Puppet class                        | x   | x
  Class id                            | x   | x
  Description                         | x   | x
  Type                                | x   | x
  Hidden value?                       | x   | x
  Omit                                | x   | x
  Required                            | x   | x
  Validator/type                      | x   | x
  Validator/rule                      | x   | x
  Override values/merge overrides     | x   | x
  Override values/merge default value | x   | x
  Override values/avoid duplicates    | x   | x
  Override values/order               | x   | x
  Override values/values/id           | x   | x
  Override values/values/match        | x   | x
  Override values/values/value        | x   | x
  Override values/values/omit         | x   | x
  Environments/                       | x   | x
  Created at                          | x   | x
  Updated at                          | x   | x
  ------------------------------------|-----|--------

2.71.3. hammer sc-param list

列出所有智能类参数

Usage:
    hammer sc-param <list|index> [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                               Show specified fields or predefined field 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
 --host HOST_NAME                              Host name
 --host-id HOST_ID
 --hostgroup HOSTGROUP_NAME                    Hostgroup name
 --hostgroup-id HOSTGROUP_ID
 --hostgroup-title HOSTGROUP_TITLE             Hostgroup title
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --order ORDER                                 Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --page PAGE                                   Page number, starting at 1
 --per-page PER_PAGE                           Number of results per page to return, 'all' to return all results
 --puppet-class PUPPET_CLASS_NAME              Puppet class name
 --puppet-class-id PUPPET_CLASS_ID
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 --search SEARCH                               Filter results
 --show-hidden SHOW_HIDDEN                     Display hidden values
                                               One of true/false, yes/no, 1/0.
 -h, --help                                    Print help

Predefined field sets:
  --------------|-----|--------
  FIELDS        | ALL | DEFAULT
  --------------|-----|--------
  Id            | x   | x
  Parameter     | x   | x
  Default value | x   | x
  Override      | x   | x
  Puppet class  | x   | x
  Class id      | x   | x
  --------------|-----|--------

Search / Order fields:
  avoid_duplicates    Values: true, false
  environment         string
  key                 string
  merge_default       Values: true, false
  merge_overrides     Values: true, false
  override            Values: true, false
  parameter           string
  puppetclass         string
  puppetclass_name    string

2.71.4. hammer sc-param remove-matcher

删除特定智能类参数的覆盖值

Usage:
    hammer sc-param remove-matcher [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                            Set the current location context for the request
 --location-id LOCATION_ID                           Set the current location context for the request
 --location-title LOCATION_TITLE                     Set the current location context for the request
 --organization ORGANIZATION_NAME                    Set the current organization context for the request
 --organization-id ORGANIZATION_ID                   Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE             Set the current organization context for the request
 --puppet-class PUPPET_CLASS_NAME                    Puppet class name
 --puppet-class-id PUPPET_CLASS_ID                   ID of Puppet class
 --smart-class-parameter SMART_CLASS_PARAMETER_NAME  Smart class parameter name
 --smart-class-parameter-id SMART_CLASS_PARAMETER_ID
 -h, --help                                          Print help

2.71.5. hammer sc-param update

更新智能类参数

Usage:
    hammer sc-param update [OPTIONS]

Options:
 --avoid-duplicates AVOID_DUPLICATES         Remove duplicate values (only array type)
                                             One of true/false, yes/no, 1/0.
 --default-value VALUE                       Value to use when there is no match
 --description DESCRIPTION                   Description of smart class
 --hidden-value HIDDEN_VALUE                 When enabled the parameter is hidden in the UI
                                             One of true/false, yes/no, 1/0.
 --id ID
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --merge-default MERGE_DEFAULT               Include default value when merging all matching values
                                             One of true/false, yes/no, 1/0.
 --merge-overrides MERGE_OVERRIDES           Merge all matching values (only array/hash type)
                                             One of true/false, yes/no, 1/0.
 --name NAME                                 Smart class parameter name
 --omit OMIT                                 Satellite will not send this parameter in classification output. Puppet will use the value defined in the Puppet manifest for this parameter
                                             One of true/false, yes/no, 1/0.
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --override OVERRIDE                         Override this parameter
                                             One of true/false, yes/no, 1/0.
 --override-value-order OVERRIDE_VALUE_ORDER The order in which values are resolved
                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --parameter-type PARAMETER_TYPE             Type of the parameter
                                             Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
 --path PATH                                 The order in which values are resolved
 --puppet-class PUPPET_CLASS_NAME            Puppet class name
 --puppet-class-id PUPPET_CLASS_ID           ID of Puppet class
 --required REQUIRED                         This parameter is required
                                             One of true/false, yes/no, 1/0.
 --validator-rule VALIDATOR_RULE             Used to enforce certain values for the parameter values
 --validator-type VALIDATOR_TYPE             Type of the validator
                                             Possible value(s): 'regexp', 'list', ''
 -h, --help                                  Print help

2.72. hammer scap-content

操作 SCAP 内容

Usage:
    hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 bulk-upload                   Upload scap contents in bulk
 create                        Create SCAP content
 delete, destroy               Deletes an SCAP content
 download                      Download an SCAP content as XML
 info, show                    Show an SCAP content
 list, index                   List SCAP contents
 update                        Update an SCAP content

Options:
 -h, --help                    Print help

2.72.1. hammer scap-content bulk-upload

批量上传 scap 内容

Usage:
    hammer scap-content bulk-upload [OPTIONS]

Options:
 --directory DIRECTORY             Directory to upload when using “directory” upload type
 --files FILES                     File paths to upload when using “files” upload type
                                   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 LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --type TYPE                       Type of the upload
                                   Possible value(s): 'files', 'directory', 'default'
 -h, --help                        Print help

2.72.2. hammer scap-content create

创建 SCAP 内容

Usage:
    hammer scap-content create [OPTIONS]

Options:
 --location LOCATION_NAME              Name to search by
 --location-id LOCATION_ID             Set the current location context for the request
 --location-ids LOCATION_IDS           REPLACE locations with given ids
                                       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
 --organization ORGANIZATION_NAME      Name to search by
 --organization-id ORGANIZATION_ID     Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS   REPLACE organizations with given ids.
                                       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
 --original-filename ORIGINAL_FILENAME Original file name of the XML file
 --scap-file SCAP_FILE                 SCAP content file
 --title TITLE                         SCAP content name
 -h, --help                            Print help

2.72.3. hammer scap-content delete

删除 SCAP 内容

Usage:
    hammer scap-content <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --title TITLE                     SCAP content title
 -h, --help                        Print help

2.72.4. hammer scap-content download

下载 SCAP 内容作为 XML

Usage:
    hammer scap-content download [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --path PATH                       Path to directory where downloaded file will be saved
 --title TITLE                     SCAP content title
 -h, --help                        Print help

2.72.5. hammer scap-content info

显示 SCAP 内容

Usage:
    hammer scap-content <info|show> [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --title TITLE                     SCAP content title
 -h, --help                        Print help

Predefined field sets:
  ---------------------------------|-----|---------|-----
  FIELDS                           | ALL | DEFAULT | THIN
  ---------------------------------|-----|---------|-----
  Id                               | x   | x       | x
  Title                            | x   | x       | x
  Digest                           | x   | x       |
  Created at                       | x   | x       |
  Original filename                | x   | x       |
  Scap content profiles/id         | x   | x       |
  Scap content profiles/profile id | x   | x       |
  Scap content profiles/title      | x   | x       |
  Locations/                       | x   | x       |
  Organizations/                   | x   | x       |
  ---------------------------------|-----|---------|-----

2.72.6. hammer scap-content list

列出 SCAP 内容

Usage:
    hammer scap-content <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -------|-----|---------|-----
  FIELDS | ALL | DEFAULT | THIN
  -------|-----|---------|-----
  Id     | x   | x       | x
  Title  | x   | x       | x
  Digest | x   | x       |
  -------|-----|---------|-----

Search / Order fields:
  created_at          datetime
  filename            string
  location            string
  location_id         integer
  organization        string
  organization_id     integer
  title               string

2.72.7. hammer scap-content update

更新 SCAP 内容

Usage:
    hammer scap-content update [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME              Name to search by
 --location-id LOCATION_ID             Set the current location context for the request
 --location-ids LOCATION_IDS           REPLACE locations with given ids
                                       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
 --new-title NEW_TITLE                 SCAP content name
 --organization ORGANIZATION_NAME      Name to search by
 --organization-id ORGANIZATION_ID     Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS   REPLACE organizations with given ids.
                                       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
 --original-filename ORIGINAL_FILENAME Original file name of the XML file
 --scap-file SCAP_FILE                 SCAP content file
 --title TITLE                         SCAP content title
 -h, --help                            Print help

2.73. hammer scap-content-profile

操作 Scap 内容配置集

Usage:
    hammer scap-content-profile [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 list, index                   List SCAP content profiles

Options:
 -h, --help                    Print help

2.73.1. hammer scap-content-profile list

列出 SCAP 内容配置集

Usage:
    hammer scap-content-profile <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  --------------------|-----|---------|-----
  FIELDS              | ALL | DEFAULT | THIN
  --------------------|-----|---------|-----
  Id                  | x   | x       | x
  Title               | x   | x       |
  Profile id          | x   | x       |
  Scap content id     | x   | x       |
  Scap content title  | x   | x       |
  Tailoring file id   | x   | x       |
  Tailoring file name | x   | x       | x
  --------------------|-----|---------|-----

Search / Order fields:
  profile_id          string
  title               string

2.74. hammer 设置

更改服务器设置

Usage:
    hammer settings [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show a setting
 list, index                   List all settings
 set                           Update a setting

Options:
 -h, --help                    Print help

2.74.1. hammer 设置信息

显示设置

Usage:
    hammer settings <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID
 --name NAME                   Setting name
 -h, --help                    Print help

Predefined field sets:
  --------------|-----|---------|-----
  FIELDS        | ALL | DEFAULT | THIN
  --------------|-----|---------|-----
  Id            | x   | x       | x
  Name          | x   | x       | x
  Description   | x   | x       |
  Category      | x   | x       |
  Settings type | x   | x       |
  Value         | x   | x       |
  --------------|-----|---------|-----

2.74.2. hammer 设置列表

列出所有设置

Usage:
    hammer settings <list|index> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --order ORDER                 Sort field and order, eg. ‘id DESC’
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return, 'all' to return all results
 --search SEARCH               Filter results
 -h, --help                    Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Full name   | x   | x       |
  Value       | x   | x       |
  Description | x   | x       |
  ------------|-----|---------|-----

Search / Order fields:
  description         text
  name                string

2.74.3. hammer 设置集

更新设置

Usage:
    hammer settings set [OPTIONS]

Options:
 --id ID
 --name NAME                   Setting name
 --value VALUE
 -h, --help                    Print help

2.75. hammer shell

交互式 shell

Usage:
    hammer shell [OPTIONS]

Options:
 -h, --help                    Print help

2.76. hammer simple-content-access

简单内容访问命令

Usage:
    hammer simple-content-access [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 disable                       Disable simple content access for a manifest
 enable                        Enable simple content access for a manifest

Options:
 -h, --help                    Print help



Unfortunately the server does not support such operation.

2.76.1. hammer simple-content-access disable

禁用清单的简单内容访问

Usage:
    hammer simple-content-access disable [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.76.2. hammer simple-content-access enable

为清单启用简单的内容访问

Usage:
    hammer simple-content-access enable [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.77. srpm

操作源 RPM

Usage:
    hammer srpm [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show SRPM details
 list, index                   List srpms

Options:
 -h, --help                    Print help

2.77.1. srpm 信息

显示 SRPM 详情

Usage:
    hammer srpm <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 SRPM details identifier
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository REPOSITORY_NAME            Repository name to search by
 --repository-id REPOSITORY_ID           Repository identifier
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Version      | x   | x       |
  Architecture | x   | x       |
  Epoch        | x   | x       |
  Release      | x   | x       |
  Filename     | x   | x       |
  Description  | x   | x       |
  -------------|-----|---------|-----

2.77.2. srpm 列表

列出 srpms

Usage:
    hammer srpm <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content View Version identifier
 --fields FIELDS                                     Show specified fields or predefined field 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
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --product PRODUCT_NAME                              Product name to search by
 --product-id PRODUCT_ID                             Product numeric identifier
 --repository REPOSITORY_NAME                        Repository name to search by
 --repository-id REPOSITORY_ID                       Repository identifier
 --search SEARCH                                     Search string
 -h, --help                                          Print help

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

2.78. hammer 状态

获取服务器的完整状态,和/或它的子组件

Usage:
    hammer status [OPTIONS] [SUBCOMMAND] [ARG] ...

Parameters:
 [ARG] ...                     Subcommand arguments
 [SUBCOMMAND]                  Subcommand (default: "foreman")

Subcommands:
 foreman                       Shows status and version information of Satellite system and it's subcomponents
 katello                       Shows version information

Options:
 -h, --help                    Print help

2.78.1. hammer 状态 foreman

显示 Satellite 系统的状态和版本信息,以及它的子组件

Usage:
    hammer status foreman [OPTIONS]

Options:
 -h, --help                    Print help

2.78.2. hammer 状态 katello

显示版本信息

Usage:
    hammer status katello [OPTIONS]

Options:
 -h, --help                    Print help

2.79. hammer 子网

操作子网

Usage:
    hammer subnet [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a subnet
 delete, destroy               Delete a subnet
 delete-parameter              Delete parameter for a subnet
 info, show                    Show a subnet
 list, index                   List of subnets
 set-parameter                 Create or update parameter for a subnet
 update                        Update a subnet

Options:
 -h, --help                    Print help

2.79.1. hammer 子网创建

创建子网

Usage:
    hammer subnet create [OPTIONS]

Options:
 --bmc-id BMC_ID                                         BMC Capsule ID to use within this subnet
 --boot-mode BOOT_MODE                                   Default boot mode for interfaces assigned to this subnet.
                                                         Possible value(s): 'Static', 'DHCP'
 --description DESCRIPTION                               Subnet description
 --dhcp DHCP_NAME                                        DHCP Proxy to use within this subnet
 --dhcp-id DHCP_ID                                       DHCP Capsule ID to use within this subnet
 --discovery-id DISCOVERY_ID                             ID of Discovery Capsule to use within this subnet for managing connection to discovered hosts
 --dns DNS_NAME                                          DNS Proxy to use within this subnet
 --dns-id DNS_ID                                         DNS Capsule ID to use within this subnet
 --dns-primary DNS_PRIMARY                               Primary DNS for this subnet
 --dns-secondary DNS_SECONDARY                           Secondary DNS for this subnet
 --domain-ids DOMAIN_IDS                                 Domains in which this subnet is part
                                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                         JSON is acceptable and preferred way for complex parameters
 --domains DOMAIN_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
 --externalipam-group EXTERNALIPAM_GROUP                 External IPAM group - only relevant when IPAM is set to external
 --externalipam-id EXTERNALIPAM_ID                       External IPAM Capsule ID to use within this subnet
 --from FROM                                             Starting IP Address for IP auto suggestion
 --gateway GATEWAY                                       Subnet gateway
 --httpboot-id HTTPBOOT_ID                               HTTPBoot Capsule ID to use within this subnet
 --ipam IPAM                                             IP Address auto suggestion mode for this subnet.
                                                         Possible value(s): 'DHCP', 'Internal DB', 'Random DB', 'EUI-64', 'External IPAM', 'None'
 --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                             REPLACE locations with given ids
                                                         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
 --mask MASK                                             Netmask for this subnet
 --mtu MTU                                               MTU for this subnet
 --name NAME                                             Subnet name
 --network NETWORK                                       Subnet network
 --network-type NETWORK_TYPE                             Type or protocol, IPv4 or IPv6, defaults to IPv4
                                                         Possible value(s): 'IPv4', 'IPv6'
 --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                     REPLACE organizations with given ids.
                                                         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
 --prefix PREFIX                                         Network prefix in CIDR notation (e.g. 64) for this subnet
 --remote-execution-proxy-ids REMOTE_EXECUTION_PROXY_IDS List of Capsule IDs to be used for remote execution
                                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                         JSON is acceptable and preferred way for complex parameters
 --template-id TEMPLATE_ID                               Template HTTP(S) Capsule ID to use within this subnet
 --tftp TFTP_NAME                                        TFTP Proxy to use within this subnet
 --tftp-id TFTP_ID                                       TFTP Capsule ID to use within this subnet
 --to TO                                                 Ending IP Address for IP auto suggestion
 --vlanid VLANID                                         VLAN ID for this subnet
 -h, --help                                              Print help

2.79.2. hammer 子网删除

删除子网

Usage:
    hammer subnet <delete|destroy> [OPTIONS]

Options:
 --id ID                                 Subnet numeric identifier
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Subnet name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.79.3. hammer 子网 delete-parameter

子网的 delete 参数

Usage:
    hammer subnet delete-parameter [OPTIONS]

Options:
 --name NAME                   Parameter name
 --subnet SUBNET_NAME          Subnet name
 --subnet-id SUBNET_ID
 -h, --help                    Print help

2.79.4. hammer 子网信息

显示子网

Usage:
    hammer subnet <info|show> [OPTIONS]

Options:
 --fields FIELDS                                 Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                        Set the current location context for the request
 --location-id LOCATION_ID                       Set the current location context for the request
 --location-title LOCATION_TITLE                 Set the current location context for the request
 --name NAME                                     Subnet name
 --organization ORGANIZATION_NAME                Set the current organization context for the request
 --organization-id ORGANIZATION_ID               Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE         Set the current organization context for the request
 --show-hidden-parameters SHOW_HIDDEN_PARAMETERS Display hidden parameter values
                                                 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
  Description                   | x   | x       |
  Protocol                      | x   | x       |
  Priority                      | x   | x       |
  Network addr                  | x   | x       |
  Network prefix                | x   | x       |
  Network mask                  | x   | x       |
  Gateway addr                  | x   | x       |
  Primary dns                   | x   | x       |
  Secondary dns                 | x   | x       |
  Smart proxies/dns             | x   | x       |
  Smart proxies/tftp            | x   | x       |
  Smart proxies/dhcp            | x   | x       |
  Remote execution proxies/id   | x   | x       |
  Remote execution proxies/name | x   | x       |
  Ipam                          | x   | x       |
  Start of ip range             | x   | x       |
  End of ip range               | x   | x       |
  Vlan id                       | x   | x       |
  Mtu                           | x   | x       |
  Boot mode                     | x   | x       |
  Domains/                      | x   | x       |
  Locations/                    | x   | x       |
  Organizations/                | x   | x       |
  Parameters/                   | x   | x       |
  ------------------------------|-----|---------|-----

2.79.5. hammer 子网列表

子网列表

Usage:
    hammer subnet <list|index> [OPTIONS]

Options:
 --domain DOMAIN_NAME                    Domain name
 --domain-id DOMAIN_ID                   ID of domain
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ----------------|-----|---------|-----
  FIELDS          | ALL | DEFAULT | THIN
  ----------------|-----|---------|-----
  Id              | x   | x       | x
  Name            | x   | x       | x
  Network addr    | x   | x       |
  Network prefix  | x   | x       |
  Network mask    | x   | x       |
  Vlan id         | x   | x       |
  Boot mode       | x   | x       |
  Gateway address | x   | x       |
  ----------------|-----|---------|-----

Search / Order fields:
  boot_mode           string
  dns_primary         string
  dns_secondary       string
  domain              string
  gateway             string
  ipam                string
  location            string
  location_id         integer
  mask                string
  mtu                 integer
  name                text
  network             string
  nic_delay           integer
  organization        string
  organization_id     integer
  params              string
  type                string
  vlanid              integer

2.79.6. hammer 子网 set-parameter

为子网创建或更新参数

Usage:
    hammer subnet set-parameter [OPTIONS]

Options:
 --hidden-value HIDDEN_VALUE     Should the value be hidden
                                 One of true/false, yes/no, 1/0.
 --name NAME                     Parameter name
 --parameter-type PARAMETER_TYPE Type of the parameter
                                 Possible value(s): 'string', 'boolean', 'integer', 'real', 'array', 'hash', 'yaml', 'json'
                                 Default: "string"
 --subnet SUBNET_NAME            Subnet name
 --subnet-id SUBNET_ID
 --value VALUE                   Parameter value
 -h, --help                      Print help

2.79.7. hammer 子网更新

更新子网

Usage:
    hammer subnet update [OPTIONS]

Options:
 --bmc-id BMC_ID                                         BMC Capsule ID to use within this subnet
 --boot-mode BOOT_MODE                                   Default boot mode for interfaces assigned to this subnet.
                                                         Possible value(s): 'Static', 'DHCP'
 --description DESCRIPTION                               Subnet description
 --dhcp DHCP_NAME                                        DHCP Proxy to use within this subnet
 --dhcp-id DHCP_ID                                       DHCP Capsule ID to use within this subnet
 --discovery-id DISCOVERY_ID                             ID of Discovery Capsule to use within this subnet for managing connection to discovered hosts
 --dns DNS_NAME                                          DNS Proxy to use within this subnet
 --dns-id DNS_ID                                         DNS Capsule ID to use within this subnet
 --dns-primary DNS_PRIMARY                               Primary DNS for this subnet
 --dns-secondary DNS_SECONDARY                           Secondary DNS for this subnet
 --domain-ids DOMAIN_IDS                                 Domains in which this subnet is part
                                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                         JSON is acceptable and preferred way for complex parameters
 --domains DOMAIN_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
 --externalipam-group EXTERNALIPAM_GROUP                 External IPAM group - only relevant when IPAM is set to external
 --externalipam-id EXTERNALIPAM_ID                       External IPAM Capsule ID to use within this subnet
 --from FROM                                             Starting IP Address for IP auto suggestion
 --gateway GATEWAY                                       Subnet gateway
 --httpboot-id HTTPBOOT_ID                               HTTPBoot Capsule ID to use within this subnet
 --id ID                                                 Subnet numeric identifier
 --ipam IPAM                                             IP Address auto suggestion mode for this subnet.
                                                         Possible value(s): 'DHCP', 'Internal DB', 'Random DB', 'EUI-64', 'External IPAM', 'None'
 --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                             REPLACE locations with given ids
                                                         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
 --mask MASK                                             Netmask for this subnet
 --mtu MTU                                               MTU for this subnet
 --name NAME                                             Subnet name
 --network NETWORK                                       Subnet network
 --network-type NETWORK_TYPE                             Type or protocol, IPv4 or IPv6, defaults to IPv4
                                                         Possible value(s): 'IPv4', 'IPv6'
 --new-name NEW_NAME                                     Subnet name
 --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                     REPLACE organizations with given ids.
                                                         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
 --prefix PREFIX                                         Network prefix in CIDR notation (e.g. 64) for this subnet
 --remote-execution-proxy-ids REMOTE_EXECUTION_PROXY_IDS List of Capsule IDs to be used for remote execution
                                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                         JSON is acceptable and preferred way for complex parameters
 --template-id TEMPLATE_ID                               Template HTTP(S) Capsule ID to use within this subnet
 --tftp TFTP_NAME                                        TFTP Proxy to use within this subnet
 --tftp-id TFTP_ID                                       TFTP Capsule ID to use within this subnet
 --to TO                                                 Ending IP Address for IP auto suggestion
 --vlanid VLANID                                         VLAN ID for this subnet
 -h, --help                                              Print help

2.80. hammer 订阅

操作订阅

Usage:
    hammer subscription [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 delete-manifest               Delete manifest from Red Hat provider
 list, index                   List organization subscriptions
 manifest-history              Obtain manifest history for subscriptions
 refresh-manifest              Refresh previously imported manifest for Red Hat provider
 upload                        Upload a subscription manifest

Options:
 -h, --help                    Print help

2.80.1. hammer 订阅 delete-manifest

从红帽供应商中删除清单

Usage:
    hammer subscription delete-manifest [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization id
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.80.2. hammer 订阅列表

列出机构订阅

Usage:
    hammer subscription <list|index> [OPTIONS]

Options:
 --activation-key ACTIVATION_KEY_NAME    Activation key name to search by
 --activation-key-id ACTIVATION_KEY_ID   Activation key ID
 --available-for AVAILABLE_FOR           Object to show subscriptions available for, either 'host' or 'activation_key'
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --host HOST_NAME                        Host name
 --host-id HOST_ID                       Id of a host
 --match-host MATCH_HOST                 Ignore subscriptions that are unavailable to the specified host
                                         One of true/false, yes/no, 1/0.
 --match-installed MATCH_INSTALLED       Return subscriptions that match installed products of the specified host
                                         One of true/false, yes/no, 1/0.
 --name NAME                             Name of the subscription
 --no-overlap NO_OVERLAP                 Return subscriptions which do not overlap with a currently-attached subscription
                                         One of true/false, yes/no, 1/0.
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 -h, --help                              Print help

Predefined field sets:
  -----------|-----|--------
  FIELDS     | ALL | DEFAULT
  -----------|-----|--------
  Id         | x   | x
  Uuid       | x   | x
  Name       | x   | x
  Type       | x   | x
  Contract   | x   | x
  Account    | x   | x
  Support    | x   | x
  Start date | x   | x
  End date   | x   | x
  Quantity   | x   | x
  Consumed   | x   | x
  -----------|-----|--------

2.80.3. hammer 订阅清单

获取订阅的清单历史记录

Usage:
    hammer subscription manifest-history [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|--------
  FIELDS         | ALL | DEFAULT
  ---------------|-----|--------
  Status         | x   | x
  Status message | x   | x
  Time           | x   | x
  ---------------|-----|--------

2.80.4. hammer 订阅 refresh-manifest

刷新之前为红帽供应商导入的清单

Usage:
    hammer subscription refresh-manifest [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization id
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.80.5. hammer 订阅上传

上传订阅清单

Usage:
    hammer subscription upload [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --file MANIFEST                         Subscription manifest file
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization id
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --repository-url REPOSITORY_URL         Repository url
 -h, --help                              Print help

2.81. hammer sync-plan

操作同步计划

Usage:
    hammer sync-plan [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a sync plan
 delete, destroy               Destroy a sync plan
 info, show                    Show a sync plan
 list, index                   List sync plans
 update                        Update a sync plan

Options:
 -h, --help                    Print help

2.81.1. hammer sync-plan create

创建同步计划

Usage:
    hammer sync-plan create [OPTIONS]

Options:
 --cron-expression CRON EXPRESSION       Set this when interval is custom cron
 --description DESCRIPTION               Sync plan description
 --enabled ENABLED                       Enables or disables synchronization
                                         One of true/false, yes/no, 1/0.
 --interval INTERVAL                     How often synchronization should run
 --name NAME                             Sync plan name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --sync-date SYNC_DATE                   Start date and time for the sync plan.Time is optional, if kept blank current system time will be considered
                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 -h, --help                              Print help

2.81.2. hammer sync-plan delete

销毁一个迁移计划

Usage:
    hammer sync-plan <delete|destroy> [OPTIONS]

Options:
 --id ID                                 Sync plan numeric identifier
 --name NAME                             Sync plan name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.81.3. hammer sync-plan info

显示同步计划

Usage:
    hammer sync-plan <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 Sync plan numeric identifier
 --name NAME                             Sync plan name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       | x
  Name               | x   | x       | x
  Start date         | x   | x       |
  Interval           | x   | x       |
  Enabled            | x   | x       |
  Cron expression    | x   | x       |
  Recurring logic id | x   | x       |
  Description        | x   | x       |
  Created at         | x   | x       |
  Updated at         | x   | x       |
  Next sync          | x   | x       |
  Products/id        | x   | x       |
  Products/name      | x   | x       |
  -------------------|-----|---------|-----

2.81.4. hammer sync-plan list

列出同步计划

Usage:
    hammer sync-plan <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --full-result FULL_RESULT               Whether or not to show all results
                                         One of true/false, yes/no, 1/0.
 --interval INTERVAL                     Filter by interval
                                         Possible value(s): 'hourly', 'daily', 'weekly', 'custom cron'
 --name NAME                             Filter by name
 --order ORDER                           Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return
 --search SEARCH                         Search string
 --sync-date SYNC_DATE                   Filter by sync date
 -h, --help                              Print help

Predefined field sets:
  -------------------|-----|---------|-----
  FIELDS             | ALL | DEFAULT | THIN
  -------------------|-----|---------|-----
  Id                 | x   | x       | x
  Name               | x   | x       | x
  Start date         | x   | x       |
  Interval           | x   | x       |
  Enabled            | x   | x       |
  Cron expression    | x   | x       |
  Recurring logic id | x   | x       |
  -------------------|-----|---------|-----

Search / Order fields:
  enabled             Values: true, false
  interval            string
  name                string
  organization_id     integer

2.81.5. hammer 同步计划更新

更新同步计划

Usage:
    hammer sync-plan update [OPTIONS]

Options:
 --cron-expression CRON_EXPRESSION       Add custom cron logic for sync plan
 --description DESCRIPTION               Sync plan description
 --enabled ENABLED                       Enables or disables synchronization
                                         One of true/false, yes/no, 1/0.
 --id ID                                 Sync plan numeric identifier
 --interval INTERVAL                     How often synchronization should run
 --name NAME                             Sync plan name to search by
 --new-name NEW_NAME                     Sync plan name
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --sync-date SYNC_DATE                   Start date and time of the synchronization
                                         Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
 -h, --help                              Print help

2.82. hammer tailoring-file

操作 Tailoring 文件

Usage:
    hammer tailoring-file [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a Tailoring file
 delete, destroy               Deletes a Tailoring file
 download                      Download a Tailoring file as XML
 info, show                    Show a Tailoring file
 list, index                   List Tailoring files
 update                        Update a Tailoring file

Options:
 -h, --help                    Print help

2.82.1. hammer tailoring-file create

创建 Tailoring 文件

Usage:
    hammer tailoring-file create [OPTIONS]

Options:
 --location LOCATION_NAME              Name to search by
 --location-id LOCATION_ID             Set the current location context for the request
 --location-ids LOCATION_IDS           REPLACE locations with given ids
                                       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
 --name NAME                           Tailoring file name
 --organization ORGANIZATION_NAME      Name to search by
 --organization-id ORGANIZATION_ID     Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS   REPLACE organizations with given ids.
                                       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
 --original-filename ORIGINAL_FILENAME Original file name of the XML file
 --scap-file SCAP_FILE                 Tailoring file content
 -h, --help                            Print help

2.82.2. hammer tailoring-file delete

删除 Tailoring 文件

Usage:
    hammer tailoring-file <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.82.3. hammer tailoring-file 下载

下载 Tailoring 文件作为 XML

Usage:
    hammer tailoring-file download [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --name NAME                       Tailoring file name
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --path PATH                       Path to directory where downloaded file will be saved
 -h, --help                        Print help

2.82.4. hammer tailoring-file info

显示 Tailoring 文件

Usage:
    hammer tailoring-file <info|show> [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME          Name to search by
 --location-id LOCATION_ID         Set the current location context for the request
 --name NAME                       Tailoring file name
 --organization ORGANIZATION_NAME  Name to search by
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 -h, --help                        Print help

Predefined field sets:
  -----------------------------------|-----|---------|-----
  FIELDS                             | ALL | DEFAULT | THIN
  -----------------------------------|-----|---------|-----
  Id                                 | x   | x       | x
  Name                               | x   | x       | x
  Created at                         | x   | x       |
  Original filename                  | x   | x       |
  Tailoring file profiles/id         | x   | x       |
  Tailoring file profiles/profile id | x   | x       |
  Tailoring file profiles/title      | x   | x       |
  Locations/                         | x   | x       |
  Organizations/                     | x   | x       |
  -----------------------------------|-----|---------|-----

2.82.5. hammer tailoring-file 列表

列出 Tailoring 文件

Usage:
    hammer tailoring-file <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  created_at          datetime
  filename            string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer

2.82.6. hammer tailoring-file 更新

更新 Tailoring 文件

Usage:
    hammer tailoring-file update [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME              Name to search by
 --location-id LOCATION_ID             Set the current location context for the request
 --location-ids LOCATION_IDS           REPLACE locations with given ids
                                       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
 --name NAME                           Tailoring file name
 --new-name NEW_NAME                   Tailoring file name
 --organization ORGANIZATION_NAME      Name to search by
 --organization-id ORGANIZATION_ID     Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS   REPLACE organizations with given ids.
                                       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
 --original-filename ORIGINAL_FILENAME Original file name of the XML file
 --scap-file SCAP_FILE                 Tailoring file content
 -h, --help                            Print help

2.83. hammer 任务

相关任务。

Usage:
    hammer task [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 info, show                    Show task details
 list, index                   List tasks
 progress                      Show the progress of the task
 resume                        Resume all tasks paused in error state

Options:
 -h, --help                    Print help

2.83.1. hammer 任务信息

显示任务详情

Usage:
    hammer task <info|show> [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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
 --id ID                           UUID of the task
 --location-id LOCATION_ID         Set the current location context for the request
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 -h, --help                        Print help

Predefined field sets:
  ------------|-----|--------
  FIELDS      | ALL | DEFAULT
  ------------|-----|--------
  Id          | x   | x
  Action      | x   | x
  State       | x   | x
  Result      | x   | x
  Started at  | x   | x
  Ended at    | x   | x
  Owner       | x   | x
  Task errors | x   | x
  ------------|-----|--------

2.83.2. hammer 任务列表

列出任务

Usage:
    hammer task <list|index> [OPTIONS]

Options:
 --fields FIELDS                   Show specified fields or predefined field 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
 --location-id LOCATION_ID         Set the current location context for the request
 --order ORDER                     Sort field and order, eg. ‘id DESC’
 --organization-id ORGANIZATION_ID Set the current organization context for the request
 --page PAGE                       Page number, starting at 1
 --parent-task-id PARENT_TASK_ID   UUID of the task
 --per-page PER_PAGE               Number of results per page to return, 'all' to return all results
 --search SEARCH                   Filter results
 -h, --help                        Print help

Predefined field sets:
  ------------|-----|--------
  FIELDS      | ALL | DEFAULT
  ------------|-----|--------
  Id          | x   | x
  Action      | x   | x
  State       | x   | x
  Result      | x   | x
  Started at  | x   | x
  Ended at    | x   | x
  Owner       | x   | x
  Task errors | x   | x
  ------------|-----|--------

2.83.3. hammer 任务进度

显示任务的进度

Usage:
    hammer task progress [OPTIONS]

Options:
 --id ID                                 UUID of the task
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.83.4. hammer 任务恢复

恢复处于错误状态的所有任务

Usage:
    hammer task resume [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --search SEARCH                         Resume tasks matching search string
 --task-ids TASK_IDS                     Resume specific tasks by ID
                                         Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                         JSON is acceptable and preferred way for complex parameters
 --tasks TASK_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
 -h, --help                              Print help

Predefined field sets:
  ----------------------------------------|-----|--------
  FIELDS                                  | ALL | DEFAULT
  ----------------------------------------|-----|--------
  Total tasks found paused in error state | x   | x
  Total tasks resumed                     | x   | x
  Resumed tasks/task identifier           | x   | x
  Resumed tasks/task action               | x   | x
  Resumed tasks/task errors               | x   | x
  Total tasks failed to resume            | x   | x
  Failed tasks/task identifier            | x   | x
  Failed tasks/task action                | x   | x
  Failed tasks/task errors                | x   | x
  Total tasks skipped                     | x   | x
  Skipped tasks/task identifier           | x   | x
  Skipped tasks/task action               | x   | x
  Skipped tasks/task errors               | x   | x
  ----------------------------------------|-----|--------

2.84. hammer 模板

操作置备模板

Usage:
    hammer template [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-operatingsystem           Associate an operating system
 build-pxe-default             Update the default PXE menu on all configured TFTP servers
 clone                         Clone a provision template
 combination                   Manage template combinations
 create                        Create a provisioning template
 delete, destroy               Delete a provisioning template
 dump                          View provisioning template content
 info, show                    Show provisioning template details
 kinds                         List available provisioning template kinds
 list, index                   List provisioning templates
 remove-operatingsystem        Disassociate an operating system
 update                        Update a provisioning template

Options:
 -h, --help                    Print help

2.84.1. hammer 模板附加组件系统

关联操作系统

Usage:
    hammer template add-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Name to search by
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.84.2. hammer 模板 build-pxe-default

更新所有配置的 TFTP 服务器中的默认 PXE 菜单

Usage:
    hammer template build-pxe-default [OPTIONS]

Options:
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.84.3. hammer 模板克隆

克隆置备模板

Usage:
    hammer template clone [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --new-name NEW_NAME                     Template name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.84.4. hammer 模板组合

管理模板组合

Usage:
    hammer template combination [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Add a template combination
 delete, destroy               Delete a template combination
 info, show                    Show template combination
 list, index                   List template combination
 update                        Update template combination

Options:
 -h, --help                    Print help
2.84.4.1. hammer 模板组合创建

添加模板组合

Usage:
    hammer template combination create [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --hostgroup HOSTGROUP_NAME                          Hostgroup name
 --hostgroup-id HOSTGROUP_ID                         ID of host group
 --hostgroup-title HOSTGROUP_TITLE                   Hostgroup title
 --location LOCATION_NAME                            Set the current location context for the request
 --location-id LOCATION_ID                           Set the current location context for the request
 --location-title LOCATION_TITLE                     Set the current location context for the request
 --organization ORGANIZATION_NAME                    Set the current organization context for the request
 --organization-id ORGANIZATION_ID                   Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE             Set the current organization context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME  Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID ID of config template
 --puppet-environment PUPPET_ENVIRONMENT_NAME        Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                          Print help
2.84.4.2. hammer 模板组合删除

删除模板组合

Usage:
    hammer template combination <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
2.84.4.3. hammer 模板组合信息

显示模板组合

Usage:
    hammer template combination <info|show> [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --fields FIELDS                                     Show specified fields or predefined field 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                         ID of host group
 --hostgroup-title HOSTGROUP_TITLE                   Hostgroup title
 --id ID
 --location LOCATION_NAME                            Set the current location context for the request
 --location-id LOCATION_ID                           Set the current location context for the request
 --location-title LOCATION_TITLE                     Set the current location context for the request
 --organization ORGANIZATION_NAME                    Set the current organization context for the request
 --organization-id ORGANIZATION_ID                   Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE             Set the current organization context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME  Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID ID of config template
 --puppet-environment PUPPET_ENVIRONMENT_NAME        Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                          Print help

Predefined field sets:
  ---------------------------|-----|---------|-----
  FIELDS                     | ALL | DEFAULT | THIN
  ---------------------------|-----|---------|-----
  Id                         | x   | x       | x
  Provisioning template id   | x   | x       |
  Provisioning template name | x   | x       |
  Hostgroup id               | x   | x       |
  Hostgroup name             | x   | x       |
  Environment id             | x   | x       |
  Environment name           | x   | x       |
  Locations/                 | x   | x       |
  Organizations/             | x   | x       |
  Created at                 | x   | x       |
  Updated at                 | x   | x       |
  ---------------------------|-----|---------|-----
2.84.4.4. hammer 模板组合列表

列出模板组合

Usage:
    hammer template combination <list|index> [OPTIONS]

Options:
 --fields FIELDS                                     Show specified fields or predefined field 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
 --location LOCATION_NAME                            Set the current location context for the request
 --location-id LOCATION_ID                           Set the current location context for the request
 --location-title LOCATION_TITLE                     Set the current location context for the request
 --organization ORGANIZATION_NAME                    Set the current organization context for the request
 --organization-id ORGANIZATION_ID                   Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE             Set the current organization context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME  Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID ID of config template
 -h, --help                                          Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Provisioning template | x   | x       |
  Hostgroup             | x   | x       |
  Environment           | x   | x       |
  ----------------------|-----|---------|-----
2.84.4.5. hammer 模板组合更新

更新模板组合

Usage:
    hammer template combination update [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --hostgroup HOSTGROUP_NAME                          Hostgroup name
 --hostgroup-id HOSTGROUP_ID                         ID of host group
 --hostgroup-title HOSTGROUP_TITLE                   Hostgroup title
 --id ID
 --location LOCATION_NAME                            Set the current location context for the request
 --location-id LOCATION_ID                           Set the current location context for the request
 --location-title LOCATION_TITLE                     Set the current location context for the request
 --organization ORGANIZATION_NAME                    Set the current organization context for the request
 --organization-id ORGANIZATION_ID                   Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE             Set the current organization context for the request
 --provisioning-template PROVISIONING_TEMPLATE_NAME  Name to search by
 --provisioning-template-id PROVISIONING_TEMPLATE_ID ID of config template
 --puppet-environment PUPPET_ENVIRONMENT_NAME        Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                          Print help

2.84.5. hammer 模板创建

创建置备模板

Usage:
    hammer template create [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --description DESCRIPTION
 --file TEMPLATE                           Path to a file that contains the template
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Template name
 --operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs to associate with the template
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 --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       REPLACE organizations with given ids.
                                           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
 --type TYPE                               Template type. Eg. snippet, script, provision
 -h, --help                                Print help

2.84.6. hammer 模板删除

删除置备模板

Usage:
    hammer template <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.84.7. hammer 模板转储

查看置备模板内容

Usage:
    hammer template dump [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------
  FIELDS
  ------

2.84.8. hammer 模板信息

显示置备模板详情

Usage:
    hammer template <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ---------------------------------------|-----|---------|-----
  FIELDS                                 | ALL | DEFAULT | THIN
  ---------------------------------------|-----|---------|-----
  Id                                     | x   | x       | x
  Name                                   | x   | x       | x
  Type                                   | x   | x       |
  Description                            | x   | x       |
  Locked                                 | x   | x       |
  Operating systems/                     | x   | x       |
  Locations/                             | x   | x       |
  Organizations/                         | x   | x       |
  Template combinations/hostgroup name   | x   | x       |
  Template combinations/environment name | x   | x       |
  ---------------------------------------|-----|---------|-----

2.84.9. hammer 模板类型

列出可用的置备模板类型

Usage:
    hammer template kinds [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 -h, --help                    Print help

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

2.84.10. hammer 模板列表

列出置备模板

Usage:
    hammer template <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Scope by locations
 --location-title LOCATION_TITLE         Set the current location context for the request
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID ID of operating system
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Scope by organizations
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  default_template    Values: true, false
  environment         string
  hostgroup           string
  kind                string
  location            string
  location_id         integer
  locked              Values: true, false
  name                string
  operatingsystem     string
  organization        string
  organization_id     integer
  snippet             Values: true, false
  template            text
  vendor              string

2.84.11. hammer 模板 remove-operatingsystem

解除操作系统关联

Usage:
    hammer template remove-operatingsystem [OPTIONS]

Options:
 --id ID
 --name NAME                             Name to search by
 --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
 --operatingsystem-id OPERATINGSYSTEM_ID
 -h, --help                              Print help

2.84.12. hammer 模板更新

更新置备模板

Usage:
    hammer template update [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --description DESCRIPTION
 --file TEMPLATE                           Path to a file that contains the template
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Name to search by
 --new-name NEW_NAME                       Template name
 --operatingsystem-ids OPERATINGSYSTEM_IDS Array of operating system IDs to associate with the template
                                           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --operatingsystems OPERATINGSYSTEM_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
 --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       REPLACE organizations with given ids.
                                           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
 --type TYPE                               Template type. Eg. snippet, script, provision
 -h, --help                                Print help

2.85. hammer template-input

管理模板输入

Usage:
    hammer template-input [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a template input
 delete, destroy               Delete a template input
 info, show                    Show template input details
 list, index                   List template inputs
 update                        Update a template input

Options:
 -h, --help                    Print help

2.85.1. hammer template-input create

创建模板输入

Usage:
    hammer template-input create [OPTIONS]

Options:
 --advanced ADVANCED                           Input is advanced
                                               One of true/false, yes/no, 1/0.
 --default DEFAULT                             Default value for user input
 --description DESCRIPTION                     Input description
 --fact-name FACT_NAME                         Fact name, used when input type is Fact value
 --hidden-value HIDDEN_VALUE                   The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords
                                               One of true/false, yes/no, 1/0.
 --input-type INPUT_TYPE                       Input type
                                               Possible value(s): 'user', 'fact', 'variable', 'puppet_parameter'
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --name NAME                                   Input name
 --options OPTIONS                             Selectable values for user inputs
                                               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 ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --puppet-class-name PUPPET_CLASS_NAME         Puppet class name, used when input type is Puppet parameter
 --puppet-parameter-name PUPPET_PARAMETER_NAME Puppet parameter name, used when input type is Puppet parameter
 --required REQUIRED                           Input is required
                                               One of true/false, yes/no, 1/0.
 --resource-type RESOURCE_TYPE                 For values of type search, this is the resource the value searches in
                                               Possible value(s): 'AnsibleRole', 'AnsibleVariable', 'Architecture', 'Audit', 'AuthSource', 'Bookmark', 'ComputeProfile', 'ComputeResource', 'ConfigGroup', 'ConfigReport', 'DiscoveryRule', 'Domain', 'Environment', 'ExternalUsergroup', 'FactValue', 'Filter', 'ForemanOpenscap::ArfReport', 'ForemanOpenscap::OvalContent', 'ForemanOpenscap::OvalPolicy', 'ForemanOpenscap::Policy', 'ForemanOpenscap::ScapContent', 'ForemanOpenscap::TailoringFile', 'ForemanTasks::RecurringLogic', 'ForemanTasks::Task', 'ForemanVirtWhoConfigure::Config', 'Host', 'HostClass', 'Hostgroup', 'HttpProxy', 'Image', 'InsightsHit', 'JobInvocation', 'JobTemplate', 'Katello::ActivationKey', 'Katello::ContentView', 'Katello::GpgKey', 'Katello::HostCollection', 'Katello::KTEnvironment', 'Katello::Product', 'Katello::Subscription', 'Katello::SyncPlan', 'KeyPair', 'Location', 'MailNotification', 'Medium', 'Model', 'Operatingsystem', 'Organization', 'Parameter', 'PersonalAccessToken', 'ProvisioningTemplate', 'Ptable', 'Puppetclass', 'PuppetclassLookupKey', 'Realm', 'RemoteExecutionFeature', 'Report', 'ReportTemplate', 'Role', 'Setting', 'SmartProxy', 'SshKey', 'Subnet', 'Template', 'TemplateInvocation', 'User', 'Usergroup', 'Webhook', 'WebhookTemplate'
 --template-id TEMPLATE_ID
 --value-type VALUE_TYPE                       Value type, defaults to plain
                                               Possible value(s): 'plain', 'search', 'date'
 --variable-name VARIABLE_NAME                 Variable name, used when input type is Variable
 -h, --help                                    Print help

2.85.2. hammer template-input delete

删除模板输入

Usage:
    hammer template-input <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --template-id TEMPLATE_ID
 -h, --help                              Print help

2.85.3. hammer template-input info

显示模板输入详情

Usage:
    hammer template-input <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --template-id TEMPLATE_ID
 -h, --help                              Print help

Predefined field sets:
  ----------------------|-----|---------|-----
  FIELDS                | ALL | DEFAULT | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Name                  | x   | x       | x
  Input type            | x   | x       |
  Fact name             | x   | x       |
  Variable name         | x   | x       |
  Puppet parameter name | x   | x       |
  Options               | x   | x       |
  Default value         | x   | x       |
  ----------------------|-----|---------|-----

2.85.4. hammer template-input list

列出模板输入

Usage:
    hammer template-input <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --template-id TEMPLATE_ID
 -h, --help                              Print help

Predefined field sets:
  -----------|-----|---------|-----
  FIELDS     | ALL | DEFAULT | THIN
  -----------|-----|---------|-----
  Id         | x   | x       | x
  Name       | x   | x       | x
  Input type | x   | x       |
  -----------|-----|---------|-----

Search / Order fields:
  input_type          string
  name                string

2.85.5. hammer 模板输入更新

更新模板输入

Usage:
    hammer template-input update [OPTIONS]

Options:
 --advanced ADVANCED                           Input is advanced
                                               One of true/false, yes/no, 1/0.
 --default DEFAULT                             Default value for user input
 --description DESCRIPTION                     Input description
 --fact-name FACT_NAME                         Fact name, used when input type is Fact value
 --hidden-value HIDDEN_VALUE                   The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords
                                               One of true/false, yes/no, 1/0.
 --id ID
 --input-type INPUT_TYPE                       Input type
                                               Possible value(s): 'user', 'fact', 'variable', 'puppet_parameter'
 --location LOCATION_NAME                      Set the current location context for the request
 --location-id LOCATION_ID                     Set the current location context for the request
 --location-title LOCATION_TITLE               Set the current location context for the request
 --name NAME                                   Name to search by
 --new-name NEW_NAME                           Input name
 --options OPTIONS                             Selectable values for user inputs
                                               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 ORGANIZATION_NAME              Set the current organization context for the request
 --organization-id ORGANIZATION_ID             Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE       Set the current organization context for the request
 --puppet-class-name PUPPET_CLASS_NAME         Puppet class name, used when input type is Puppet parameter
 --puppet-parameter-name PUPPET_PARAMETER_NAME Puppet parameter name, used when input type is Puppet parameter
 --required REQUIRED                           Input is required
                                               One of true/false, yes/no, 1/0.
 --resource-type RESOURCE_TYPE                 For values of type search, this is the resource the value searches in
                                               Possible value(s): 'AnsibleRole', 'AnsibleVariable', 'Architecture', 'Audit', 'AuthSource', 'Bookmark', 'ComputeProfile', 'ComputeResource', 'ConfigGroup', 'ConfigReport', 'DiscoveryRule', 'Domain', 'Environment', 'ExternalUsergroup', 'FactValue', 'Filter', 'ForemanOpenscap::ArfReport', 'ForemanOpenscap::OvalContent', 'ForemanOpenscap::OvalPolicy', 'ForemanOpenscap::Policy', 'ForemanOpenscap::ScapContent', 'ForemanOpenscap::TailoringFile', 'ForemanTasks::RecurringLogic', 'ForemanTasks::Task', 'ForemanVirtWhoConfigure::Config', 'Host', 'HostClass', 'Hostgroup', 'HttpProxy', 'Image', 'InsightsHit', 'JobInvocation', 'JobTemplate', 'Katello::ActivationKey', 'Katello::ContentView', 'Katello::GpgKey', 'Katello::HostCollection', 'Katello::KTEnvironment', 'Katello::Product', 'Katello::Subscription', 'Katello::SyncPlan', 'KeyPair', 'Location', 'MailNotification', 'Medium', 'Model', 'Operatingsystem', 'Organization', 'Parameter', 'PersonalAccessToken', 'ProvisioningTemplate', 'Ptable', 'Puppetclass', 'PuppetclassLookupKey', 'Realm', 'RemoteExecutionFeature', 'Report', 'ReportTemplate', 'Role', 'Setting', 'SmartProxy', 'SshKey', 'Subnet', 'Template', 'TemplateInvocation', 'User', 'Usergroup', 'Webhook', 'WebhookTemplate'
 --template-id TEMPLATE_ID
 --value-type VALUE_TYPE                       Value type, defaults to plain
                                               Possible value(s): 'plain', 'search', 'date'
 --variable-name VARIABLE_NAME                 Variable name, used when input type is Variable
 -h, --help                                    Print help

2.86. hammer 用户

操作用户

Usage:
    hammer user [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 access-token                  Managing personal access tokens
 add-role                      Assign a user role
 create                        Create a user
 delete, destroy               Delete a user
 info, show                    Show a user
 list, index                   List all users
 mail-notification             Managing personal mail notifications
 remove-role                   Remove a user role
 ssh-keys                      Managing User SSH Keys.
 update                        Update a user

Options:
 -h, --help                    Print help

2.86.1. hammer 用户 access-token

管理个人访问令牌

Usage:
    hammer user access-token [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a Personal Access Token for a user
 info, show                    Show a Personal Access Token for a user
 list, index                   List all Personal Access Tokens for a user
 revoke                        Revoke a Personal Access Token for a user

Options:
 -h, --help                    Print help
2.86.1.1. hammer 用户 access-token create

为用户创建个人访问令牌

Usage:
    hammer user access-token create [OPTIONS]

Options:
 --expires-at EXPIRES_AT                 Expiry Date
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help
2.86.1.2. hammer 用户 access-token 信息

显示用户的个人访问令牌

Usage:
    hammer user access-token <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Active       | x   | x       |
  Expires at   | x   | x       |
  Created at   | x   | x       |
  Last used at | x   | x       |
  -------------|-----|---------|-----
2.86.1.3. hammer 用户 access-token 列表

列出用户的所有个人访问令牌

Usage:
    hammer user access-token <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help

Predefined field sets:
  -----------|-----|---------|-----
  FIELDS     | ALL | DEFAULT | THIN
  -----------|-----|---------|-----
  Id         | x   | x       | x
  Name       | x   | x       | x
  Active     | x   | x       |
  Expires at | x   | x       |
  -----------|-----|---------|-----

Search / Order fields:
  name                string
  user_id             integer
2.86.1.4. hammer 用户 access-token 撤销

为用户撤销个人访问令牌

Usage:
    hammer user access-token revoke [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help

2.86.2. hammer 用户 add-role

分配用户角色

Usage:
    hammer user add-role [OPTIONS]

Options:
 --id ID
 --login LOGIN                 User's login to search by
 --role ROLE_NAME              User role name
 --role-id ROLE_ID
 -h, --help                    Print help

2.86.3. hammer 用户创建

创建用户

Usage:
    hammer user create [OPTIONS]

Options:
 --admin ADMIN                                     Is an admin account
                                                   One of true/false, yes/no, 1/0.
 --ask-password ASK_PW                             One of true/false, yes/no, 1/0.
 --auth-source AUTH_SOURCE_NAME                    Name to search by
 --auth-source-id AUTH_SOURCE_ID
 --default-location DEFAULT_LOCATION_NAME          Default location name
 --default-location-id DEFAULT_LOCATION_ID
 --default-organization DEFAULT_ORGANIZATION_NAME  Default organization name
 --default-organization-id DEFAULT_ORGANIZATION_ID
 --description DESCRIPTION
 --disabled DISABLED                               One of true/false, yes/no, 1/0.
 --firstname FIRSTNAME
 --lastname LASTNAME
 --locale LOCALE                                   User's preferred locale
                                                   Possible value(s): 'ca', 'cs_CZ', 'de', 'en', 'en_GB', 'es', 'fr', 'gl', 'it', 'ja', 'ko', 'nl_NL', 'pl', 'pt_BR', 'ru', 'sv_SE', 'zh_CN', 'zh_TW'
 --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                       REPLACE locations with given ids
                                                   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
 --login LOGIN
 --mail MAIL
 --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               REPLACE organizations with given ids.
                                                   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
 --password PASSWORD                               Required unless user is in an external authentication source
 --role-ids ROLE_IDS                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                   JSON is acceptable and preferred way for complex parameters
 --roles ROLE_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
 --timezone TIMEZONE                               User's timezone
                                                   Possible value(s): 'International Date Line West', 'American Samoa', 'Midway Island', 'Hawaii', 'Alaska', 'Pacific Time (US & Canada)', 'Tijuana', 'Arizona', 'Chihuahua', 'Mazatlan', 'Mountain Time (US & Canada)', 'Central America', 'Central Time (US & Canada)', 'Guadalajara', 'Mexico City', 'Monterrey', 'Saskatchewan', 'Bogota', 'Eastern Time (US & Canada)', 'Indiana (East)', 'Lima', 'Quito', 'Atlantic Time (Canada)', 'Caracas', 'Georgetown', 'La Paz', 'Puerto Rico', 'Santiago', 'Newfoundland', 'Brasilia', 'Buenos Aires', 'Greenland', 'Montevideo', 'Mid-Atlantic', 'Azores', 'Cape Verde Is.', 'Casablanca', 'Dublin', 'Edinburgh', 'Lisbon', 'London', 'Monrovia', 'UTC', 'Amsterdam', 'Belgrade', 'Berlin', 'Bern', 'Bratislava', 'Brussels', 'Budapest', 'Copenhagen', 'Ljubljana', 'Madrid', 'Paris', 'Prague', 'Rome', 'Sarajevo', 'Skopje', 'Stockholm', 'Vienna', 'Warsaw', 'West Central Africa', 'Zagreb', 'Zurich', 'Athens', 'Bucharest', 'Cairo', 'Harare', 'Helsinki', 'Jerusalem', 'Kaliningrad', 'Kyiv', 'Pretoria', 'Riga', 'Sofia', 'Tallinn', 'Vilnius', 'Baghdad', 'Istanbul', 'Kuwait', 'Minsk', 'Moscow', 'Nairobi', 'Riyadh', 'St. Petersburg', 'Volgograd', 'Tehran', 'Abu Dhabi', 'Baku', 'Muscat', 'Samara', 'Tbilisi', 'Yerevan', 'Kabul', 'Ekaterinburg', 'Islamabad', 'Karachi', 'Tashkent', 'Chennai', 'Kolkata', 'Mumbai', 'New Delhi', 'Sri Jayawardenepura', 'Kathmandu', 'Almaty', 'Astana', 'Dhaka', 'Urumqi', 'Rangoon', 'Bangkok', 'Hanoi', 'Jakarta', 'Krasnoyarsk', 'Novosibirsk', 'Beijing', 'Chongqing', 'Hong Kong', 'Irkutsk', 'Kuala Lumpur', 'Perth', 'Singapore', 'Taipei', 'Ulaanbaatar', 'Osaka', 'Sapporo', 'Seoul', 'Tokyo', 'Yakutsk', 'Adelaide', 'Darwin', 'Brisbane', 'Canberra', 'Guam', 'Hobart', 'Melbourne', 'Port Moresby', 'Sydney', 'Vladivostok', 'Magadan', 'New Caledonia', 'Solomon Is.', 'Srednekolymsk', 'Auckland', 'Fiji', 'Kamchatka', 'Marshall Is.', 'Wellington', 'Chatham Is.', 'Nuku'alofa', 'Samoa', 'Tokelau Is.'
 -h, --help                                        Print help

2.86.4. hammer 用户删除

删除用户

Usage:
    hammer user <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --login LOGIN                           User's login to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.86.5. hammer 用户信息

显示用户

Usage:
    hammer user <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --login LOGIN                           User's login to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  --------------------------------|-----|---------|-----
  FIELDS                          | ALL | DEFAULT | THIN
  --------------------------------|-----|---------|-----
  Id                              | x   | x       | x
  Login                           | x   | x       | x
  Name                            | x   | x       |
  Email                           | x   | x       |
  Admin                           | x   | x       |
  Disabled                        | x   | x       |
  Last login                      | x   | x       |
  Authorized by                   | x   | x       |
  Effective admin                 | x   | x       |
  Locale                          | x   | x       |
  Timezone                        | x   | x       |
  Description                     | x   | x       |
  Default organization            | x   | x       |
  Default location                | x   | x       |
  Roles/                          | x   | x       |
  User groups/usergroup           | x   | x       |
  User groups/id                  | x   | x       |
  User groups/roles/              | x   | x       |
  Inherited user groups/usergroup | x   | x       |
  Inherited user groups/id        | x   | x       |
  Inherited user groups/roles/    | x   | x       |
  Locations/                      | x   | x       |
  Organizations/                  | x   | x       |
  Created at                      | x   | x       |
  Updated at                      | x   | x       |
  --------------------------------|-----|---------|-----

2.86.6. hammer 用户列表

列出所有用户

Usage:
    hammer user <list|index> [OPTIONS]

Options:
 --auth-source-ldap AUTH_SOURCE_LDAP_NAME  Name to search by
 --auth-source-ldap-id AUTH_SOURCE_LDAP_ID ID of LDAP authentication source
 --fields FIELDS                           Show specified fields or predefined field 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
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Scope by locations
 --location-title LOCATION_TITLE           Set the current location context for the request
 --order ORDER                             Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Scope by organizations
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --page PAGE                               Page number, starting at 1
 --per-page PER_PAGE                       Number of results per page to return, 'all' to return all results
 --role ROLE_NAME                          User role name
 --role-id ROLE_ID                         ID of role
 --search SEARCH                           Filter results
 --user-group USER_GROUP_NAME              Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                                Print help

Predefined field sets:
  --------------|-----|---------|-----
  FIELDS        | ALL | DEFAULT | THIN
  --------------|-----|---------|-----
  Id            | x   | x       | x
  Login         | x   | x       | x
  Name          | x   | x       |
  Email         | x   | x       |
  Admin         | x   | x       |
  Disabled      | x   | x       |
  Last login    | x   | x       |
  Authorized by | x   | x       |
  --------------|-----|---------|-----

Search / Order fields:
  admin               Values: true, false
  auth_source         string
  auth_source_type    string
  description         text
  disabled            Values: true, false
  firstname           string
  last_login_on       datetime
  lastname            string
  location            string
  location_id         integer
  login               string
  mail                string
  organization        string
  organization_id     integer
  role                string
  role_id             integer
  usergroup           string

2.86.7. hammer 用户 mail-notification

管理个人电子邮件通知

Usage:
    hammer user mail-notification [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add                           Add an email notification for a user
 list, index                   List all email notifications for a user
 remove                        Remove an email notification for a user
 update                        Update an email notification for a user

Options:
 -h, --help                    Print help
2.86.7.1. hammer 用户 mail-notification 添加

为用户添加电子邮件通知

Usage:
    hammer user mail-notification add [OPTIONS]

Options:
 --interval INTERVAL                         Mail notification interval option, e.g. Daily, Weekly or Monthly. Required for summary notification
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --mail-notification MAIL_NOTIFICATION_NAME  Name to search by
 --mail-notification-id MAIL_NOTIFICATION_ID
 --mail-query MAIL_QUERY                     Relevant only for audit summary notification
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --subscription SUBSCRIPTION                 Mail notification subscription option, e.g. Subscribe, Subscribe to my hosts or Subscribe to all hosts. Required for host built and config error state
 --user USER_LOGIN                           User's login to search by
 --user-id USER_ID
 -h, --help                                  Print help
2.86.7.2. hammer 用户 mail-notification 列表

列出用户的所有电子邮件通知

Usage:
    hammer user mail-notification <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       |
  Name        | x   | x       | x
  Description | x   | x       |
  Interval    | x   | x       |
  Mail query  | x   | x       |
  ------------|-----|---------|-----
2.86.7.3. hammer 用户 mail-notification remove

删除用户的电子邮件通知

Usage:
    hammer user mail-notification remove [OPTIONS]

Options:
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --mail-notification MAIL_NOTIFICATION_NAME  Name to search by
 --mail-notification-id MAIL_NOTIFICATION_ID
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --user USER_LOGIN                           User's login to search by
 --user-id USER_ID
 -h, --help                                  Print help
2.86.7.4. hammer 用户 mail-notification 更新

更新用户的电子邮件通知

Usage:
    hammer user mail-notification update [OPTIONS]

Options:
 --interval INTERVAL                         Mail notification interval option, e.g. Daily, Weekly or Monthly. Required for summary notification
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --mail-notification MAIL_NOTIFICATION_NAME  Name to search by
 --mail-notification-id MAIL_NOTIFICATION_ID
 --mail-query MAIL_QUERY                     Relevant only for audit summary notification
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --subscription SUBSCRIPTION                 Mail notification subscription option, e.g. Subscribe, Subscribe to my hosts or Subscribe to all hosts. Required for host built and config error state
 --user USER_LOGIN                           User's login to search by
 --user-id USER_ID
 -h, --help                                  Print help

2.86.8. hammer 用户 remove-role

删除用户角色

Usage:
    hammer user remove-role [OPTIONS]

Options:
 --id ID
 --login LOGIN                 User's login to search by
 --role ROLE_NAME              User role name
 --role-id ROLE_ID
 -h, --help                    Print help

2.86.9. hammer 用户 ssh-keys

管理用户 SSH 密钥.

Usage:
    hammer user ssh-keys [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add                           Add an SSH key for a user
 delete, destroy               Delete an SSH key for a user
 info, show                    Show an SSH key from a user
 list, index                   List all SSH keys for a user

Options:
 -h, --help                    Print help
2.86.9.1. hammer 用户 ssh-keys 添加

为用户添加 SSH 密钥

Usage:
    hammer user ssh-keys add [OPTIONS]

Options:
 --key KEY                               Public SSH key
 --key-file KEY_FILE                     Path to a SSH public key
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help
2.86.9.2. hammer 用户 ssh-keys 删除

删除用户的 SSH 密钥

Usage:
    hammer user ssh-keys <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help
2.86.9.3. hammer 用户 ssh-keys 信息

显示用户的 SSH 密钥

Usage:
    hammer user ssh-keys <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Fingerprint | x   | x       |
  Length      | x   | x       |
  Created at  | x   | x       |
  Public key  | x   | x       |
  ------------|-----|---------|-----
2.86.9.4. hammer 用户 ssh-keys 列表

列出用户的所有 SSH 密钥

Usage:
    hammer user ssh-keys <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 --user USER_LOGIN                       User's login to search by
 --user-id USER_ID                       ID of the user
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Fingerprint | x   | x       |
  Length      | x   | x       |
  Created at  | x   | x       |
  ------------|-----|---------|-----

Search / Order fields:
  name                string
  user_id             integer

2.86.10. hammer 用户更新

更新用户

Usage:
    hammer user update [OPTIONS]

Options:
 --admin ADMIN                                     Is an admin account
                                                   One of true/false, yes/no, 1/0.
 --ask-password ASK_PW                             One of true/false, yes/no, 1/0.
 --auth-source AUTH_SOURCE_NAME                    Name to search by
 --auth-source-id AUTH_SOURCE_ID
 --current-password CURRENT_PASSWORD               Required when user want to change own password
 --default-location DEFAULT_LOCATION_NAME          Default location name
 --default-location-id DEFAULT_LOCATION_ID
 --default-organization DEFAULT_ORGANIZATION_NAME  Default organization name
 --default-organization-id DEFAULT_ORGANIZATION_ID
 --description DESCRIPTION
 --disabled DISABLED                               One of true/false, yes/no, 1/0.
 --firstname FIRSTNAME
 --id ID
 --lastname LASTNAME
 --locale LOCALE                                   User's preferred locale
                                                   Possible value(s): 'ca', 'cs_CZ', 'de', 'en', 'en_GB', 'es', 'fr', 'gl', 'it', 'ja', 'ko', 'nl_NL', 'pl', 'pt_BR', 'ru', 'sv_SE', 'zh_CN', 'zh_TW'
 --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                       REPLACE locations with given ids
                                                   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
 --login LOGIN                                     User's login to search by
 --mail MAIL
 --new-login NEW_LOGIN
 --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               REPLACE organizations with given ids.
                                                   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
 --password PASSWORD                               Required unless user is in an external authentication source
 --role-ids ROLE_IDS                               Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                   JSON is acceptable and preferred way for complex parameters
 --roles ROLE_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
 --timezone TIMEZONE                               User's timezone
                                                   Possible value(s): 'International Date Line West', 'American Samoa', 'Midway Island', 'Hawaii', 'Alaska', 'Pacific Time (US & Canada)', 'Tijuana', 'Arizona', 'Chihuahua', 'Mazatlan', 'Mountain Time (US & Canada)', 'Central America', 'Central Time (US & Canada)', 'Guadalajara', 'Mexico City', 'Monterrey', 'Saskatchewan', 'Bogota', 'Eastern Time (US & Canada)', 'Indiana (East)', 'Lima', 'Quito', 'Atlantic Time (Canada)', 'Caracas', 'Georgetown', 'La Paz', 'Puerto Rico', 'Santiago', 'Newfoundland', 'Brasilia', 'Buenos Aires', 'Greenland', 'Montevideo', 'Mid-Atlantic', 'Azores', 'Cape Verde Is.', 'Casablanca', 'Dublin', 'Edinburgh', 'Lisbon', 'London', 'Monrovia', 'UTC', 'Amsterdam', 'Belgrade', 'Berlin', 'Bern', 'Bratislava', 'Brussels', 'Budapest', 'Copenhagen', 'Ljubljana', 'Madrid', 'Paris', 'Prague', 'Rome', 'Sarajevo', 'Skopje', 'Stockholm', 'Vienna', 'Warsaw', 'West Central Africa', 'Zagreb', 'Zurich', 'Athens', 'Bucharest', 'Cairo', 'Harare', 'Helsinki', 'Jerusalem', 'Kaliningrad', 'Kyiv', 'Pretoria', 'Riga', 'Sofia', 'Tallinn', 'Vilnius', 'Baghdad', 'Istanbul', 'Kuwait', 'Minsk', 'Moscow', 'Nairobi', 'Riyadh', 'St. Petersburg', 'Volgograd', 'Tehran', 'Abu Dhabi', 'Baku', 'Muscat', 'Samara', 'Tbilisi', 'Yerevan', 'Kabul', 'Ekaterinburg', 'Islamabad', 'Karachi', 'Tashkent', 'Chennai', 'Kolkata', 'Mumbai', 'New Delhi', 'Sri Jayawardenepura', 'Kathmandu', 'Almaty', 'Astana', 'Dhaka', 'Urumqi', 'Rangoon', 'Bangkok', 'Hanoi', 'Jakarta', 'Krasnoyarsk', 'Novosibirsk', 'Beijing', 'Chongqing', 'Hong Kong', 'Irkutsk', 'Kuala Lumpur', 'Perth', 'Singapore', 'Taipei', 'Ulaanbaatar', 'Osaka', 'Sapporo', 'Seoul', 'Tokyo', 'Yakutsk', 'Adelaide', 'Darwin', 'Brisbane', 'Canberra', 'Guam', 'Hobart', 'Melbourne', 'Port Moresby', 'Sydney', 'Vladivostok', 'Magadan', 'New Caledonia', 'Solomon Is.', 'Srednekolymsk', 'Auckland', 'Fiji', 'Kamchatka', 'Marshall Is.', 'Wellington', 'Chatham Is.', 'Nuku'alofa', 'Samoa', 'Tokelau Is.'
 -h, --help                                        Print help

2.87. hammer user-group

管理用户组

Usage:
    hammer user-group [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-role                      Assign a user role
 add-user                      Associate an user
 add-user-group                Associate an user group
 create                        Create a user group
 delete, destroy               Delete a user group
 external                      View and manage user group's external user groups
 info, show                    Show a user group
 list, index                   List all user groups
 remove-role                   Remove a user role
 remove-user                   Disassociate an user
 remove-user-group             Disassociate an user group
 update                        Update a user group

Options:
 -h, --help                    Print help

2.87.1. hammer user-group add-role

分配用户角色

Usage:
    hammer user-group add-role [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 --role ROLE_NAME              User role name
 --role-id ROLE_ID
 -h, --help                    Print help

2.87.2. hammer user-group add-user

关联用户

Usage:
    hammer user-group add-user [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 --user USER_LOGIN             User's login to search by
 --user-id USER_ID
 -h, --help                    Print help

2.87.3. hammer user-group add-user-group

关联用户组

Usage:
    hammer user-group add-user-group [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 --user-group USER_GROUP_NAME  Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                    Print help

2.87.4. hammer user-group create

创建用户组

Usage:
    hammer user-group create [OPTIONS]

Options:
 --admin ADMIN                   Is an admin user group, can be modified by admins only
                                 One of true/false, yes/no, 1/0.
 --name NAME
 --role-ids ROLE_IDS             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 --roles ROLE_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
 --user-group-ids USER_GROUP_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 --user-groups USER_GROUP_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
 --user-ids USER_IDS             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 --users USER_LOGINS             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 -h, --help                      Print help

2.87.5. hammer user-group delete

删除用户组

Usage:
    hammer user-group <delete|destroy> [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 -h, --help                    Print help

2.87.6. hammer user-group external

查看并管理用户组的外部用户组

Usage:
    hammer user-group external [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create an external user group linked to a user group
 delete, destroy               Delete an external user group
 info, show                    Show an external user group for user group
 list, index                   List all external user groups for user group
 refresh                       Refresh external user group
 update                        Update external user group

Options:
 -h, --help                    Print help
2.87.6.1. hammer user-group external create

创建链接到用户组的外部用户组

Usage:
    hammer user-group external create [OPTIONS]

Options:
 --auth-source AUTH_SOURCE_NAME          Name to search by
 --auth-source-id AUTH_SOURCE_ID         ID of linked authentication source
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             External user group name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user-group USER_GROUP_NAME            Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                              Print help
2.87.6.2. hammer user-group external delete

删除外部用户组

Usage:
    hammer user-group external <delete|destroy> [OPTIONS]

Options:
 --id ID                                 ID or name external user group
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user-group USER_GROUP_NAME            Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                              Print help
2.87.6.3. hammer user-group 外部信息

显示用户组的外部用户组

Usage:
    hammer user-group external <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 ID or name of external user group
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user-group USER_GROUP_NAME            Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Auth source | x   | x       |
  ------------|-----|---------|-----
2.87.6.4. hammer user-group 外部列表

列出用户组的所有外部用户组

Usage:
    hammer user-group external <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user-group USER_GROUP_NAME            Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Id          | x   | x       | x
  Name        | x   | x       | x
  Auth source | x   | x       |
  ------------|-----|---------|-----
2.87.6.5. hammer user-group 外部刷新

刷新外部用户组

Usage:
    hammer user-group external refresh [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID                                 ID or name of external user group
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user-group USER_GROUP_NAME            Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                              Print help

Predefined field sets:
  ------------|-----|---------|-----
  FIELDS      | ALL | DEFAULT | THIN
  ------------|-----|---------|-----
  Name        | x   | x       | x
  Auth source | x   | x       |
  ------------|-----|---------|-----
2.87.6.6. hammer user-group 外部更新

更新外部用户组

Usage:
    hammer user-group external update [OPTIONS]

Options:
 --auth-source AUTH_SOURCE_NAME          Name to search by
 --auth-source-id AUTH_SOURCE_ID         ID of linked authentication source
 --id ID                                 ID or name of external user group
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --new-name NEW_NAME                     External user group name
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --user-group USER_GROUP_NAME            Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                              Print help

2.87.7. hammer user-group info

显示用户组

Usage:
    hammer user-group <info|show> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --id ID
 --name NAME                   Name to search by
 -h, --help                    Print help

Predefined field sets:
  --------------------------------|-----|---------|-----
  FIELDS                          | ALL | DEFAULT | THIN
  --------------------------------|-----|---------|-----
  Id                              | x   | x       | x
  Name                            | x   | x       | x
  Admin                           | x   | x       |
  Users/                          | x   | x       |
  User groups/usergroup           | x   | x       |
  User groups/id                  | x   | x       |
  User groups/roles/              | x   | x       |
  Inherited user groups/usergroup | x   | x       |
  Inherited user groups/id        | x   | x       |
  Inherited user groups/roles/    | x   | x       |
  External user groups/           | x   | x       |
  Roles/                          | x   | x       |
  Created at                      | x   | x       |
  Updated at                      | x   | x       |
  --------------------------------|-----|---------|-----

2.87.8. hammer user-group list

列出所有用户组

Usage:
    hammer user-group <list|index> [OPTIONS]

Options:
 --fields FIELDS               Show specified fields or predefined field 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
 --order ORDER                 Sort field and order, eg. ‘id DESC’
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return, 'all' to return all results
 --search SEARCH               Filter results
 -h, --help                    Print help

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

Search / Order fields:
  name                string
  role                string
  role_id             integer

2.87.9. hammer user-group remove-role

删除用户角色

Usage:
    hammer user-group remove-role [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 --role ROLE_NAME              User role name
 --role-id ROLE_ID
 -h, --help                    Print help

2.87.10. hammer user-group remove-user

解除用户解除关联

Usage:
    hammer user-group remove-user [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 --user USER_LOGIN             User's login to search by
 --user-id USER_ID
 -h, --help                    Print help

2.87.11. hammer user-group remove-user-group

解除用户组关联

Usage:
    hammer user-group remove-user-group [OPTIONS]

Options:
 --id ID
 --name NAME                   Name to search by
 --user-group USER_GROUP_NAME  Name to search by
 --user-group-id USER_GROUP_ID
 -h, --help                    Print help

2.87.12. hammer user-group update

更新用户组

Usage:
    hammer user-group update [OPTIONS]

Options:
 --admin ADMIN                   Is an admin user group, can be modified by admins only
                                 One of true/false, yes/no, 1/0.
 --id ID
 --name NAME                     Name to search by
 --new-name NEW_NAME
 --role-ids ROLE_IDS             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 --roles ROLE_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
 --user-group-ids USER_GROUP_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 --user-groups USER_GROUP_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
 --user-ids USER_IDS             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 --users USER_LOGINS             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                 JSON is acceptable and preferred way for complex parameters
 -h, --help                      Print help

2.88. hammer virt-who-config

管理 Virt Who 配置

Usage:
    hammer virt-who-config [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a virt-who configuration
 delete, destroy               Delete a virt-who configuration
 deploy                        Download and execute script for the specified virt-who configuration
 fetch                         Renders a deploy script for the specified virt-who configuration
 info, show                    Show a virt-who configuration
 list, index                   List of virt-who configurations
 update                        Update a virt-who configuration

Options:
 -h, --help                    Print help

2.88.1. hammer virt-who-config create

创建 virt-who 配置

Usage:
    hammer virt-who-config create [OPTIONS]

Options:
 --blacklist BLACKLIST                       Hypervisor blacklist, applicable only when filtering mode is set to 2. Wildcards and regular expressions are supported, multiple records must be separated by comma.
 --debug DEBUG                               Enable debugging output
                                             One of true/false, yes/no, 1/0.
 --exclude-host-parents EXCLUDE_HOST_PARENTS Applicable only for esx provider type. Hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will NOT be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end.
 --filter-host-parents FILTER_HOST_PARENTS   Applicable only for esx provider type. Only hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end.
 --filtering-mode MODE                       Hypervisor filtering mode
                                             Possible value(s): 'none', 'whitelist', 'blacklist'
 --http-proxy HTTP_PROXY_NAME                Name to search by
 --http-proxy-id HTTP_PROXY_ID               HTTP Proxy that should be used for communication between the server on which virt-who is running and the hypervisors and virtualization managers.
 --hypervisor-id HYPERVISOR_ID               Specifies how the hypervisor will be identified.
                                             Possible value(s): 'hostname', 'uuid', 'hwuuid'
 --hypervisor-password HYPERVISOR_PASSWORD   Hypervisor password, required for all hypervisor types except for libvirt
 --hypervisor-server HYPERVISOR_SERVER       Fully qualified host name or IP address of the hypervisor
 --hypervisor-type HYPERVISOR_TYPE           Hypervisor type
                                             Possible value(s): 'esx', 'hyperv', 'libvirt', 'kubevirt'
 --hypervisor-username HYPERVISOR_USERNAME   Account name by which virt-who is to connect to the hypervisor.
 --interval INTERVAL                         Configuration interval in minutes
                                             Possible value(s): '60', '120', '240', '480', '720', '1440', '2880', '4320'
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --name NAME                                 Configuration name
 --no-proxy NO_PROXY                         Ignore Proxy. A comma-separated list of hostnames or domains or ip addresses to ignore Capsule settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses.
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --satellite-url SATELLITE_URL               Satellite server FQDN
 --whitelist WHITELIST                       Hypervisor whitelist, applicable only when filtering mode is set to 1. Wildcards and regular expressions are supported, multiple records must be separated by comma.
 -h, --help                                  Print help

2.88.2. hammer virt-who-config delete

删除 virt-who 配置

Usage:
    hammer virt-who-config <delete|destroy> [OPTIONS]

Options:
 --id ID                                 Configuration numeric identifier
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.88.3. hammer virt-who-config deploy

为指定的 virt-who 配置下载并执行脚本

Usage:
    hammer virt-who-config deploy [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.88.4. hammer virt-who-config fetch

为指定的 virt-who 配置呈现部署脚本

Usage:
    hammer virt-who-config fetch [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help
 -o, --output FILE                       File where the script will be written

2.88.5. hammer virt-who-config info

显示 virt-who 配置

Usage:
    hammer virt-who-config <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ----------------------------------------|-----|--------
  FIELDS                                  | ALL | DEFAULT
  ----------------------------------------|-----|--------
  General information/id                  | x   | x
  General information/name                | x   | x
  General information/hypervisor type     | x   | x
  General information/hypervisor server   | x   | x
  General information/hypervisor username | x   | x
  General information/configuration file  | x   | x
  General information/status              | x   | x
  Schedule/interval                       | x   | x
  Schedule/last report at                 | x   | x
  Connection/satellite server             | x   | x
  Connection/hypervisor id                | x   | x
  Connection/filtering                    | x   | x
  Connection/excluded hosts               | x   | x
  Connection/filtered hosts               | x   | x
  Connection/filter host parents          | x   | x
  Connection/exclude host parents         | x   | x
  Connection/debug mode                   | x   | x
  Connection/ignore proxy                 | x   | x
  Http proxy/http proxy id                | x   | x
  Http proxy/http proxy name              | x   | x
  Http proxy/http proxy url               | x   | x
  Locations/                              | x   | x
  Organizations/                          | x   | x
  ----------------------------------------|-----|--------

2.88.6. hammer virt-who-config list

virt-who 配置列表

Usage:
    hammer virt-who-config <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Interval       | x   | x       |
  Status         | x   | x       |
  Last report at | x   | x       |
  ---------------|-----|---------|-----

2.88.7. hammer virt-who-config update

更新 virt-who 配置

Usage:
    hammer virt-who-config update [OPTIONS]

Options:
 --blacklist BLACKLIST                       Hypervisor blacklist, applicable only when filtering mode is set to 2. Wildcards and regular expressions are supported, multiple records must be separated by comma.
 --debug DEBUG                               Enable debugging output
                                             One of true/false, yes/no, 1/0.
 --exclude-host-parents EXCLUDE_HOST_PARENTS Applicable only for esx provider type. Hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will NOT be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end.
 --filter-host-parents FILTER_HOST_PARENTS   Applicable only for esx provider type. Only hosts which parent (usually ComputeResource) name is specified in comma-separated list in this option will be reported. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end.
 --filtering-mode MODE                       Hypervisor filtering mode
                                             Possible value(s): 'none', 'whitelist', 'blacklist'
 --http-proxy HTTP_PROXY_NAME                Name to search by
 --http-proxy-id HTTP_PROXY_ID               HTTP Proxy that should be used for communication between the server on which virt-who is running and the hypervisors and virtualization managers.
 --hypervisor-id HYPERVISOR_ID               Specifies how the hypervisor will be identified.
                                             Possible value(s): 'hostname', 'uuid', 'hwuuid'
 --hypervisor-password HYPERVISOR_PASSWORD   Hypervisor password, required for all hypervisor types except for libvirt
 --hypervisor-server HYPERVISOR_SERVER       Fully qualified host name or IP address of the hypervisor
 --hypervisor-type HYPERVISOR_TYPE           Hypervisor type
                                             Possible value(s): 'esx', 'hyperv', 'libvirt', 'kubevirt'
 --hypervisor-username HYPERVISOR_USERNAME   Account name by which virt-who is to connect to the hypervisor.
 --id ID                                     Configuration numeric identifier
 --interval INTERVAL                         Configuration interval in minutes
                                             Possible value(s): '60', '120', '240', '480', '720', '1440', '2880', '4320'
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-title LOCATION_TITLE             Set the current location context for the request
 --name NAME                                 Name to search by
 --new-name NEW_NAME                         Configuration name
 --no-proxy NO_PROXY                         Ignore Proxy. A comma-separated list of hostnames or domains or ip addresses to ignore Capsule settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses.
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --satellite-url SATELLITE_URL               Satellite server FQDN
 --whitelist WHITELIST                       Hypervisor whitelist, applicable only when filtering mode is set to 1. Wildcards and regular expressions are supported, multiple records must be separated by comma.
 -h, --help                                  Print help

2.89. hammer Webhook

管理 Webhook

Usage:
    hammer webhook [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 create                        Create a Webhook
 delete, destroy               Delete a Webhook
 info, show                    Show Webhook details
 list, index                   List Webhooks
 update                        Update a Webhook

Options:
 -h, --help                    Print help

2.89.1. hammer Webhook 创建

创建 Webhook

Usage:
    hammer webhook create [OPTIONS]

Options:
 --enabled ENABLED                         One of true/false, yes/no, 1/0.
 --event EVENT                             Possible value(s): 'actions.katello.content_view.promote_succeeded', 'actions.katello.content_view.publish_succeeded', 'actions.katello.repository.sync_succeeded', 'actions.remote_execution.run_host_job_ansible_configure_cloud_connector_succeeded', 'actions.remote_execution.run_host_job_ansible_enable_web_console_succeeded', 'actions.remote_execution.run_host_job_ansible_run_capsule_upgrade_succeeded', 'actions.remote_execution.run_host_job_ansible_run_host_succeeded', 'actions.remote_execution.run_host_job_ansible_run_insights_plan_succeeded', 'actions.remote_execution.run_host_job_ansible_run_playbook_succeeded', 'actions.remote_execution.run_host_job_foreman_openscap_run_oval_scans_succeeded', 'actions.remote_execution.run_host_job_foreman_openscap_run_scans_succeeded', 'actions.remote_execution.run_host_job_katello_errata_install_succeeded', 'actions.remote_execution.run_host_job_katello_group_install_succeeded', 'actions.remote_execution.run_host_job_katello_group_remove_succeeded', 'actions.remote_execution.run_host_job_katello_group_update_succeeded', 'actions.remote_execution.run_host_job_katello_module_stream_action_succeeded', 'actions.remote_execution.run_host_job_katello_package_install_succeeded', 'actions.remote_execution.run_host_job_katello_package_remove_succeeded', 'actions.remote_execution.run_host_job_katello_package_update_succeeded', 'actions.remote_execution.run_host_job_katello_service_restart_succeeded', 'actions.remote_execution.run_host_job_puppet_run_host_succeeded', 'actions.remote_execution.run_host_job_rh_cloud_remediate_hosts_succeeded', 'actions.remote_execution.run_host_job_succeeded', 'build_entered', 'build_exited', 'content_view_created', 'content_view_destroyed', 'content_view_updated', 'domain_created', 'domain_destroyed', 'domain_updated', 'host_created', 'host_destroyed', 'host_updated', 'hostgroup_created', 'hostgroup_destroyed', 'hostgroup_updated', 'model_created', 'model_destroyed', 'model_updated', 'status_changed', 'subnet_created', 'subnet_destroyed', 'subnet_updated', 'user_created', 'user_destroyed', 'user_updated'
 --http-content-type HTTP_CONTENT_TYPE
 --http-method HTTP_METHOD                 Possible value(s): 'POST', 'GET', 'PUT', 'DELETE', 'PATCH'
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --name NAME
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --password PASSWORD
 --proxy-authorization PROXY_AUTHORIZATION Authorize with Satellite client certificate and validate capsule CA from Settings
                                           One of true/false, yes/no, 1/0.
 --target-url TARGET_URL
 --user USER
 --verify-ssl VERIFY_SSL                   One of true/false, yes/no, 1/0.
 --webhook-template WEBHOOK_TEMPLATE_NAME  Name to search by
 --webhook-template-id WEBHOOK_TEMPLATE_ID
 -h, --help                                Print help

2.89.2. hammer Webhook 删除

删除 Webhook

Usage:
    hammer webhook <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.89.3. hammer Webhook 信息

显示 Webhook 详情

Usage:
    hammer webhook <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  -------------------------------|------------|-----|---------|-----
  FIELDS                         | ADDITIONAL | ALL | DEFAULT | THIN
  -------------------------------|------------|-----|---------|-----
  Id                             |            | x   | x       | x
  Name                           |            | x   | x       | x
  Target url                     |            | x   | x       |
  Enabled                        |            | x   | x       |
  Event                          |            | x   | x       |
  Http method                    |            | x   | x       |
  Http content type              |            | x   | x       |
  Webhook template               |            | x   | x       |
  User                           | x          | x   |         |
  Verify ssl                     | x          | x   |         |
  X509 certification authorities | x          | x   |         |
  Http headers/                  | x          | x   |         |
  Created at                     |            | x   | x       |
  Updated at                     |            | x   | x       |
  -------------------------------|------------|-----|---------|-----

2.89.4. hammer Webhook 列表

列出 Webhook

Usage:
    hammer webhook <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

Predefined field sets:
  -----------|-----|---------|-----
  FIELDS     | ALL | DEFAULT | THIN
  -----------|-----|---------|-----
  Id         | x   | x       | x
  Name       | x   | x       | x
  Target url | x   | x       |
  Enabled    | x   | x       |
  -----------|-----|---------|-----

Search / Order fields:
  enabled             Values: true, false
  name                string
  target_url          string

2.89.5. hammer Webhook 更新

更新 Webhook

Usage:
    hammer webhook update [OPTIONS]

Options:
 --enabled ENABLED                         One of true/false, yes/no, 1/0.
 --event EVENT                             Possible value(s): 'actions.katello.content_view.promote_succeeded', 'actions.katello.content_view.publish_succeeded', 'actions.katello.repository.sync_succeeded', 'actions.remote_execution.run_host_job_ansible_configure_cloud_connector_succeeded', 'actions.remote_execution.run_host_job_ansible_enable_web_console_succeeded', 'actions.remote_execution.run_host_job_ansible_run_capsule_upgrade_succeeded', 'actions.remote_execution.run_host_job_ansible_run_host_succeeded', 'actions.remote_execution.run_host_job_ansible_run_insights_plan_succeeded', 'actions.remote_execution.run_host_job_ansible_run_playbook_succeeded', 'actions.remote_execution.run_host_job_foreman_openscap_run_oval_scans_succeeded', 'actions.remote_execution.run_host_job_foreman_openscap_run_scans_succeeded', 'actions.remote_execution.run_host_job_katello_errata_install_succeeded', 'actions.remote_execution.run_host_job_katello_group_install_succeeded', 'actions.remote_execution.run_host_job_katello_group_remove_succeeded', 'actions.remote_execution.run_host_job_katello_group_update_succeeded', 'actions.remote_execution.run_host_job_katello_module_stream_action_succeeded', 'actions.remote_execution.run_host_job_katello_package_install_succeeded', 'actions.remote_execution.run_host_job_katello_package_remove_succeeded', 'actions.remote_execution.run_host_job_katello_package_update_succeeded', 'actions.remote_execution.run_host_job_katello_service_restart_succeeded', 'actions.remote_execution.run_host_job_puppet_run_host_succeeded', 'actions.remote_execution.run_host_job_rh_cloud_remediate_hosts_succeeded', 'actions.remote_execution.run_host_job_succeeded', 'build_entered', 'build_exited', 'content_view_created', 'content_view_destroyed', 'content_view_updated', 'domain_created', 'domain_destroyed', 'domain_updated', 'host_created', 'host_destroyed', 'host_updated', 'hostgroup_created', 'hostgroup_destroyed', 'hostgroup_updated', 'model_created', 'model_destroyed', 'model_updated', 'status_changed', 'subnet_created', 'subnet_destroyed', 'subnet_updated', 'user_created', 'user_destroyed', 'user_updated'
 --http-content-type HTTP_CONTENT_TYPE
 --http-method HTTP_METHOD                 Possible value(s): 'POST', 'GET', 'PUT', 'DELETE', 'PATCH'
 --id ID
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-title LOCATION_TITLE           Set the current location context for the request
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME          Set the current organization context for the request
 --organization-id ORGANIZATION_ID         Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --password PASSWORD
 --proxy-authorization PROXY_AUTHORIZATION Authorize with Satellite client certificate and validate capsule CA from Settings
                                           One of true/false, yes/no, 1/0.
 --target-url TARGET_URL
 --user USER
 --verify-ssl VERIFY_SSL                   One of true/false, yes/no, 1/0.
 --webhook-template WEBHOOK_TEMPLATE_NAME  Name to search by
 --webhook-template-id WEBHOOK_TEMPLATE_ID
 -h, --help                                Print help

2.90. hammer webhook-template

操作 Webhook 模板

Usage:
    hammer webhook-template [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 clone                         Clone a template
 create                        Create a webhook template
 delete, destroy               Delete a webhook template
 dump                          View webhook template content
 import                        Import a webhook template
 info, show                    Show webhook template details
 list, index                   List webhook templates
 update                        Update a webhook template

Options:
 -h, --help                    Print help

2.90.1. hammer webhook-template 克隆

克隆模板

Usage:
    hammer webhook-template clone [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --new-name NEW_NAME
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.90.2. hammer webhook-template create

创建 Webhook 模板

Usage:
    hammer webhook-template create [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --default DEFAULT                         Whether or not the template is added automatically to new organizations and locations
                                           One of true/false, yes/no, 1/0.
 --description DESCRIPTION
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME
 --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       REPLACE organizations with given ids.
                                           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
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 --template TEMPLATE
 -h, --help                                Print help

2.90.3. hammer webhook-template delete

删除 Webhook 模板

Usage:
    hammer webhook-template <delete|destroy> [OPTIONS]

Options:
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

2.90.4. hammer webhook-template dump

查看 Webhook 模板内容

Usage:
    hammer webhook-template dump [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ------
  FIELDS
  ------

2.90.5. hammer webhook-template import

导入 Webhook 模板

Usage:
    hammer webhook-template import [OPTIONS]

Options:
 --associate ASSOCIATE                     Determines when the template should associate objects based on metadata, new means only when new template is being created, always means both for new and existing template which is only being updated, never ignores metadata
                                           Possible value(s): 'new', 'always', 'never'
 --default DEFAULT                         Makes the template default meaning it will be automatically associated with newly created organizations and locations (false by default)
                                           One of true/false, yes/no, 1/0.
 --file PATH                               Path to a file that contains the webhook template content including metadata
 --force FORCE                             Use if you want update locked templates
                                           One of true/false, yes/no, 1/0.
 --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               REPLACE locations with given ids
                                           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
 --lock LOCK                               Lock imported templates (false by default)
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Template name
 --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       REPLACE organizations with given ids.
                                           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
 -h, --help                                Print help

2.90.6. hammer webhook-template info

显示 Webhook 模板详情

Usage:
    hammer webhook-template <info|show> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --id ID
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 -h, --help                              Print help

Predefined field sets:
  ----------------------------|-----|---------|-----
  FIELDS                      | ALL | DEFAULT | THIN
  ----------------------------|-----|---------|-----
  Id                          | x   | x       | x
  Name                        | x   | x       | x
  Description                 | x   | x       |
  Locked                      | x   | x       |
  Default                     | x   | x       |
  Created at                  | x   | x       |
  Updated at                  | x   | x       |
  Locations/                  | x   | x       |
  Organizations/              | x   | x       |
  Template inputs/id          | x   | x       |
  Template inputs/name        | x   | x       |
  Template inputs/description | x   | x       |
  Template inputs/required    | x   | x       |
  Template inputs/options     | x   | x       |
  ----------------------------|-----|---------|-----

2.90.7. hammer webhook-template list

列出 Webhook 模板

Usage:
    hammer webhook-template <list|index> [OPTIONS]

Options:
 --fields FIELDS                         Show specified fields or predefined field 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
 --location LOCATION_NAME                Set the current location context for the request
 --location-id LOCATION_ID               Set the current location context for the request
 --location-title LOCATION_TITLE         Set the current location context for the request
 --order ORDER                           Sort field and order, eg. ‘id DESC’
 --organization ORGANIZATION_NAME        Set the current organization context for the request
 --organization-id ORGANIZATION_ID       Set the current organization context for the request
 --organization-title ORGANIZATION_TITLE Set the current organization context for the request
 --page PAGE                             Page number, starting at 1
 --per-page PER_PAGE                     Number of results per page to return, 'all' to return all results
 --search SEARCH                         Filter results
 -h, --help                              Print help

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

Search / Order fields:
  default             Values: true, false
  location            string
  location_id         integer
  locked              Values: true, false
  name                string
  organization        string
  organization_id     integer
  snippet             Values: true, false
  template            text

2.90.8. hammer webhook-template 更新

更新 webhook 模板

Usage:
    hammer webhook-template update [OPTIONS]

Options:
 --audit-comment AUDIT_COMMENT
 --default DEFAULT                         Whether or not the template is added automatically to new organizations and locations
                                           One of true/false, yes/no, 1/0.
 --description DESCRIPTION
 --id ID
 --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               REPLACE locations with given ids
                                           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
 --locked LOCKED                           Whether or not the template is locked for editing
                                           One of true/false, yes/no, 1/0.
 --name NAME                               Name to search by
 --new-name NEW_NAME
 --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       REPLACE organizations with given ids.
                                           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
 --snippet SNIPPET                         One of true/false, yes/no, 1/0.
 --template TEMPLATE
 -h, --help                                Print help

法律通告

Copyright © 2023 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.