Using the Intelligence Feeds service collection
Table of Contents
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. |
Passing credentials
WARNING
client_id
andclient_secret
are 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.
DownloadFeedArchive
Download feed file contents as a zip archive.
PEP8 method name
download_feed
Endpoint
Method | Route |
---|---|
/indicator-feed/entities/feed-download/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
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. |
Usage
Service class example (PEP8 syntax)
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")
print(response)
Service class example (Operation ID syntax)
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")
print(response)
Uber class example
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")
print(response)
ListFeedTypes
List the accessible feeds for a given customer.
PEP8 method name
list_feeds
Endpoint
Method | Route |
---|---|
/indicator-feed/entities/feed/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
No keywords or arguments accepted.
Usage
Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
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)
Uber class example
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)
QueryFeedArchives
Query the accessible feeds for a customer.
PEP8 method name
query_feeds
Endpoint
Method | Route |
---|---|
/indicator-feed/queries/feed/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
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. |
Usage
Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
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)
Uber class example
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)