検索

2.2. hammer activation-key

download PDF

アクティベーションキーを操作します

Usage:
    hammer activation-key [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 add-host-collection           Associate a resource
 add-subscription              Add subscription
 content-override              Override product content defaults
 copy                          Copy an activation key
 create                        Create an activation key
 delete, destroy               Destroy an activation key
 host-collections              List associated host collections
 info, show                    Show an activation key
 list, index                   List activation keys
 product-content               List associated products
 remove-host-collection        Disassociate a resource
 remove-subscription           Remove subscription
 subscriptions                 List associated subscriptions
 update                        Update an activation key

Options:
 -h, --help                    Print help

2.2.1. hammer activation-key add-host-collection

リソースを関連付けます。

Usage:
    hammer activation-key add-host-collection [OPTIONS]

Options:
 --host-collection HOST_COLLECTION_NAME  Host collection name to search by
 --host-collection-id HOST_COLLECTION_ID Id of the host collection
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --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.2.2. hammer activation-key add-subscription

サブスクリプションを追加します。

Usage:
    hammer activation-key add-subscription [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --quantity QUANTITY                     Quantity of this subscription to add
 --subscription SUBSCRIPTION_NAME        Subscription name to search by
 --subscription-id SUBSCRIPTION_ID       Subscription identifier
 --subscriptions SUBSCRIPTIONS           Array of subscriptions to add
                                         Comma separated list of values defined by a schema. See Option details section below.
                                         JSON is acceptable and preferred way for complex parameters
 -h, --help                              Print help

Option details:
  Following parameters accept format defined by its schema (bold are required; <> contain acceptable type; [] contain acceptable value):

  --subscriptions     "id=<string>\,quantity=<numeric>, ... "

2.2.3. hammer activation-key content-override

製品コンテンツのデフォルトを上書きします。

Usage:
    hammer activation-key content-override [OPTIONS]

Options:
 --content-label CONTENT_LABEL           Label of the content
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --override-name OVERRIDE_NAME           Override parameter key or name.
                                         To enable or disable a repo select 'enabled'.
                                         Default value: enabled
                                         Default: "enabled"
 --remove                                Remove a content override
 --value VALUE                           Override value. Note for repo enablement you can use a boolean value
 -h, --help                              Print help

2.2.4. hammer activation-key copy

アクティベーションキーをコピーします。

Usage:
    hammer activation-key copy [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --new-name NEW_NAME                     Name of new activation key
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.2.5. hammer activation-key create

アクティベーションキーを作成します。

Usage:
    hammer activation-key create [OPTIONS]

Options:
 --auto-attach AUTO_ATTACH                           Auto attach subscriptions upon registration
                                                     One of true/false, yes/no, 1/0.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view id
 --description DESCRIPTION                           Description
 --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)
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --max-hosts MAX_HOSTS                               Maximum number of registered content hosts
 --name NAME                                         Name
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --purpose-addons PURPOSE_ADDONS                     Sets the system add-ons
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --purpose-role PURPOSE_ROLE                         Sets the system purpose usage
 --purpose-usage PURPOSE_USAGE                       Sets the system purpose usage
 --release-version RELEASE_VERSION                   Content release version
 --service-level SERVICE_LEVEL                       Service level
 --unlimited-hosts                                   Set hosts max to unlimited
 -h, --help                                          Print help

2.2.6. hammer activation-key delete

アクティベーションキーを破棄します。

Usage:
    hammer activation-key <delete|destroy> [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.2.7. hammer activation-key host-collections

関連付けられているホストコレクションを一覧表示します。

Usage:
    hammer activation-key host-collections [OPTIONS]

Options:
 --available-for AVAILABLE_FOR           Interpret specified object to return only Host Collections that can be associated with specified object. The value 'host' is supported.
 --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-id HOST_ID                       Filter products by host id
 --id ID                                 ID of activation key
 --name NAME                             Name of activation key
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --sort-by SORT_BY                       Field to sort the results on
 --sort-order SORT_ORDER                 How to order the sorted results (e.g. ASC for ascending)
 -h, --help                              Print help

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

2.2.8. hammer activation-key info

アクティベーションキーを表示します。

Usage:
    hammer activation-key <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                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --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
  ------------------------------|-----|---------|-----
  Name                          | x   | x       | x
  Id                            | x   | x       | x
  Description                   | x   | x       |
  Host limit                    | x   | x       |
  Auto attach                   | x   | x       |
  Release version               | x   | x       |
  Lifecycle environment         | x   | x       |
  Content view                  | x   | x       |
  Host collections/id           | x   | x       |
  Host collections/name         | x   | x       |
  System purpose/service level  | x   | x       |
  System purpose/purpose usage  | x   | x       |
  System purpose/purpose role   | x   | x       |
  System purpose/purpose addons | x   | x       |
  ------------------------------|-----|---------|-----

2.2.9. hammer activation-key list

アクティベーションキーを一覧表示します。

Usage:
    hammer activation-key <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view identifier
 --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)
 --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.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Activation key name to filter by
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --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 | THIN
  ----------------------|-----|---------|-----
  Id                    | x   | x       | x
  Name                  | x   | x       | x
  Host limit            | x   | x       |
  Lifecycle environment | x   | x       |
  Content view          | x   | x       |
  ----------------------|-----|---------|-----

Search / Order fields:
  addon               string
  content_view        string
  content_view_id     integer
  description         text
  environment         string
  name                string
  organization_id     integer
  role                string
  subscription_id     string
  subscription_name   string
  usage               string

2.2.10. hammer activation-key product-content

関連付けられた製品を一覧表示します。

Usage:
    hammer activation-key product-content [OPTIONS]

Options:
 --content-access-mode-all CONTENT_ACCESS_MODE_ALL Get all content available, not just that provided by subscriptions
                                                   One of true/false, yes/no, 1/0.
 --content-access-mode-env CONTENT_ACCESS_MODE_ENV Limit content to just that available in the activation key's content view version
                                                   One of true/false, yes/no, 1/0.
 --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 activation key
 --name NAME                                       Activation key name to search by
 --organization ORGANIZATION_NAME                  Organization name to search by
 --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 | THIN
  -----------------|-----|---------|-----
  Id               | x   | x       | x
  Name             | x   | x       | x
  Type             | x   | x       |
  Url              | x   | x       |
  Gpg key          | x   | x       |
  Label            | x   | x       |
  Default enabled? | x   | x       |
  Override         | x   | x       |
  -----------------|-----|---------|-----

2.2.11. hammer activation-key remove-host-collection

リソースの関連付けを解除します。

Usage:
    hammer activation-key remove-host-collection [OPTIONS]

Options:
 --host-collection HOST_COLLECTION_NAME  Host collection name to search by
 --host-collection-id HOST_COLLECTION_ID Id of the host collection
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --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.2.12. hammer activation-key remove-subscription

サブスクリプションを削除します。

Usage:
    hammer activation-key remove-subscription [OPTIONS]

Options:
 --id ID                                 ID of the activation key
 --name NAME                             Activation key name to search by
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 --subscription-id SUBSCRIPTION_ID       ID of subscription
 -h, --help                              Print help

2.2.13. hammer activation-key subscriptions

関連付けられたサブスクリプションを一覧表示します。

Usage:
    hammer activation-key subscriptions [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
 --id ACTIVATION_KEY_ID                  ID of the activation key
 --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 ACTIVATION_KEY_NAME              Activation key name to search by
 --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
  Name       | x   | x
  Attached   | x   | x
  Quantity   | x   | x
  Start date | x   | x
  End date   | x   | x
  Support    | x   | x
  Contract   | x   | x
  Account    | x   | x
  -----------|-----|--------

2.2.14. hammer activation-key update

アクティベーションキーを更新します。

Usage:
    hammer activation-key update [OPTIONS]

Options:
 --auto-attach AUTO_ATTACH                           Auto attach subscriptions upon registration
                                                     One of true/false, yes/no, 1/0.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view id
 --description DESCRIPTION                           Description
 --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 activation key
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --max-hosts MAX_HOSTS                               Maximum number of registered content hosts
 --name NAME                                         Activation key name to search by
 --new-name NEW_NAME                                 Name
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --purpose-addons PURPOSE_ADDONS                     Sets the system add-ons
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --purpose-role PURPOSE_ROLE                         Sets the system purpose usage
 --purpose-usage PURPOSE_USAGE                       Sets the system purpose usage
 --release-version RELEASE_VERSION                   Content release version
 --service-level SERVICE_LEVEL                       Service level
 --unlimited-hosts                                   Set hosts max to unlimited
 -h, --help                                          Print help
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

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

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

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

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

会社概要

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

© 2024 Red Hat, Inc.