Skip to content

different base_url #139

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

You must be logged in to vote

The following init function definition defines the default base_url value (which is https://api.crowdstrike.com) when an instance of a Service Class is created.

def __init__(self: object, access_token: str = None, auth_object: object = None, creds: dict = None,
             base_url: str = "https://api.crowdstrike.com", ssl_verify: bool = True) -> object:

This is to allow users to create an instance of a Service Class without having to specify a base_url value.

from falconpy.cloud_connect_aws import Cloud_Connect_AWS as FalconAWS
falcon = FalconAWS(creds={"client_id": client_id, 
                          "client_secret": client_secret})
result = falcon.QueryAWSAccounts()

In order to spec…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
API usage General API usage issues and questions
2 participants
Converted from issue

This discussion was converted from issue #138 on April 23, 2021 16:30.