Comments (2)
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 specify a different base_url, you will need to pass that value when you create the instance of the class.
from falconpy.cloud_connect_aws import Cloud_Connect_AWS as FalconAWS
falcon = FalconAWS(creds={"client_id": client_id,
"client_secret": client_secret
},
base_url="https://api.us-2.crowdstrike.com")
result = falcon.QueryAWSAccounts()
Are you having issues when creating an instance of a Service Class using a different base_url value?
from falconpy.
Nice! Thx!
from falconpy.
Related Issues (20)
- [BUG] PowerShell Formatting and JSON Output Discrepancies in CrowdStrike FalconPy (RTR Admin) HOT 1
- [ BUG ] PostEntitiesAlertsV1 is not moving IDs to the correct payload
- [ BUG ] ProxyTool sample should validate the CID or Host Group ID provided before execution
- [ ENH ] Add OS Type as a filter argument to the Stale Sensors sample
- [ DOC ] Update Discover Service Collection documentation to list available filters for query operations.
- [ BUG ] Returning empty Body ("body": {"message": "No content returned", "resources": []}) HOT 29
- [ BUG ] Breaking changes introduced in (at least) falconpy.oauth2.OAuth2 class HOT 10
- [ BUG ] Incorrect API endpoints specified in _cspm_registration.py for GetIOAEvents and GetIOAUsers HOT 2
- [ ENH ] Warn when constructing a deprecated class or calling a deprecated method
- [ BUG ] Support module imports
- [ BUG ] Legacy Uber Class is not logging operation IDs
- [ BUG ] FirewallPolicy.performFirewallPoliciesAction returns 500 error with 'add-rule-group'. HOT 6
- [ LINK ] https://assets.falcon.crowdstrike.com/support/api/swagger.html#/user-management/combinedUserRolesV1
- [ BUG ] policy_id key is missing from body payload handler for the update_policy_container operation.
- [ BUG ] after property is not available in the Meta class
- [ DOC ] Update Spotlight-Vulnerabilities with new vulnerability filter fields.
- [ BUG ] tokens_update payload handler does not properly handle the revoked keyword argument
- [ BUG ] Result expansion is returning null results regardless of API response.
- [ BUG ] Per-operation pythonic override is not working as expected
- [ DOC ] Add scope details to operation documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falconpy.