[Satellite 6]: All the arguments passed are not processed in URL for API query to list all hosts

Solution In Progress - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content