Intelligence Feeds - CrowdStrike/falconpy GitHub Wiki
| Operation ID | Description | ||||
|---|---|---|---|---|---|
|
Download feed file contents as a zip archive. | ||||
|
List the accessible feeds for a given customer. | ||||
|
Query the accessible feeds for a customer. | ||||
WARNING
client_idandclient_secretare keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.
Download feed file contents as a zip archive.
download_feed
| Method | Route |
|---|---|
/indicator-feed/entities/feed-download/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| feed_item_id |
|
|
query | string | Feed object reference ID. |
| parameters |
|
|
query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
| stream |
|
|
query | boolean | Enable streaming download of the returned file. |
from falconpy import IntelligenceFeeds
# Do not hardcode API credentials!
falcon = IntelligenceFeeds(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
response = falcon.device_enroll(feed_item_id="string", stream=boolean)
print(response)from falconpy import IntelligenceFeeds
# Do not hardcode API credentials!
falcon = IntelligenceFeeds(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
response = falcon.DownloadFeedArchive(feed_item_id="string", stream=boolean)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("DownloadFeedArchive", feed_item_id="string", stream=boolean)
print(response)List the accessible feeds for a given customer.
list_feeds
| Method | Route |
|---|---|
/indicator-feed/entities/feed/v1 |
- Produces: application/json
No keywords or arguments accepted.
from falconpy import IntelligenceFeeds
# Do not hardcode API credentials!
falcon = IntelligenceFeeds(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
response = falcon.list_feeds()
print(response)from falconpy import IntelligenceFeeds
# Do not hardcode API credentials!
falcon = IntelligenceFeeds(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
response = falcon.ListFeedTypes()
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("ListFeedTypes")
print(response)Query the accessible feeds for a customer.
query_feeds
| Method | Route |
|---|---|
/indicator-feed/queries/feed/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| feed_name |
|
|
query | string | Feed name. |
| feed_interval |
|
|
query | string | Feed interval. Allowed values: dump, daily, hourly, minutely. |
| since |
|
|
query | string | Valid timestamp in RFC3399 format. Restrictions:
|
| parameters |
|
|
query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import IntelligenceFeeds
# Do not hardcode API credentials!
falcon = IntelligenceFeeds(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
response = falcon.query_feeds(feed_name="string", feed_interval="string", since="string")
print(response)from falconpy import IntelligenceFeeds
# Do not hardcode API credentials!
falcon = IntelligenceFeeds(client_id=CLIENT_ID_HERE,
client_secret=CLIENT_SECRET
)
response = falcon.QueryFeedArchives(feed_name="string", feed_interval="string", since="string")
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("QueryFeedArchives",
feed_name="string",
feed_interval="string",
since="string"
)
print(response)
