3.2. hammer activation-key
操作激活码
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
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
3.2.1. hammer activation-key add-host-collection 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
关联资源
Usage: hammer activation-key add-host-collection [OPTIONS] Options: --host-collection VALUE Host collection name to search by --host-collection-id NUMBER Id of the host collection --id VALUE ID of the activation key --name VALUE Activation key 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 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
Usage:
hammer activation-key add-host-collection [OPTIONS]
Options:
--host-collection VALUE Host collection name to search by
--host-collection-id NUMBER Id of the host collection
--id VALUE ID of the activation key
--name VALUE Activation key 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
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
3.2.2. hammer activation-key add-subscription 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
添加订阅
Usage: hammer activation-key add-subscription [OPTIONS] Options: --id NUMBER ID of the activation key --name VALUE Activation key 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 --quantity NUMBER Quantity of this subscription to add --subscription VALUE Subscription name to search by --subscription-id NUMBER Subscription identifier --subscriptions SCHEMA Array of subscriptions to add -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 Following parameters accept format defined by its schema (bold are required; <> contains acceptable type; [] contains acceptable value): --subscriptions "id=<string>\,quantity=<numeric>, ... "
Usage:
hammer activation-key add-subscription [OPTIONS]
Options:
--id NUMBER ID of the activation key
--name VALUE Activation key 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
--quantity NUMBER Quantity of this subscription to add
--subscription VALUE Subscription name to search by
--subscription-id NUMBER Subscription identifier
--subscriptions SCHEMA Array of subscriptions to add
-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
Following parameters accept format defined by its schema (bold are required; <> contains acceptable type; [] contains acceptable value):
--subscriptions "id=<string>\,quantity=<numeric>, ... "
3.2.3. hammer activation-key content-override 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
覆盖产品内容默认值
Usage: hammer activation-key content-override [OPTIONS] Options: --content-label VALUE Label of the content --id NUMBER ID of the activation key --name VALUE Activation key 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 --override-name VALUE 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 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
Usage:
hammer activation-key content-override [OPTIONS]
Options:
--content-label VALUE Label of the content
--id NUMBER ID of the activation key
--name VALUE Activation key 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
--override-name VALUE 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
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
3.2.4. hammer activation-key copy 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
复制激活码
Usage: hammer activation-key copy [OPTIONS] Options: --id NUMBER ID of the activation key --name VALUE Activation key name to search by --new-name VALUE Name of new activation key --organization VALUE Organization name to search by --organization-id NUMBER Organization identifier --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
Usage:
hammer activation-key copy [OPTIONS]
Options:
--id NUMBER ID of the activation key
--name VALUE Activation key name to search by
--new-name VALUE Name of new activation key
--organization VALUE Organization name to search by
--organization-id NUMBER Organization identifier
--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
3.2.5. hammer activation-key create 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
创建激活码
Usage: hammer activation-key create [OPTIONS] Options: --auto-attach BOOLEAN Auto attach subscriptions upon registration --content-view VALUE Content view name to search by --content-view-id NUMBER Content view id --description VALUE Description --environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead) --environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead) --lifecycle-environment VALUE Lifecycle environment name to search by --lifecycle-environment-id NUMBER Environment id --max-hosts NUMBER Maximum number of registered content hosts --name VALUE Name --organization VALUE Organization name to search by --organization-id NUMBER Organization identifier --organization-label VALUE Organization label to search by --organization-title VALUE Organization title --purpose-addons LIST Sets the system add-ons --purpose-role VALUE Sets the system purpose usage --purpose-usage VALUE Sets the system purpose usage --release-version VALUE Content release version --service-level VALUE Service level --unlimited-hosts Set hosts max to unlimited -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
Usage:
hammer activation-key create [OPTIONS]
Options:
--auto-attach BOOLEAN Auto attach subscriptions upon registration
--content-view VALUE Content view name to search by
--content-view-id NUMBER Content view id
--description VALUE Description
--environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use
--lifecycle-environment instead)
--environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead)
--lifecycle-environment VALUE Lifecycle environment name to search by
--lifecycle-environment-id NUMBER Environment id
--max-hosts NUMBER Maximum number of registered content hosts
--name VALUE Name
--organization VALUE Organization name to search by
--organization-id NUMBER Organization identifier
--organization-label VALUE Organization label to search by
--organization-title VALUE Organization title
--purpose-addons LIST Sets the system add-ons
--purpose-role VALUE Sets the system purpose usage
--purpose-usage VALUE Sets the system purpose usage
--release-version VALUE Content release version
--service-level VALUE Service level
--unlimited-hosts Set hosts max to unlimited
-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
3.2.6. hammer activation-key delete 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
销毁激活码
Usage: hammer activation-key <delete|destroy> [OPTIONS] Options: --id NUMBER ID of the activation key --name VALUE Activation key 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
Usage:
hammer activation-key <delete|destroy> [OPTIONS]
Options:
--id NUMBER ID of the activation key
--name VALUE Activation key 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
3.2.7. hammer activation-key host-collections 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
列出关联的主机集合
Usage: hammer activation-key host-collections [OPTIONS] Options: --available-for VALUE Interpret specified object to return only Host Collections that can be associated with specified object. The value 'host' is supported. --fields LIST Show specified fields or predefined field sets only. (See below) --full-result BOOLEAN Whether or not to show all results --host-id NUMBER Filter products by host id --id VALUE ID of activation key --name VALUE Name of activation key --organization VALUE Organization name to search by --organization-id NUMBER Organization identifier --organization-label VALUE Organization label to search by --organization-title VALUE Organization title --sort-by VALUE Field to sort the results on --sort-order VALUE 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 -------|-----|---------|----- 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
Usage:
hammer activation-key host-collections [OPTIONS]
Options:
--available-for VALUE Interpret specified object to return only Host Collections that can be
associated with specified object. The value 'host' is supported.
--fields LIST Show specified fields or predefined field sets only. (See below)
--full-result BOOLEAN Whether or not to show all results
--host-id NUMBER Filter products by host id
--id VALUE ID of activation key
--name VALUE Name of activation key
--organization VALUE Organization name to search by
--organization-id NUMBER Organization identifier
--organization-label VALUE Organization label to search by
--organization-title VALUE Organization title
--sort-by VALUE Field to sort the results on
--sort-order VALUE 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
-------|-----|---------|-----
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
3.2.8. hammer activation-key info 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
显示激活码
Usage: hammer activation-key <info|show> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id NUMBER ID of the activation key --name VALUE Activation key name to search by --organization VALUE Organization name to search by --organization-id NUMBER Organization identifier --organization-label VALUE Organization label to search by --organization-title VALUE 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 | ------------------------------|-----|---------|----- 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
Usage:
hammer activation-key <info|show> [OPTIONS]
Options:
--fields LIST Show specified fields or predefined field sets only. (See below)
--id NUMBER ID of the activation key
--name VALUE Activation key name to search by
--organization VALUE Organization name to search by
--organization-id NUMBER Organization identifier
--organization-label VALUE Organization label to search by
--organization-title VALUE 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 |
------------------------------|-----|---------|-----
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
3.2.9. hammer activation-key 列表 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
列出激活码
Usage: hammer activation-key <list|index> [OPTIONS] Options: --content-view VALUE Content view name to search by --content-view-id NUMBER Content view identifier --environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead) --environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead) --fields LIST Show specified fields or predefined field sets only. (See below) --full-result BOOLEAN Whether or not to show all results --lifecycle-environment VALUE Lifecycle environment name to search by --lifecycle-environment-id NUMBER Environment identifier --name VALUE Activation key name to filter by --order VALUE Sort field and order, eg. 'id DESC' --organization VALUE Organization name to search by --organization-id NUMBER Organization identifier --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 --search VALUE 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 | ----------------------|-----|---------|----- 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: 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
Usage:
hammer activation-key <list|index> [OPTIONS]
Options:
--content-view VALUE Content view name to search by
--content-view-id NUMBER Content view identifier
--environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use
--lifecycle-environment instead)
--environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead)
--fields LIST Show specified fields or predefined field sets only. (See below)
--full-result BOOLEAN Whether or not to show all results
--lifecycle-environment VALUE Lifecycle environment name to search by
--lifecycle-environment-id NUMBER Environment identifier
--name VALUE Activation key name to filter by
--order VALUE Sort field and order, eg. 'id DESC'
--organization VALUE Organization name to search by
--organization-id NUMBER Organization identifier
--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
--search VALUE 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 |
----------------------|-----|---------|-----
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:
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
3.2.10. hammer activation-key product-content 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
列出关联的产品
Usage: hammer activation-key product-content [OPTIONS] Options: --content-access-mode-all BOOLEAN Get all content available, not just that provided by subscriptions --content-access-mode-env BOOLEAN Limit content to just that available in the activation key's content view version --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE ID of the activation key --name VALUE Activation key 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 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 | -----------------|-----|---------|----- 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
Usage:
hammer activation-key product-content [OPTIONS]
Options:
--content-access-mode-all BOOLEAN Get all content available, not just that provided by subscriptions
--content-access-mode-env BOOLEAN Limit content to just that available in the activation key's content view
version
--fields LIST Show specified fields or predefined field sets only. (See below)
--id VALUE ID of the activation key
--name VALUE Activation key 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
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 |
-----------------|-----|---------|-----
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
3.2.11. hammer activation-key remove-host-collection 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
解除关联资源
Usage: hammer activation-key remove-host-collection [OPTIONS] Options: --host-collection VALUE Host collection name to search by --host-collection-id NUMBER Id of the host collection --id VALUE ID of the activation key --name VALUE Activation key 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 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
Usage:
hammer activation-key remove-host-collection [OPTIONS]
Options:
--host-collection VALUE Host collection name to search by
--host-collection-id NUMBER Id of the host collection
--id VALUE ID of the activation key
--name VALUE Activation key 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
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
3.2.12. hammer activation-key remove-subscription 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
删除订阅
Usage: hammer activation-key remove-subscription [OPTIONS] Options: --id NUMBER ID of the activation key --name VALUE Activation key 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 --subscription-id VALUE ID of subscription -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
Usage:
hammer activation-key remove-subscription [OPTIONS]
Options:
--id NUMBER ID of the activation key
--name VALUE Activation key 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
--subscription-id VALUE ID of subscription
-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
3.2.13. hammer activation-key 订阅 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
列出关联的订阅
Usage: hammer activation-key subscriptions [OPTIONS] Options: --activation-key VALUE Activation key name to search by --activation-key-id VALUE Activation key ID --available-for VALUE Object to show subscriptions available for, either 'host' or 'activation_key' --fields LIST Show specified fields or predefined field sets only. (See below) --full-result BOOLEAN Whether or not to show all results --host VALUE Host name --host-id VALUE Id of a host --id VALUE ID of the activation key --match-host BOOLEAN Ignore subscriptions that are unavailable to the specified host --match-installed BOOLEAN Return subscriptions that match installed products of the specified host --name VALUE Activation key name to search by --no-overlap BOOLEAN Return subscriptions which do not overlap with a currently-attached subscription --order VALUE Sort field and order, eg. 'id DESC' --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 --page NUMBER Page number, starting at 1 --per-page NUMBER Number of results per page to return --search VALUE 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 -----------|-----|-------- 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
Usage:
hammer activation-key subscriptions [OPTIONS]
Options:
--activation-key VALUE Activation key name to search by
--activation-key-id VALUE Activation key ID
--available-for VALUE Object to show subscriptions available for, either 'host' or 'activation_key'
--fields LIST Show specified fields or predefined field sets only. (See below)
--full-result BOOLEAN Whether or not to show all results
--host VALUE Host name
--host-id VALUE Id of a host
--id VALUE ID of the activation key
--match-host BOOLEAN Ignore subscriptions that are unavailable to the specified host
--match-installed BOOLEAN Return subscriptions that match installed products of the specified host
--name VALUE Activation key name to search by
--no-overlap BOOLEAN Return subscriptions which do not overlap with a currently-attached subscription
--order VALUE Sort field and order, eg. 'id DESC'
--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
--page NUMBER Page number, starting at 1
--per-page NUMBER Number of results per page to return
--search VALUE 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
-----------|-----|--------
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
3.2.14. hammer activation-key 更新 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
更新激活码
Usage: hammer activation-key update [OPTIONS] Options: --auto-attach BOOLEAN Auto attach subscriptions upon registration --content-view VALUE Content view name to search by --content-view-id NUMBER Content view id --description VALUE Description --environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use --lifecycle-environment instead) --environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead) --id NUMBER ID of the activation key --lifecycle-environment VALUE Lifecycle environment name to search by --lifecycle-environment-id NUMBER Environment id --max-hosts NUMBER Maximum number of registered content hosts --name VALUE Name --new-name VALUE Name --organization VALUE Organization name to search by --organization-id NUMBER Organization identifier --organization-label VALUE Organization label to search by --organization-title VALUE Organization title --purpose-addons LIST Sets the system add-ons --purpose-role VALUE Sets the system purpose usage --purpose-usage VALUE Sets the system purpose usage --release-version VALUE Content release version --service-level VALUE Service level --unlimited-hosts Set hosts max to unlimited -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
Usage:
hammer activation-key update [OPTIONS]
Options:
--auto-attach BOOLEAN Auto attach subscriptions upon registration
--content-view VALUE Content view name to search by
--content-view-id NUMBER Content view id
--description VALUE Description
--environment VALUE Lifecycle environment name to search by (--environment is deprecated: Use
--lifecycle-environment instead)
--environment-id NUMBER (--environment-id is deprecated: Use --lifecycle-environment-id instead)
--id NUMBER ID of the activation key
--lifecycle-environment VALUE Lifecycle environment name to search by
--lifecycle-environment-id NUMBER Environment id
--max-hosts NUMBER Maximum number of registered content hosts
--name VALUE Name
--new-name VALUE Name
--organization VALUE Organization name to search by
--organization-id NUMBER Organization identifier
--organization-label VALUE Organization label to search by
--organization-title VALUE Organization title
--purpose-addons LIST Sets the system add-ons
--purpose-role VALUE Sets the system purpose usage
--purpose-usage VALUE Sets the system purpose usage
--release-version VALUE Content release version
--service-level VALUE Service level
--unlimited-hosts Set hosts max to unlimited
-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