Show Table of Contents
4.4. Using Extended Searches
You can use the web UI to determine other search terms that you can use to construct your queries. Satellite 6 supports scoped search and tab completion to make this task easier.
For example, to search for hosts by their operating system, navigate to Search text box to display a list of search terms. One of the search terms for operating systems is
→ and click inside the os_description
, which you can use in your API query as follows:
$ curl -s -k -u sat_username:sat_password https://satellite6.example.com/api/v2/hosts?search=os_description=\"RHEL+Server+6.6\" | python -m json.tool { ... "results": [ { "name": "satellite6.example.com", "operatingsystem_id": 1, "operatingsystem_name": "RHEL Server 6.6", ... } ], "search": "os_description=\"RHEL Server 6.6\"", }