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.