Bug 1474348 - [rfe] add host count to location API call
[rfe] add host count to location API call
Status: ON_QA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Organizations and Locations (Show other bugs)
Unspecified Unspecified
medium Severity medium (vote)
: Beta
: --
Assigned To: satellite6-bugs
: FieldEngineering, FutureFeature, Triaged
Depends On:
  Show dependency treegraph
Reported: 2017-07-24 08:38 EDT by Chris Duryee
Modified: 2018-05-22 02:14 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 21012 None None None 2017-09-19 12:16 EDT

  None (edit)
Description Chris Duryee 2017-07-24 08:38:18 EDT
Description of problem:

Currently, the API call to "/api/v2/locations/<id>" shows a lot of info, but does not show the number of hosts associated with the location. This is useful for users who use the API to produce reports on how many systems are in each location.

This info is available via the web UI in the locations page, but in order to get at the same information via the API, you have to do a search for each location and count the results.

Version-Release number of selected component (if applicable): 6.2.10
Comment 2 Daniel Lobato Garcia 2017-09-19 12:15:58 EDT
Created redmine issue http://projects.theforeman.org/issues/21012 from this bug
Comment 3 pm-sat@redhat.com 2017-11-27 08:20:31 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21012 has been resolved.

Note You need to log in before you can comment on or make changes to this bug.