client_id and client_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.
ListReposV1
Lists available repositories and views
PEP8 method name
list_repos
Endpoint
Method
Route
/loggingapi/combined/repos/v1
Content-Type
Consumes: application/json
Produces: application/json
Keyword Arguments
Name
Service
Uber
Type
Data type
Description
check_test_data
query
boolean
Include whether test data is present in the application repository.
Usage
Service class example (PEP8 syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.list_repos(check_test_data=boolean)
print(response)
Service class example (Operation ID syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.ListReposV1(check_test_data=boolean)
print(response)
Uber class example
fromfalconpyimportAPIHarnessV2# Do not hardcode API credentials!falcon=APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.command("ListReposV1", check_test_data=boolean)
print(response)
IngestDataAsyncV1
Ingest data into the application repository asynchronously
Full query string parameters payload in JSON format.
Usage
Service class example (PEP8 syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.populate(app_id="string")
print(response)
Service class example (Operation ID syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.CreateSavedSearchesIngestV1(app_id="string")
print(response)
Uber class example
fromfalconpyimportAPIHarnessV2# Do not hardcode API credentials!falcon=APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.command("CreateSavedSearchesIngestV1", app_id="string")
print(response)
Whether to try to infer data types in json event response instead of returning map[string]string.
parameters
query
dictionary
Full query string parameters payload in JSON format.
result_format
query
string
Result Format
Usage
Service class example (PEP8 syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
withopen("some_file.ext", "wb", encoding="utf-8") assave_file:
save_file.write(falcon.download_results(job_id="string",
result_format="string",
infer_json_types=boolean
))
Service class example (Operation ID syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
withopen("some_file.ext", "wb", encoding="utf-8") assave_file:
save_file.write(falcon.GetSavedSearchesJobResultsDownloadV1(job_id="string",
result_format="string",
infer_json_types=boolean
))
Uber class example
fromfalconpyimportAPIHarnessV2# Do not hardcode API credentials!falcon=APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
withopen("some_file.ext", "wb", encoding="utf-8") assave_file:
save_file.write(falcon.command("GetSavedSearchesJobResultsDownloadV1",
job_id="string",
result_format="string",
infer_json_types=boolean
))
ListViewV1
List views
PEP8 method name
list_views
Endpoint
Method
Route
/loggingapi/entities/views/v1
Content-Type
Consumes: application/json
Produces: application/json
Keyword Arguments
Name
Service
Uber
Type
Data type
Description
check_test_data
query
boolean
Include whether test data is present in the application repository.
Usage
Service class example (PEP8 syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.list_views(check_test_data=boolean)
print(response)
Service class example (Operation ID syntax)
fromfalconpyimportFoundryLogScale# Do not hardcode API credentials!falcon=FoundryLogScale(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.ListViewV1(check_test_data=boolean)
print(response)
Uber class example
fromfalconpyimportAPIHarnessV2# Do not hardcode API credentials!falcon=APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response=falcon.command("ListViewV1", check_test_data=boolean)
print(response)