Project

General

Profile

Actions

Feature #21012

closed

Add host count to location API call

Added by Daniel Lobato Garcia over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions

Also available in: Atom PDF