Replies: 1 comment
-
|
Hi @afroz1 Thanks for the question! The Core Approch for this would be to use the Hosts service collection. FalconPy is designed to make authentication and token management easy and supports multiple methods of providing your API credentials. When using FalconPy we handle the specifics of authentication so you can use the operations directly. Standard API rate limits apply (typically 6000 requests/minute) but based on your use case of 1k devices I don't think you should encouter an issue Your API key should be scoped with the hosts "Write" permission in order to apply the operation. Here's an example of using the perform_action operation for your use case of containing hosts. I've also added a function to gather Host IDs. The contain_hosts_batch function takes a list of Host IDs, and performs the containment operation. The perform_action operation takes a maximum of 100 IDs per request so additionally I have batched the input to meet this requirement. Let us know with any additional questions! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are looking to quarantine (contain) multiple hosts at once using CrowdStrike Falcon. While we know the Falcon Console allows containment per host via the UI, we need to contain a large number of hosts (up to ~1,000) in one operation.
We would like guidance on:
How to use the CrowdStrike Falcon API (or Real Time Response) with Python to achieve bulk host containment.
Best practices to handle large-scale containment, including API rate limits, authentication, and error handling.
Sample scripts, code snippets, or references to official Python libraries for automating this task.
Our goal is to safely and efficiently quarantine multiple hosts at scale while following CrowdStrike best practices.
Any pointers, examples, or documentation references would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions