検索

2.12. hammer capsule

download PDF

Capsule を操作します。

Usage:
    hammer capsule [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 content                       Manage the capsule content
 create                        Create a capsule
 delete, destroy               Delete a capsule
 import-classes                Import puppet classes from puppet Capsule
 info, show                    Show a capsule
 list, index                   List all capsules
 refresh-features              Refresh capsule features
 update                        Update a capsule

Options:
 -h, --help                    Print help

2.12.1. hammer capsule content

Capsule コンテンツを管理します。

Usage:
    hammer capsule content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 add-lifecycle-environment        Add lifecycle environments to the capsule
 available-lifecycle-environments List the lifecycle environments not attached to the capsule
 cancel-synchronization           Cancel running capsule synchronization
 info                             Get current capsule synchronization status
 lifecycle-environments           List the lifecycle environments attached to the capsule
 remove-lifecycle-environment     Remove lifecycle environments from the capsule
 synchronization-status           Get current capsule synchronization status
 synchronize                      Synchronize the content to the capsule

Options:
 -h, --help                    Print help

2.12.1.1. hammer capsule content add-lifecycle-environment

ライフサイクル環境を Capsule に追加します。

Usage:
    hammer capsule content add-lifecycle-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 -h, --help                                          Print help

2.12.1.2. hammer capsule content available-lifecycle-environments

Capsule に割り当てられていないライフサイクル環境を一覧表示します。

Usage:
    hammer capsule content available-lifecycle-environments [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                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to limit environments on
 --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 | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Organization | x   | x       |
  -------------|-----|---------|-----

2.12.1.3. hammer capsule content cancel-synchronization

実行中の Capsule 同期をキャンセルします。

Usage:
    hammer capsule content cancel-synchronization [OPTIONS]

Options:
 --id ID                       Id of the capsule
 --name NAME                   Name to search by
 -h, --help                    Print help

2.12.1.4. hammer capsule content info

現在の Capsule 同期ステータスを取得します。

Usage:
    hammer capsule content info [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                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to get the status for
 --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
  -------------------------------------------------------------------|-----|--------
  Lifecycle environments/name                                        | x   | x
  Lifecycle environments/organization                                | x   | x
  Lifecycle environments/content views/name                          | x   | x
  Lifecycle environments/content views/composite                     | x   | x
  Lifecycle environments/content views/last published                | x   | x
  Lifecycle environments/content views/content/hosts                 | x   | x
  Lifecycle environments/content views/content/products              | x   | x
  Lifecycle environments/content views/content/yum repos             | x   | x
  Lifecycle environments/content views/content/container image repos | x   | x
  Lifecycle environments/content views/content/packages              | x   | x
  Lifecycle environments/content views/content/package groups        | x   | x
  Lifecycle environments/content views/content/errata                | x   | x
  -------------------------------------------------------------------|-----|--------

2.12.1.5. hammer capsule content lifecycle-environments

Capsule に割り当てられたライフサイクル環境を一覧表示します。

Usage:
    hammer capsule content lifecycle-environments [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                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to limit environments on
 --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 | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Organization | x   | x       |
  -------------|-----|---------|-----

2.12.1.6. hammer capsule content remove-lifecycle-environment

ライフサイクル環境を Capsule から削除します。

Usage:
    hammer capsule content remove-lifecycle-environment [OPTIONS]

Options:
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 -h, --help                                          Print help

2.12.1.7. hammer capsule content synchronization-status

現在の Capsule 同期ステータスを取得します。

Usage:
    hammer capsule content synchronization-status [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                                 Id of the capsule
 --name NAME                             Name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Id of the organization to get the status for
 --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
  --------------------------------------|-----|--------
  Last sync                             | x   | x
  Status                                | x   | x
  Currently running sync tasks/task id  | x   | x
  Currently running sync tasks/progress | x   | x
  Last failure/task id                  | x   | x
  Last failure/messages                 | x   | x
  --------------------------------------|-----|--------

2.12.1.8. hammer capsule content synchronize

コンテンツと Capsule を同期します。

Usage:
    hammer capsule content synchronize [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --environment ENVIRONMENT_NAME                      Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead)
 --environment-id ENVIRONMENT_ID                     (--environment-id is deprecated: Use --lifecycle-environment-id instead)
 --id ID                                             Id of the capsule
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization NAME                                 Organization name
 --organization-id ID                                Organization ID
 --skip-metadata-check SKIP_METADATA_CHECK           Skip metadata check on each repository on the capsule
                                                     One of true/false, yes/no, 1/0.
 -h, --help                                          Print help

2.12.2. hammer capsule create

Capsule を作成します。

Usage:
    hammer capsule create [OPTIONS]

Options:
 --download-policy DOWNLOAD_POLICY         Download Policy of the capsule, must be one of on_demand, immediate, inherit
 --location LOCATION_NAME                  Set the current location context for the request
 --location-id LOCATION_ID                 Set the current location context for the request
 --location-ids LOCATION_IDS               REPLACE locations with given 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
 --location-title LOCATION_TITLE           Set the current location context for the request
 --location-titles LOCATION_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
 --locations LOCATION_NAMES                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --name 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-ids ORGANIZATION_IDS       REPLACE organizations with given 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
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --organization-titles ORGANIZATION_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
 --organizations ORGANIZATION_NAMES        Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --url URL
 -h, --help                                Print help

2.12.3. hammer capsule delete

Capsule を削除します。

Usage:
    hammer capsule <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
 -h, --help                              Print help

2.12.4. hammer capsule import-classes

Puppet Capsule から puppet クラスをインポートします。

Usage:
    hammer capsule import-classes [OPTIONS]

Options:
 --dryrun                                      Do not run the import
 --environment ENVIRONMENT_NAME                Environment name (--environment is deprecated: Use --puppet-environment[-id] instead)
 --environment-id ENVIRONMENT_ID               (--environment-id is deprecated: Use --puppet-environment[-id] instead)
 --except EXCEPT                               Optional comma-delimited string containing either 'new', 'updated', or 'obsolete' that is used to limit the imported Puppet classes
 --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
 --puppet-environment PUPPET_ENVIRONMENT_NAME  Puppet environment name
 --puppet-environment-id PUPPET_ENVIRONMENT_ID
 -h, --help                                    Print help

2.12.5. hammer capsule info

Capsule を表示します。

Usage:
    hammer capsule <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
 -h, --help                              Print help

Predefined field sets:
  ---------------|-----|---------|-----
  FIELDS         | ALL | DEFAULT | THIN
  ---------------|-----|---------|-----
  Id             | x   | x       | x
  Name           | x   | x       | x
  Url            | x   | x       |
  Features       | x   | x       |
  Features/      | x   | x       |
  Locations/     | x   | x       |
  Organizations/ | x   | x       |
  Created at     | x   | x       |
  Updated at     | x   | x       |
  ---------------|-----|---------|-----

2.12.6. hammer capsule list

Capsule を一覧表示します。

Usage:
    hammer capsule <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               Scope by locations
 --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       Scope by organizations
 --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
 -h, --help                              Print help

Predefined field sets:
  ---------|-----|---------|-----
  FIELDS   | ALL | DEFAULT | THIN
  ---------|-----|---------|-----
  Id       | x   | x       | x
  Name     | x   | x       | x
  Url      | x   | x       |
  Features | x   | x       |
  ---------|-----|---------|-----

Search / Order fields:
  feature             string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  url                 string

2.12.7. hammer capsule refresh-features

Capsule 機能をリフレッシュします。

Usage:
    hammer capsule refresh-features [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
 -h, --help                              Print help

2.12.8. hammer capsule update

Capsule を更新します。

Usage:
    hammer capsule update [OPTIONS]

Options:
 --download-policy DOWNLOAD_POLICY         Download Policy of the capsule, must be one of on_demand, immediate, inherit
 --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-ids LOCATION_IDS               REPLACE locations with given 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
 --location-title LOCATION_TITLE           Set the current location context for the request
 --location-titles LOCATION_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
 --locations LOCATION_NAMES                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --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-ids ORGANIZATION_IDS       REPLACE organizations with given 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
 --organization-title ORGANIZATION_TITLE   Set the current organization context for the request
 --organization-titles ORGANIZATION_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
 --organizations ORGANIZATION_NAMES        Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                           JSON is acceptable and preferred way for complex parameters
 --url URL
 -h, --help                                Print help
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

© 2024 Red Hat, Inc.