If you’re having issues fetching the token for BigFix Inventory API, this might be useful. You need the token in order to run other API requests in BFI.
It took a few tries to get this working as the documentation is a little vague with it’s examples. I’m using cURL here.
From a linux terminal:
curl -k -X POST -H "Content-Type: application/json" -d '{"user":"BFIUser","password":"BFIPassword"}' https://BFIServer:9081/api/get_token
From a Windows terminal you have to change ’ for " at the -d value, and escape the double quotes with \.
curl -k -X POST -H "Content-Type: application/json" -d "{\"user\":\"BFIUser\",\"password\":\"BFIPassword\"}" https://BFIServer:9081/api/get_token
If you output the token to a file, you can then automate other REST commands dynamically.