Bug #35879
closedKatello API activation_key/:id/product_content does not expose per_page
Description
Katello's API documentation doesn't expose paging in /katello/api/activation_keys/:id/product_content
[1]. This limits the theforeman.foreman.activation_key
Ansible module [2] to a maximum of 20 products - in case you have more, the module doesn't know about all products and is no longer idempotent. The same is true for hammer
, it shows about additional pages, but doesn't accept to page or increase the page size. This becomes painful when creating keys for Library, Organization View on a Red Hat Satellite with Simple Content Access enabled.
[1] https://theforeman.org/plugins/katello/3.17/api/apidoc/v2/activation_keys/product_content.html
[2] https://docs.ansible.com/ansible/latest/collections/theforeman/foreman/activation_key_module.html
From my understanding it's sufficient to announce the per_page
and page parameters in the API documentation to make apypie aware of the parameters. I'm not sure if hammer
needs special treating.
Updated by Beat Rubischon about 2 years ago
Updated by Evgeni Golov about 2 years ago
- Is duplicate of Bug #35633: Activation Keys "product_content" API doesn't expose the "per_page" parameter added
Updated by Evgeni Golov about 2 years ago
This is a duplicate, and FAM has a workaround for that implemented (see https://github.com/theforeman/foreman-ansible-modules/pull/1501 and https://bugzilla.redhat.com/show_bug.cgi?id=2134605) which still needs a release :)
Updated by Samir Jha about 2 years ago
- Target version set to Katello Recycle Bin
- Triaged changed from No to Yes