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
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.