2.59. hammer product
製品を操作します。
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.59.1. hammer product create
製品を作成します。
Usage: hammer product create [OPTIONS] Options: --description DESCRIPTION Product description --gpg-key-id GPG_KEY_ID Identifier of the GPG key --label LABEL --name NAME Product name --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID ID of the organization --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --ssl-ca-cert-id SSL_CA_CERT_ID Idenifier of the SSL CA Cert --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert --ssl-client-key-id SSL_CLIENT_KEY_ID Identifier of the SSL Client Key --sync-plan SYNC_PLAN_NAME Sync plan name to search by --sync-plan-id SYNC_PLAN_ID Plan numeric identifier -h, --help Print help
2.59.2. hammer product delete
製品を破棄します。
Usage: hammer product <delete|destroy> [OPTIONS] Options: --id ID Product numeric identifier --name NAME Product 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.59.3. hammer product info
製品を表示します。
Usage: hammer product <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 Product numeric identifier --name NAME Product 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 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 | ---------------------|-----|---------|-----
2.59.4. hammer product list
製品の一覧を表示します。
Usage: hammer product <list|index> [OPTIONS] Options: --available-for AVAILABLE_FOR Interpret specified object to return only Products that can be associated with specified object. Only 'sync_plan' is supported. --custom CUSTOM Return custom products only One of true/false, yes/no, 1/0. --enabled ENABLED Return enabled products only 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 --full-result FULL_RESULT Whether or not to show all results One of true/false, yes/no, 1/0. --include-available-content INCLUDE_AVAILABLE_CONTENT Whether to include available content attribute in results One of true/false, yes/no, 1/0. --name NAME Filter products by name --order ORDER Sort field and order, eg. 'id DESC' --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Filter products by organization --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 --redhat-only REDHAT_ONLY Return Red Hat (non-custom) products only One of true/false, yes/no, 1/0. --search SEARCH Search string --subscription SUBSCRIPTION_NAME Subscription name to search by --subscription-id SUBSCRIPTION_ID Filter products by subscription --sync-plan SYNC_PLAN_NAME Sync plan name to search by --sync-plan-id SYNC_PLAN_ID 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 | -------------|-----|---------|----- Search / Order fields: description text label string name string organization_id integer redhat Values: true, false
2.59.5. hammer product remove-sync-plan
割り当て同期プランおよび製品を削除します。
Usage: hammer product remove-sync-plan [OPTIONS] Options: --description DESCRIPTION Product description --gpg-key-id GPG_KEY_ID Identifier of the GPG key --id ID Product numeric identifier --name NAME Product name to search by --new-name NEW_NAME Product name --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 --ssl-ca-cert-id SSL_CA_CERT_ID Idenifier of the SSL CA Cert --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert --ssl-client-key-id SSL_CLIENT_KEY_ID Identifier of the SSL Client Key -h, --help Print help
2.59.6. hammer product set-sync-plan
同期プランを製品に割り当てます。
Usage: hammer product set-sync-plan [OPTIONS] Options: --id ID Product numeric identifier --name NAME Product name to search by --new-name NEW_NAME Product name --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 --ssl-ca-cert-id SSL_CA_CERT_ID Idenifier of the SSL CA Cert --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert --ssl-client-key-id SSL_CLIENT_KEY_ID Identifier of the SSL Client Key --sync-plan SYNC_PLAN_NAME Sync plan name to search by --sync-plan-id SYNC_PLAN_ID Plan numeric identifier -h, --help Print help
2.59.7. hammer product synchronize
製品のすべてのリポジトリーを同期します。
Usage: hammer product synchronize [OPTIONS] Options: --async Do not wait for the task --id ID Product ID --name NAME Product 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.59.8. hammer product update
製品を更新します。
Usage: hammer product update [OPTIONS] Options: --description DESCRIPTION Product description --gpg-key-id GPG_KEY_ID Identifier of the GPG key --id ID Product numeric identifier --name NAME Product name to search by --new-name NEW_NAME Product name --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 --ssl-ca-cert-id SSL_CA_CERT_ID Idenifier of the SSL CA Cert --ssl-client-cert-id SSL_CLIENT_CERT_ID Identifier of the SSL Client Cert --ssl-client-key-id SSL_CLIENT_KEY_ID Identifier of the SSL Client Key --sync-plan SYNC_PLAN_NAME Sync plan name to search by --sync-plan-id SYNC_PLAN_ID Plan numeric identifier -h, --help Print help
2.59.9. hammer product update-proxy
製品の HTTP プロキシーを更新します。
Usage: hammer product update-proxy [OPTIONS] Options: --http-proxy HTTP_PROXY_NAME Name to search by --http-proxy-id HTTP_PROXY_ID HTTP Proxy identifier to associated --http-proxy-policy HTTP_PROXY_POLICY Policy for HTTP Proxy for content sync Possible value(s): 'global_default_http_proxy', 'none', 'use_selected_http_proxy' --ids IDS List of product 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 -h, --help Print help