Project

General

Profile

Bug #403

Query interface does not find out classes assigned via hostgroup

Added by Bearnard Hibbins over 8 years ago. Updated 6 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When querying the /hosts/query interface with class=foo a 404 is returned when the class exists within a hostgroup and not directly within the host definition.

History

#1 Updated by Ohad Levy over 8 years ago

  • Category set to 19
  • Target version set to 0.2

#2 Updated by Ohad Levy about 8 years ago

  • Assignee set to Paul Kelly
  • Target version deleted (0.2)

#3 Updated by Ohad Levy about 8 years ago

  • Assignee changed from Paul Kelly to Ohad Levy

it now possible (since #719) to use the rest API to achieve the same.

for example:

http://foreman/hosts?search=class+%3D+common&format=json (or yaml)

would yield the current result.

#4 Updated by Ohad Levy over 7 years ago

  • Status changed from New to Rejected
  • Assignee deleted (Ohad Levy)

as this is available via the new api / cli, the older query interface would be depreciated.

#5 Updated by Tomer Brisker 6 months ago

  • Category changed from 19 to Search

Also available in: Atom PDF