[Satellite 6]: All the arguments passed are not processed in URL for API query to list all hosts
Issue
- The following curl command only recognizes the first option on the URL. In this example, only search="RedHat" is recognized, and per_page=5000 is ignored.
curl -X GET -s -k -u "admin:changeme" -H "Accept:application/json,version=2" -H "Content-Type:application/json" https://satellite.example.com/api/v2/hosts?search="RedHat"&per_page=5000
This command returns only 20 hosts that have the valid search string RedHat.
Environment
Red Hat Satellite 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
