Feature #21012

Add host count to location API call

Added by Daniel Lobato Garcia 8 months ago. Updated 6 months ago.

Status:Closed
Priority:Normal
Assigned To:-
Category:Organizations and Locations
Target version:-
Difficulty: Bugzilla link:1474348
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4860
Story points-
Velocity based estimate-
Release1.17.0Release relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1474348

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.

Associated revisions

Revision 20a633d6
Added by Nagoor Shaik 6 months ago

Fixes #21012 - taxonomies API to show hosts associated with it

History

#1 Updated by The Foreman Bot 8 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4860 added

#2 Updated by Tomer Brisker 6 months ago

  • Release set to 1.17.0
  • Subject changed from Add host count to location API call to Add host count to location API call

#3 Updated by Nagoor Shaik 6 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF