Bug 1472279

Summary: [RFE] expand the api to provide more information related to infrastructure providers
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: APIAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED ERRATA QA Contact: Martin Kourim <mkourim>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: abellott, cpelland, fdewaley, gtanzill, jhardy, jocarter, obarenbo, yrudman
Target Milestone: MVPKeywords: FutureFeature, RFE
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard: api
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-07 23:02:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1555371, 1597403    

Description Felix Dewaleyne 2017-07-18 10:51:51 UTC
private note impending

Comment 3 Felix Dewaleyne 2017-08-03 09:09:18 UTC
the customer shared an additional requirement for the api call to list all networks : they want an array of all the hosts which have that network

"list all LANs and into specific LAN you will have attribute 'ems_id' - array of all hosts on which is LAN associated."

Comment 7 Jillian Tullo 2018-03-06 18:57:41 UTC
Part 1: https://github.com/ManageIQ/manageiq-api/pull/338

Comment 10 Martin Kourim 2018-07-11 07:25:56 UTC
Verified on 5.10.0.3 that it's possible to obtain the info customer wanted using:
GET /api/providers/:id/lans
GET /api/hosts/:id/lans
GET /api/providers/:id/networks
GET /api/providers/:id/folders

or in a single query:
GET /api/providers/:id?expand=resources,lans,networks,folders

Comment 11 errata-xmlrpc 2019-02-07 23:02:36 UTC
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-2019:0212