Trying to integrate with InsightVM API v3 - What is my host?

Hi all, this is the first time I’ve worked with R7 and am having a tough time with the API. I need access to our company’s policy data, which from what I’ve seen means I need to use api v3.

The docs say the uri needs to be https://host:port/api/3/ . When I sign into InsightVM Console (not Platform), the url is something like https://afeg-g5ah-acv3:1234 . Trying to use this as the uri throw an error that the host couldn’t be found, no matter where I’ve tried to run it.

I think the issue is that url is to an on-prem instance. Is there something else that I need to do for this to work (firewall etc) or am I just using the wrong uri?
I could also just be misunderstanding the setup. I am able to get a connection with the v4 API, which uses the https://us.api.insight.rapid7.com/vm/v4 format, but my understanding is that the host should be different

Thanks!

Sounds like the host you’re trying to connect from either can’t resolve the hostname of the console, or it can’t connect (could be firewall etc.). Try using the FQDN of the console as the host. You should also verify the client host can resolve the hostname (e.g. nslookup afeg-g5ah-acv3) and that it can connect (e.g. telnet afeg-g5ah-acv3 1234). If DNS resolution is the problem you could also try using the IP instead of host.

1 Like