1. Proposed title of this feature request ==> [RFE] Add --page and --per-page flag to list hammer activation-key with product-content option ============================================================= hammer activation-key product-content --help 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[-id|-title|-label] Name/Title/Label/Id of associated organization -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. What are the nature and description of the request? ==> Customer is using anisble playbook hence looking for hammer commands to get it executed using cli 3. How would you like to achieve this? (List the functional requirements here). Add the option of --page and --per-page to get the details of activation-key with product-content option.
It should be noted that hammer will suggest these page options exist when they really don't, for example: $ sudo hammer activation-key product-content --name <name> --organization <org_name> --fields Name,Label,Override --content-access-mode-all true --content-access-mode-env true ----------------------------------|-------------------------------------------------|---------- NAME | LABEL | OVERRIDE ----------------------------------|-------------------------------------------------|---------- Product one | product_one | enabled:0 ... Product 20 | product_20 | enabled:1 ----------------------------------|-------------------------------------------------|---------- Page 1 of 2 (use --page and --per-page for navigation). $ sudo hammer activation-key product-content --name <name> --organization <org_name> --fields Name,Label,Override --content-access-mode-all true --content-access-mode-env true --per-page 200 Error: Unrecognised option '--per-page'. The pagination issue can be worked around by changing the "Entries per page" setting on the Satellite webui to the desired amount which is located in Administer -> Settings -> General tab.