搜索

2.35. hammer global-parameter

download PDF

操作全局参数

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

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.