I’m attempting to test credentials to the API for a script, but am unable to get an authentication prompt. Instead, I get an error message and am unable to load the API page at all (per this article’s direction). My process is this:
Go to Tools -> Launch Web Reports – from the BF Console.
Modify the URL to https://SERVER-FQDN:52311/api
When I navigate to that page, I get an error stating “This site can’t be reached”. Web Reports loads up fine, and I can authenticate to that, no problem.
What am I missing? Is it possible that the API tools are disabled? If so, how do I enable it?
Thanks for the quick reply. I just tried that in both of those URL’s in IE and Firefox and am getting “The connection has timed out” and “This page can’t be displayed”.
I can telnet to that port, yes – just a blinking cursor.
I have seen that message once or twice when first loading up the page (but it doesn’t show every time). I always click to continue to the website. After opening up a new IE window, I just got the message again. Once I clicked to continue, that’s when I got the “webpage cannot be found” error.
To be clear, are your Web Reports and Root Servers on different hosts?
You can only use REST API (on port 52311) against your Root Server, not a standalone web reports (as far as I’ve been able to tell). You can use SOAP API against the Web Reports server, on whichever port Web Reports is listening on (usually https 443).
There may be better guides, and definitely a better reference, at https://developer.bigfix.com/ . Check the “REST API” and “Other APIs” links at the top.
@smillin - If you can telnet over 52311 to the BigFix server then one of the following URLS should offer an authentication mechanism.
https://SERVER-FQDN:52311/api/help
or
https://SERVER-FQDN:52311/api/login
There is a slight possibility that because of a self signed certificate and a local security setting you may not be able to load the site, but even then I don’t think a 404 error would be displayed. Something is not right.
Are you a master operator?
Do you have access to the Server? You may want to log this in a PMR.