Bigfix inventory API is not working

Hi all,

Do we need to do any extra configuration to enable bigfix inventory REST API.
REST API is not working for me.

I am using my browser and running the below query
https://localhost:9081/api/sam/about?token=34b4ec368dfdfefc6a72f56ce35efd8c9914a10e

Token I have taken from a administrator privileged user

Thanks,

Dilu

Nope, it should work without any additional configuration.
I just tested on my fresh install BFI, I logged into the dashboard of my admin account, check profile for token and used your API call with my IP and my token, worked like a charm.

Thank you for your response.

Any idea, what troubleshooting steps I have to take next?

What is the error message you are getting when you try to run this API call? You could check the tema.log file as well for error messages regarding this call.

–Mark

Thank you Mark.

I have checked the tema.log immediately after opening this url in browser
https://:9081/api/sam/about?token=34b4ec368dfdfefc6a72f56ce35efd8c9914a10e
I have got an error in the browser that “this page can not be displayed”

In tema.log, i have got this

[11/6/16 10:42:21:442 UTC] 0002ffde com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started POST “/session?request_uri=%2F” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:21 +0000

[11/6/16 10:42:21:442 UTC] 0002ffde com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by SessionController#create as HTML

[11/6/16 10:42:21:442 UTC] 0002ffde com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Parameters: {“utf8”=>“?”, “authenticity_token”=>“[FILTERED]”, “session”=>{“username”=>“bfiadmin”, “password”=>“[FILTERED]”, “anchorhash”=>“”, “time_zone”=>“Asia/Dubai”}, “commit”=>“Login”, “request_uri”=>“/”}

[11/6/16 10:42:21:676 UTC] 0002ffde com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Redirected to https://localhost/#

[11/6/16 10:42:21:676 UTC] 0002ffde com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 302 Found in 234ms

[11/6/16 10:42:21:723 UTC] 0002ffe7 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:21 +0000

[11/6/16 10:42:21:723 UTC] 0002ffe7 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by WelcomeController#index as HTML

[11/6/16 10:42:21:786 UTC] 0002ffe7 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Redirected to https://localhost/sam

[11/6/16 10:42:21:786 UTC] 0002ffe7 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 302 Found in 63ms

[11/6/16 10:42:21:801 UTC] 0002ffd2 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/sam” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:21 +0000

[11/6/16 10:42:21:801 UTC] 0002ffd2 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by SAM::OverviewController#show as HTML

[11/6/16 10:42:22:567 UTC] 0002ffd2 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Rendered D:/Program files/ibm/BFI/wlp/usr/servers/server1/apps/tema.war/WEB-INF/domains/sam/app/views/sam/overview/show.html.rb (703.0ms)

[11/6/16 10:42:22:567 UTC] 0002ffd2 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 200 OK in 766ms (Views: 719.0ms)

[11/6/16 10:42:22:614 UTC] 0002ffe4 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/images/stateWarning_obj.gif” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:22 +0000

[11/6/16 10:42:23:083 UTC] 0002ffe3 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/sam.json” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:23 +0000

[11/6/16 10:42:23:098 UTC] 0002ffe7 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/images/action_search_basic.gif” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:23 +0000

[11/6/16 10:42:23:098 UTC] 0002ffe3 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by SAM::OverviewController#show as JSON

[11/6/16 10:42:23:098 UTC] 0002ffe3 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Parameters: {“_import_id”=>“182”}

[11/6/16 10:42:23:176 UTC] 0002ffe3 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 200 OK in 78ms (Views: 0.0ms)

[11/6/16 10:42:23:208 UTC] 0002ffdf com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/api/sam/dashboard/clienthealthstatus?computerGroupId=0&import_id=182&=1478428943206” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:23 +0000

[11/6/16 10:42:23:208 UTC] 0002ffdf com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by SAM::LmtRestAPIController#clienthealthstatus as JSON

[11/6/16 10:42:23:208 UTC] 0002ffdf com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Parameters: {“computerGroupId”=>“0”, “import_id"=>“182”, "”=>“1478428943206”}

[11/6/16 10:42:23:208 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/api/sam/dashboard/license?format=json&products_number=5&metric_type_id=4&last_days=90&computerGroupId=0&import_id=182&=1478428943217” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:23 +0000

[11/6/16 10:42:23:223 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by SAM::LmtRestAPIController#license as JSON

[11/6/16 10:42:23:223 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Parameters: {“products_number”=>“5”, “metric_type_id”=>“4”, “last_days”=>“90”, “computerGroupId”=>“0”, “import_id"=>“182”, "”=>“1478428943217”}

[11/6/16 10:42:23:223 UTC] 0002ffdd com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/api/sam/dashboard/bundlingstatus?format=json&computerGroupId=0&import_id=182&=1478428943218” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:23 +0000

[11/6/16 10:42:23:223 UTC] 0002ffdd com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by SAM::LmtRestAPIController#bundlingstatus as JSON

[11/6/16 10:42:23:223 UTC] 0002ffdd com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Parameters: {“computerGroupId”=>“0”, “import_id"=>“182”, "”=>“1478428943218”}

[11/6/16 10:42:23:254 UTC] 0002ffdf com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 200 OK in 46ms (Views: 0.0ms)

[11/6/16 10:42:23:270 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 200 OK in 47ms (Views: 0.0ms)

[11/6/16 10:42:23:286 UTC] 0002ffdd com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 200 OK in 63ms (Views: 16.0ms)

[11/6/16 10:42:27:859 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Started GET “/account” for 0:0:0:0:0:0:0:1 at 2016-11-06 10:42:27 +0000

[11/6/16 10:42:27:859 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Processing by AccountController#show as HTML

[11/6/16 10:42:28:203 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Rendered D:/Program files/ibm/BFI/wlp/usr/servers/server1/apps/tema.war/WEB-INF/app/views/account/show.html.rb (297.0ms)

[11/6/16 10:42:28:203 UTC] 0002ffe6 com.ibm.ws.webcontainer.webapp I SRVE0292I: Servlet Message - [tema]:.[INFO] Completed 200 OK in 344ms (Views: 297.0ms)