BFI pull report via RESTAPI

I haven’t found the documentation yet, but is there a way in the API in BFI to pull a report data? I can see a report exists (https://server.domain:9081/api/reports/482), but how do I actually get the info out of the report?

I would think there would be some kind of documentation (if it’s avalible) here: https://www.ibm.com/support/knowledgecenter/en/SSKLLW_9.5.0/com.ibm.bigfix.inventory.doc/Inventory/integration/r_get_saved_reports.html

…but It’s possible I’m missing something

You are right, there is no way to programmatically pull a report out of BFI. I ended up pulling the actual information that I needed instead of creating a report out of it and pulling it.
Although i must say that this is something that needs to work out of the box.

1 Like

how did you pull the information? I haven’t quite figured out the BFI API yet and what/how to pull the info.

For eg, this is how i pulled list of software instances

http://myserver:8080/api/sam/v2/software_instances?columns[]=computer_name&columns[]=computer_os&columns[]=computer_dns_name&columns[]=computer_id&columns[]=component_publisher_name&columns[]=component_name&columns[]=component_release&criteria={ "and": [ ["is_present", "=", "1"], ["computer_details.computer_property_6", "=", "Server"] ] }&order[]=computer_name

So you just have to open your saved report and figure out how to pull that information directly using the rest api queries. computer_property_6 is a custom property that i have created on BFI and i had to get this property name from the database.

2 Likes