samples


FalconPy Sample Library
These examples are provided as a quick start for your project.

Authentication for these Examples
In order to expedite sample delivery, examples will follow one of three standard patterns for defining and providing credentials for API access.
Environment variables
Credentials are retrieved from the local environment of the machine the example is executed on. These values are named:
FALCON_CLIENT_IDFALCON_CLIENT_SECRET
Runtime (Command line arguments)
Credentials are consumed at runtime via command line parameters. Typically this handled via the argparse module.
Standardized "credential" file
This file is named config.json, and is in JSON format. This file is not encrypted and may not be suitable for production deployments. A sample of this file, config_sample.json is provided within this folder. Rename this file to config.json, and then update it's contents to reflect your current development API credentials.
Please note: These are not the only methods for providing these values.
Samples by API service collection
The following samples are categorized by CrowdStrike product, and further categorized by Falcon API service collection. Some samples have specific FalconPy version requirements, check documentation maintained within the source or the sample README.md for more details.
Class type legend
Provided examples are additionally labeled by the type of class used to interact with the CrowdStrike API and if the solution supports MSSP usage scenarios.
Suggestions
Do you have a suggestion for an example you'd like to see? Are one of the examples not working as expected? Let us know by posting a message to our discussion board.
Have an example you've developed yourself that you'd like to share? Excellent! Please review our contributing guidelines and then submit a pull request.
Back to top | How to authenticate | Table of Contents

WE STOP BREACHES
Last updated
Was this helpful?