Skip to content

Using IP instead of FQDN to access the API #912

Answered by jshcodes
NSH531 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @NSH531 -

You can provide an IP address for the base_url keyword instead of the FQDN.

A couple of concerns with this scenario:

  • You will need to disable SSL verification with the API, as certificates are not IP aware.
  • IPs can be dynamic, so if the IP for the FQDN changes your connections to the API will fail.

With those notes in mind, this can be accomplished using the following syntax:

from falconpy import Hosts

hosts = Hosts(client_id=CLIENT_ID,
              client_secret=CLIENT_SECRET,
              base_url=IP_ADDRESS,
              ssl_verify=False
              )

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@NSH531
Comment options

@jshcodes
Comment options

@NSH531
Comment options

Answer selected by NSH531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
authentication Issues or questions regarding authentication SDK usage General SDK usage issues and questions
2 participants
Converted from issue

This discussion was converted from issue #911 on February 14, 2023 16:34.