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."
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
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