Project

General

Profile

Feature #24798

searching on a specific host's hosts/<id>/interfaces should only return the matching interface

Added by Ivan Necas over 1 year ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

1. Proposed title of this feature request

[RFE] searching on a specific host's hosts/&lt;id&gt;/interfaces should only return the matching interface

3. What is the nature and description of the request?

When querying the interfaces of a specific host and providing a search parameter that should narrow down the search, the results still return all of the interfaces.
This RFE is to have the api for /hosts/&lt;id&gt;/interfaces only return the matching interface when a matching ?search= is provided.

4. Why does the customer need this? (List the business requirements here)

For automation purposes.  Now the api must be called, and then all of the results iterated and parsed to find the correct interface.   Whereas, if the search only returned what was searched, that iteration and parsing would be unncessary

5. How would the customer like to achieve this? (List the functional requirements here)

Add the ability to search for a specific interface on a hosts/&lt;id&gt;/interfaces API call

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

When a host has multiple interfaces defined, the search will only return the one(s) matching the query.

Associated revisions

Revision 459b2cf3 (diff)
Added by Amit Karsale 7 months ago

Fixes #24798 - Host Interface API search

Revision 29cc0741 (diff)
Added by Tomer Brisker 7 months ago

Refs #24798 - only allow explicit search on nics

also fixed issue with search by domain (should be domain_id and not
domain)

History

#1 Updated by Amit Karsale about 1 year ago

  • Assignee set to Amit Karsale
  • Subject changed from searching on a specific host's hosts/<id>/interfaces should only return the matching interface to searching on a specific host's hosts/<id>/interfaces should only return the matching interface

#2 Updated by The Foreman Bot about 1 year ago

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

#3 Updated by The Foreman Bot 7 months ago

  • Fixed in Releases 1.24.0 added

#4 Updated by Amit Karsale 7 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF