Actions
Feature #21012
closedAdd host count to location API call
Difficulty:
Triaged:
Bugzilla link:
Pull request:
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.
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4860 added
Updated by Tomer Brisker almost 7 years ago
- Subject changed from Add host count to location API call to Add host count to location API call
- Translation missing: en.field_release set to 296
Updated by Nagoor Shaik almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 20a633d62478ee432e0992710ab2bd6b903296db.
Actions