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

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.