Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1474348 - [rfe] add host count to location API call
[rfe] add host count to location API call
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Organizations and Locations (Show other bugs)
6.2.10
Unspecified Unspecified
medium Severity medium (vote)
: Beta
: Unused
Assigned To: satellite6-bugs
Ales Dujicek
: FieldEngineering, FutureFeature, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-24 08:38 EDT by Chris Duryee
Modified: 2018-10-16 11:30 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-16 11:28:38 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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
Red Hat Product Errata RHSA-2018:2927 None None None 2018-10-16 11:30 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.
Comment 6 errata-xmlrpc 2018-10-16 11:28:38 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927

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