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

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.