検索

2.57. hammer product

download PDF

製品を操作します。

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.57.1. hammer product create

製品を作成します。

Usage:
    hammer product create [OPTIONS]

Options:
 --description VALUE           Product description
 --gpg-key-id NUMBER           Identifier of the GPG key
 --label VALUE
 --name VALUE                  Product name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      ID of the organization
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --ssl-ca-cert-id NUMBER       Idenifier of the SSL CA Cert
 --ssl-client-cert-id NUMBER   Identifier of the SSL Client Cert
 --ssl-client-key-id NUMBER    Identifier of the SSL Client Key
 --sync-plan VALUE             Sync plan name to search by
 --sync-plan-id NUMBER         Plan numeric identifier
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.57.2. hammer product delete

製品を破棄します。

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

Options:
 --id NUMBER                   Product numeric identifier
 --name VALUE                  Product name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.57.3. hammer product info

製品を表示します。

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

Options:
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --id NUMBER                   Product numeric identifier
 --name VALUE                  Product name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    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       |
  ---------------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.57.4. hammer product list

製品のリストを表示します。

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

Options:
 --available-for VALUE               Interpret specified object to return only Products that can be associated with
                                     specified object.  Only 'sync_plan' is supported.
 --custom BOOLEAN                    Return custom products only
 --enabled BOOLEAN                   Return enabled products only
 --fields LIST                       Show specified fields or predefined field sets only. (See below)
 --full-result BOOLEAN               Whether or not to show all results
 --include-available-content BOOLEAN Whether to include available content attribute in results
 --name VALUE                        Filter products by name
 --order VALUE                       Sort field and order, eg. 'id DESC'
 --organization VALUE                Organization name to search by
 --organization-id NUMBER            Filter products by organization
 --organization-label VALUE          Organization label to search by
 --organization-title VALUE          Organization title
 --page NUMBER                       Page number, starting at 1
 --per-page NUMBER                   Number of results per page to return
 --redhat-only BOOLEAN               Return Red Hat (non-custom) products only
 --search VALUE                      Search string
 --subscription VALUE                Subscription name to search by
 --subscription-id NUMBER            Filter products by subscription
 --sync-plan VALUE                   Sync plan name to search by
 --sync-plan-id NUMBER               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       |
  -------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

Search / Order fields:
  description         text
  label               string
  name                string
  organization_id     integer
  redhat              Values: true, false

2.57.5. hammer product remove-sync-plan

割り当て同期プランおよび製品を削除します。

Usage:
    hammer product remove-sync-plan [OPTIONS]

Options:
 --description VALUE           Product description
 --gpg-key-id NUMBER           Identifier of the GPG key
 --id NUMBER                   Product numeric identifier
 --name VALUE                  Product name
 --new-name VALUE              Product name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --ssl-ca-cert-id NUMBER       Idenifier of the SSL CA Cert
 --ssl-client-cert-id NUMBER   Identifier of the SSL Client Cert
 --ssl-client-key-id NUMBER    Identifier of the SSL Client Key
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.57.6. hammer product set-sync-plan

同期プランを製品に割り当てます。

Usage:
    hammer product set-sync-plan [OPTIONS]

Options:
 --id NUMBER                   Product numeric identifier
 --name VALUE                  Product name to search by
 --new-name VALUE              Product name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --ssl-ca-cert-id NUMBER       Idenifier of the SSL CA Cert
 --ssl-client-cert-id NUMBER   Identifier of the SSL Client Cert
 --ssl-client-key-id NUMBER    Identifier of the SSL Client Key
 --sync-plan VALUE             Sync plan name to search by
 --sync-plan-id NUMBER         Plan numeric identifier
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.57.7. hammer product synchronize

製品のすべてのリポジトリーを同期します。

Usage:
    hammer product synchronize [OPTIONS]

Options:
 --async                       Do not wait for the task
 --id NUMBER                   Product ID
 --name VALUE                  Product name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.57.8. hammer product update

製品を更新します。

Usage:
    hammer product update [OPTIONS]

Options:
 --description VALUE           Product description
 --gpg-key-id NUMBER           Identifier of the GPG key
 --id NUMBER                   Product numeric identifier
 --name VALUE                  Product name
 --new-name VALUE              Product name
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --ssl-ca-cert-id NUMBER       Idenifier of the SSL CA Cert
 --ssl-client-cert-id NUMBER   Identifier of the SSL Client Cert
 --ssl-client-key-id NUMBER    Identifier of the SSL Client Key
 --sync-plan VALUE             Sync plan name to search by
 --sync-plan-id NUMBER         Plan numeric identifier
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.57.9. hammer product update-proxy

製品の HTTP プロキシーを更新します。

Usage:
    hammer product update-proxy [OPTIONS]

Options:
 --http-proxy VALUE            Name to search by
 --http-proxy-id NUMBER        HTTP Proxy identifier to associated
 --http-proxy-policy ENUM      Policy for HTTP Proxy for content sync
                               Possible value(s): 'global_default_http_proxy', 'none',
                               'use_selected_http_proxy'
 --ids LIST                    List of product ids
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.