Using the Recon service collection
Table of Contents
Operation ID | Description | ||||
---|---|---|---|---|---|
| Get notification exposed data record aggregates as specified via JSON in request body. | ||||
| Get notification aggregates as specified via JSON in request body. | ||||
| Preview rules notification count and distribution. This will return aggregations on: channel, count, site. | ||||
| Get actions based on their IDs. IDs can be retrieved using the QueryActionsV1 operation. | ||||
| Create actions for a monitoring rule. Accepts a list of actions that will be attached to the monitoring rule. | ||||
| Delete an action from a monitoring rule based on the action ID. | ||||
| Update an action for a monitoring rule. | ||||
| Download the file associated with a job ID. | ||||
| Get the status of export jobs based on their IDs. Export jobs can be launched by calling POST /entities/exports/v1. When a job is complete, use the job ID to download the file(s) associated with it using GET entities/export-files/v1. | ||||
| Launch asynchronous export job. Use the job ID to poll the status of the job using GET /entities/exports/v1. | ||||
| Delete export jobs (and their associated file(s)) based on their IDs. | ||||
| Get detailed notifications based on their IDs. These include the raw intelligence content that generated the match.This endpoint will return translated notification content. The only target language available is English. A single notification can be translated per request | ||||
| Get detailed notifications based on their IDs. These include the raw intelligence content that generated the match. | ||||
| Get notifications exposed data records based on their IDs. IDs can be retrieved using the QueryNotificationsExposedDataRecordsV1 operation. The associate notification can be fetched using the notifications operations. | ||||
| Get notifications based on their IDs. IDs can be retrieved using the QueryNotificationsV1 operation. This endpoint will return translated notification content. The only target language available is English. | ||||
| Get notifications based on their IDs. IDs can be retrieved using the QueryNotificationsV1 operation. | ||||
| Delete notifications based on IDs. Notifications cannot be recovered after they are deleted. | ||||
| Update notification status or assignee. Accepts bulk requests | ||||
| Get monitoring rules rules by provided IDs. | ||||
| Create monitoring rules. | ||||
| Delete monitoring rules. | ||||
| Update monitoring rules. | ||||
| Query actions based on provided criteria. Use the IDs from this response to get the action entities on GetActionsV1. | ||||
| Query notifications exposed data records based on provided criteria. Use the IDs from this response to get the notification +entities on GetNotificationsExposedDataRecordsV1. | ||||
| Query notifications based on provided criteria. Use the IDs from this response to get the notification entities on GetNotificationsV1 or GetNotificationsDetailedV1. | ||||
| Query monitoring rules based on provided criteria. Use the IDs from this response to fetch the rules on GetRulesV1. |
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.
AggregateNotificationsExposedDataRecordsV1
Get notification exposed data record aggregates as specified via JSON in request body.
PEP8 method name
aggregate_notifications_exposed_data_records
Endpoint
Method | Route |
---|---|
/recon/aggregates/notifications-exposed-data-records/GET/v1 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | list of dictionaries | Full body payload in JSON format. | ||
date_ranges | body | list of dictionaries | Applies to date_range aggregations. Example: [ { "from": "2016-05-28T09:00:31Z", "to": "2016-05-30T09:00:31Z" }, { "from": "2016-06-01T09:00:31Z", "to": "2016-06-10T09:00:31Z" } ] | ||
exclude | body | string | Elements to exclude. | ||
field | body | string | The field on which to compute the aggregation. | ||
filter | body | string | FQL syntax formatted string to use to filter the results. | ||
from | body | integer | Starting position. | ||
include | body | string | Elements to include. | ||
interval | body | string | Time interval for date histogram aggregations. Valid values include:
| ||
max_doc_count | body | integer | Only return buckets if values are less than or equal to the value here. | ||
min_doc_count | body | integer | Only return buckets if values are greater than or equal to the value here. | ||
missing | body | string | Missing is the value to be used when the aggregation field is missing from the object. In other words, the missing parameter defines how documents that are missing a value should be treated. By default they will be ignored, but it is also possible to treat them as if they had a value. | ||
name | body | string | Name of the aggregate query, as chosen by the user. Used to identify the results returned to you. | ||
q | body | string | Full text search across all metadata fields. | ||
ranges | body | list of dictionaries | Applies to range aggregations. Ranges values will depend on field. For example, if max_severity is used, ranges might look like: [ { "From": 0, "To": 70 }, { "From": 70, "To": 100 } ] | ||
size | body | integer | The max number of term buckets to be returned. | ||
sub_aggregates | body | list of dictionaries | A nested aggregation, such as: [ { "name": "max_first_behavior", "type": "max", "field": "first_behavior" } ] There is a maximum of 3 nested aggregations per request. | ||
sort | body | string | FQL syntax string to sort bucket results.
asc and desc using | format. Example: _count|desc | ||
time_zone | body | string | Time zone for bucket results. | ||
type | body | string | Type of aggregation. Valid values include:
|
Usage
Service class example (PEP8 syntax)
from falconpy.recon import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "2021-05-15T14:55:21.892315096Z",
"to": "2021-05-17T13:42:16.493180643Z"
}
]
ranges = [
{
"From": 1,
"To": 100
}
]
response = falcon.aggregate_notifications_exposed_data_records(date_ranges=date_ranges,
exclude="string",
field="string",
filter="string",
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
q="string",
ranges=ranges,
size=integer,
sort="string",
time_zone="string",
type="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "2021-05-15T14:55:21.892315096Z",
"to": "2021-05-17T13:42:16.493180643Z"
}
]
ranges = [
{
"From": 1,
"To": 100
}
]
response = falcon.AggregateNotificationsExposedDataRecordsV1(date_ranges=date_ranges,
exclude="string",
field="string",
filter="string",
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
q="string",
ranges=ranges,
size=integer,
sort="string",
time_zone="string",
type="string"
)
print(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "2021-05-15T14:55:21.892315096Z",
"to": "2021-05-17T13:42:16.493180643Z"
}
]
ranges = [
{
"From": 1,
"To": 100
}
]
BODY = [{
"date_ranges": date_ranges,
"exclude": "string",
"field": "string",
"filter": "string",
"from": integer,
"include": "string",
"interval": "string",
"max_doc_count": integer,
"min_doc_count": integer,
"missing": "string",
"name": "string",
"q": "string",
"ranges": ranges,
"size": integer,
"sort": "string",
"sub_aggregates": [
null
]
"time_zone": "string",
"type": "string"
}]
response = falcon.command("AggregateNotificationsExposedDataRecordsV1", body=BODY)
print(response)
Back to Table of Contents
AggregateNotificationsV1
Get notification aggregates as specified via JSON in request body.
PEP8 method name
aggregate_notifications
Endpoint
Method | Route |
---|---|
/recon/aggregates/notifications/GET/v1 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | list of dictionaries | Full body payload in JSON format. | ||
date_ranges | body | list of dictionaries | Applies to date_range aggregations. Example: [ { "from": "2016-05-28T09:00:31Z", "to": "2016-05-30T09:00:31Z" }, { "from": "2016-06-01T09:00:31Z", "to": "2016-06-10T09:00:31Z" } ] | ||
exclude | body | string | Elements to exclude. | ||
field | body | string | The field on which to compute the aggregation. | ||
filter | body | string | FQL syntax formatted string to use to filter the results. | ||
from | body | integer | Starting position. | ||
include | body | string | Elements to include. | ||
interval | body | string | Time interval for date histogram aggregations. Valid values include:
| ||
max_doc_count | body | integer | Only return buckets if values are less than or equal to the value here. | ||
min_doc_count | body | integer | Only return buckets if values are greater than or equal to the value here. | ||
missing | body | string | Missing is the value to be used when the aggregation field is missing from the object. In other words, the missing parameter defines how documents that are missing a value should be treated. By default they will be ignored, but it is also possible to treat them as if they had a value. | ||
name | body | string | Name of the aggregate query, as chosen by the user. Used to identify the results returned to you. | ||
q | body | string | Full text search across all metadata fields. | ||
ranges | body | list of dictionaries | Applies to range aggregations. Ranges values will depend on field. For example, if max_severity is used, ranges might look like: [ { "From": 0, "To": 70 }, { "From": 70, "To": 100 } ] | ||
size | body | integer | The max number of term buckets to be returned. | ||
sub_aggregates | body | list of dictionaries | A nested aggregation, such as: [ { "name": "max_first_behavior", "type": "max", "field": "first_behavior" } ] There is a maximum of 3 nested aggregations per request. | ||
sort | body | string | FQL syntax string to sort bucket results.
asc and desc using | format. Example: _count|desc | ||
time_zone | body | string | Time zone for bucket results. | ||
type | body | string | Type of aggregation. Valid values include:
|
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "2021-05-15T14:55:21.892315096Z",
"to": "2021-05-17T13:42:16.493180643Z"
}
]
ranges = [
{
"From": 1,
"To": 100
}
]
response = falcon.aggregate_notifications(date_ranges=date_ranges,
exclude="string",
field="string",
filter="string",
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
q="string",
ranges=ranges,
size=integer,
sort="string",
time_zone="string",
type="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "2021-05-15T14:55:21.892315096Z",
"to": "2021-05-17T13:42:16.493180643Z"
}
]
ranges = [
{
"From": 1,
"To": 100
}
]
response = falcon.AggregateNotificationsV1(date_ranges=date_ranges,
exclude="string",
field="string",
filter="string",
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
q="string",
ranges=ranges,
size=integer,
sort="string",
time_zone="string",
type="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
)
date_ranges = [
{
"from": "2021-05-15T14:55:21.892315096Z",
"to": "2021-05-17T13:42:16.493180643Z"
}
]
ranges = [
{
"From": 1,
"To": 100
}
]
BODY = [{
"date_ranges": date_ranges,
"exclude": "string",
"field": "string",
"filter": "string",
"from": integer,
"include": "string",
"interval": "string",
"max_doc_count": integer,
"min_doc_count": integer,
"missing": "string",
"name": "string",
"q": "string",
"ranges": ranges,
"size": integer,
"sort": "string",
"sub_aggregates": [
null
]
"time_zone": "string",
"type": "string"
}]
response = falcon.command("AggregateNotificationsV1", body=BODY)
print(response)
Back to Table of Contents
PreviewRuleV1
Preview rules notification count and distribution. This will return aggregations on: channel, count, site.
PEP8 method name
preview_rule
Endpoint
Method | Route |
---|---|
/recon/aggregates/rules-preview/GET/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | dictionary | Full body payload in JSON format. | ||
filter | body | string | FQL Syntax formatted string used to limit results. | ||
topic | body | string | Restricts results to the topic specified. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.preview_rule(filter="string", topic="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.PreviewRuleV1(filter="string", topic="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
)
BODY = {
"filter": "string",
"topic": "string"
}
response = falcon.command("PreviewRuleV1", body=BODY)
print(response)
Back to Table of Contents
GetActionsV1
Get actions based on their IDs. IDs can be retrieved using the QueryActionsV1 operation.
PEP8 method name
get_actions
Endpoint
Method | Route |
---|---|
/recon/entities/actions/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Action IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_actions(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetActionsV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetActionsV1", ids=id_list)
print(response)
Back to Table of Contents
CreateActionsV1
Create actions for a monitoring rule. Accepts a list of actions that will be attached to the monitoring rule.
PEP8 method name
create_actions
Endpoint
Method | Route |
---|---|
/recon/entities/actions/v1 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
actions | body | list of dictionaries | List of actions to attach to the monitoring rule. When provided, actions overrides other keywords (excluding body). | ||
body | body | dictionary | Full body payload in JSON format. | ||
content_format | body | string | Content format. | ||
frequency | body | string | Frequency of the action. Only one action can be applied when using this keyword. | ||
recipients | body | list of strings | List of action recipients. Only one action can be applied when using this keyword. | ||
rule_id | body | string | Rule ID to attach action(s) to. | ||
trigger_matchless | body | boolean | Trigger matchless. | ||
type | body | string | Action type. Only one action can be applied when using this keyword. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
recips = ["RECIP1", "RECIP2", "RECIP3"]
response = falcon.create_actions(frequency="string",
recipients=recips,
rule_id="string",
content_format="string",
trigger_matchless=boolean,
type="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
recips = ["RECIP1", "RECIP2", "RECIP3"]
response = falcon.CreateActionsV1(frequency="string",
recipients=recips,
rule_id="string",
content_format="string",
trigger_matchless=boolean,
type="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
)
recips = ["RECIP1", "RECIP2", "RECIP3"]
BODY = {
"actions": [
{
"content_format": "string",
"frequency": "string",
"recipients": recips,
"trigger_matchless": boolean,
"type": "string"
}
],
"rule_id": "string"
}
response = falcon.command("CreateActionsV1", body=BODY)
print(response)
Back to Table of Contents
DeleteActionV1
Delete an action from a monitoring rule based on the action ID.
PEP8 method name
delete_action
Endpoint
Method | Route |
---|---|
/recon/entities/actions/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
id | query | string | Action ID to delete. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.delete_action(id="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.DeleteActionV1(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("DeleteActionV1", id="string")
print(response)
Back to Table of Contents
UpdateActionV1
Update an action for a monitoring rule.
PEP8 method name
update_action
Endpoint
Method | Route |
---|---|
/recon/entities/actions/v1 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | dictionary | Full body payload in JSON format. | ||
content_format | body | string | Content format. | ||
frequency | body | string | Frequency of the action. | ||
recipients | body | list of strings | List of action recipients. | ||
id | body | string | Action ID to update. | ||
status | body | string | Action status. | ||
trigger_matchless | body | boolean | Trigger matchless. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
recips = ["RECIP1", "RECIP2", "RECIP3"]
response = falcon.update_action(frequency="string",
content_format="string",
recipients=recips,
id="string",
status="string",
trigger_matchless=boolean
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
recips = ["RECIP1", "RECIP2", "RECIP3"]
response = falcon.UpdateActionV1(frequency="string",
content_format="string",
recipients=recips,
id="string",
status="string",
trigger_matchless=boolean
)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
recips = ["RECIP1", "RECIP2", "RECIP3"]
BODY = {
"content_format": "string",
"frequency": "string",
"id": "string",
"recipients": recips,
"status": "string",
"trigger_matchless": boolean
}
response = falcon.command("UpdateActionV1", body=BODY)
print(response)
Back to Table of Contents
GetFileContentForExportJobsV1
Download the file associated with a job ID.
PEP8 method name
get_export_job_file_contents
Endpoint
Method | Route |
---|---|
/recon/entities/export-files/v1 |
Required Scope
Content-Type
- Produces: application/octet-stream
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
id | query | string | Export job ID. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy.recon import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
save_file = "some_file.ext"
response = falcon.get_export_job_file_contents(id="string")
open(save_file, 'wb').write(response)
Service class example (Operation ID syntax)
from falconpy import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
save_file = "some_file.ext"
response = falcon.GetFileContentForExportJobsV1(id="string")
open(save_file, 'wb').write(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
save_file = "some_file.ext"
response = falcon.command("GetFileContentForExportJobsV1", id="string")
open(save_file, 'wb').write(response)
Back to Table of Contents
GetExportJobsV1
Get the status of export jobs based on their IDs. Export jobs can be launched by calling CreateExportJobsV1. When a job is complete, use the job ID to download the file(s) associated with it using GetFileContentForExportJobsV1.
PEP8 method name
get_export_jobs
Endpoint
Method | Route |
---|---|
/recon/entities/exports/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Export job IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy.recon import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_export_jobs(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetExportJobsV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetExportJobsV1", ids=id_list)
print(response)
Back to Table of Contents
CreateExportJobsV1
Launch asynchronous export job. Use the job ID to poll the status of the job using GetExportJobsV1.
PEP8 method name
create_export_jobs
Endpoint
Method | Route |
---|---|
/recon/entities/exports/v1 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | dictionary | Full body payload in JSON format. | ||
entity | body | string | Entity to report on. | ||
export_type | body | string | Type of export. | ||
filter | body | string | FQL filter used to limit report results. | ||
human_readable | body | boolean | Flag indicating if this report should be returned in human readable format. | ||
sort | body | string | Sort the report results using a FQL formatted string. |
Usage
Service class example (PEP8 syntax)
from falconpy.recon import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_export_jobs(entity="string",
export_type="string",
filter="string",
human_readable=boolean,
sort="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.CreateExportJobsV1(entity="string",
export_type="string",
filter="string",
human_readable=boolean,
sort="string"
)
print(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
BODY = {
"entity": "string",
"export_type": "string",
"filter": "string",
"human_readable": boolean,
"sort": "string"
}
response = falcon.command("CreateExportJobsV1", body=BODY)
print(response)
Back to Table of Contents
DeleteExportJobsV1
Delete export jobs (and their associated file(s)) based on their IDs.
PEP8 method name
delete_export_jobs
Endpoint
Method | Route |
---|---|
/recon/entities/exports/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Export job IDs to delete. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy.recon import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_export_jobs(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.DeleteExportJobsV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("DeleteExportJobsV1", ids=id_list)
print(response)
Back to Table of Contents
GetNotificationsDetailedTranslatedV1
Get detailed notifications based on their IDs. These include the raw intelligence content that generated the match. This endpoint will return translated notification content. The only target language available is English. A single notification can be translated per request
PEP8 method name
get_notifications_detailed_translated
Endpoint
Method | Route |
---|---|
/recon/entities/notifications-detailed-translated/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Notification IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_notifications_detailed_translated(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetNotificationsDetailedTranslatedV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetNotificationsDetailedTranslatedV1", ids=id_list)
print(response)
Back to Table of Contents
GetNotificationsDetailedV1
Get detailed notifications based on their IDs. These include the raw intelligence content that generated the match.
PEP8 method name
get_notifications_detailed
Endpoint
Method | Route |
---|---|
/recon/entities/notifications-detailed/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Notification IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_notifications_detailed(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetNotificationsDetailedV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetNotificationsDetailedV1", ids=id_list)
print(response)
Back to Table of Contents
GetNotificationsExposedDataRecordsV1
Get notifications exposed data records based on their IDs. IDs can be retrieved using the QueryNotificationsExposedDataRecordsV1 operation. The associated notification can be fetched using the notifications operations.
PEP8 method name
get_notifications_exposed_data_records
Endpoint
Method | Route |
---|---|
/recon/entities/notifications-exposed-data-records/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Notifications exposed record IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy.recon import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_notifications_exposed_data_records(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetNotificationsExposedDataRecordsV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetNotificationsExposedDataRecordsV1", ids=id_list)
print(response)
Back to Table of Contents
GetNotificationsTranslatedV1
Get notifications based on their IDs. IDs can be retrieved using the QueryNotificationsV1 operation. This endpoint will return translated notification content. The only target language available is English.
PEP8 method name
get_notifications_translated
Endpoint
Method | Route |
---|---|
/recon/entities/notifications-translated/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Notification IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_notifications_translated(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetNotificationsTranslatedV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetNotificationsTranslatedV1", ids=id_list)
print(response)
Back to Table of Contents
GetNotificationsV1
Get notifications based on their IDs. IDs can be retrieved using the QueryNotificationsV1 operation.
PEP8 method name
get_notifications
Endpoint
Method | Route |
---|---|
/recon/entities/notifications/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Notification IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_notifications(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetNotificationsV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetNotificationsV1", ids=id_list)
print(response)
Back to Table of Contents
DeleteNotificationsV1
Delete notifications based on IDs. Notifications cannot be recovered after they are deleted.
PEP8 method name
delete_notifications
Endpoint
Method | Route |
---|---|
/recon/entities/notifications/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Notification IDs to delete. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_notifications(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.DeleteNotificationsV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("DeleteNotificationsV1", ids=id_list)
print(response)
Back to Table of Contents
UpdateNotificationsV1
Update notification status or assignee. Accepts bulk requests.
PEP8 method name
update_notifications
Endpoint
Method | Route |
---|---|
/recon/entities/notifications/v1 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
assigned_to_uuid | body | string | UUID of the assigned user. | ||
body | body | dictionary | Full body payload in JSON format. | ||
id | body | string | Notification ID. | ||
status | body | string | Notification status. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_notifications(assigned_to_uuid="string",
id="string",
status="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.UpdateNotificationsV1(assigned_to_uuid="string",
id="string",
status="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
)
BODY = [
{
"assigned_to_uuid": "string",
"id": "string",
"status": "string"
}
]
response = falcon.command("UpdateNotificationsV1", body=BODY)
print(response)
Back to Table of Contents
GetRulesV1
Get monitoring rules rules by provided IDs.
PEP8 method name
get_rules
Endpoint
Method | Route |
---|---|
/recon/entities/rules/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Rule IDs to retrieve. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_rules(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.GetRulesV1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("GetRulesV1", ids=id_list)
print(response)
Back to Table of Contents
CreateRulesV1
Create monitoring rules.
PEP8 method name
create_rules
Endpoint
Method | Route |
---|---|
/recon/entities/rules/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | dictionary | Full body payload in JSON format. | ||
breach_monitoring_enabled | body | boolean | Flag indicating if breach monitoring should be enabled. | ||
filter | body | string | Rule filter. | ||
name | body | string | Rule name. | ||
permissions | body | string | Permissions. private or public . | ||
priority | body | string | Priority. high , medium , low | ||
substring_matching_enabled | body | boolean | Flag indicating if substring matching should be enabled. | ||
topic | body | string | Rule topic. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_rules(breach_monitoring_enabled=boolean,
filter="string",
name="string",
permissions="string",
priority="string",
substring_matching_enabled=boolean,
topic="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.CreateRulesV1(breach_monitoring_enabled=boolean,
filter="string",
name="string",
permissions="string",
priority="string",
substring_matching_enabled=boolean,
topic="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
)
BODY = [
{
"breach_monitoring_enabled": boolean,
"filter": "string",
"name": "string",
"permissions": "string",
"priority": "string",
"substring_matching_enabled": boolean,
"topic": "string"
}
]
response = falcon.command("CreateRulesV1", body=BODY)
print(response)
Back to Table of Contents
DeleteRulesV1
Delete monitoring rules.
PEP8 method name
delete_rules
Endpoint
Method | Route |
---|---|
/recon/entities/rules/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
ids | query | string or list of strings | Rule IDs to delete. | ||
notificationsDeletionRequested | query | boolean | Flag indicating if a delete notification should be generated by this rule. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_rules(ids=id_list, notificationsDeletionRequested=boolean)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.DeleteRulesV1(ids=id_list, notificationsDeletionRequested=boolean)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("DeleteRulesV1", ids=id_list, notificationsDeletionRequested=boolean)
print(response)
Back to Table of Contents
UpdateRulesV1
Update monitoring rules.
PEP8 method name
update_rules
Endpoint
Method | Route |
---|---|
/recon/entities/rules/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
body | body | dictionary | Full body payload in JSON format. | ||
breach_monitoring_enabled | body | boolean | Flag indicating if breach monitoring should be enabled. | ||
filter | body | string | Rule filter. | ||
name | body | string | Rule name. | ||
permissions | body | string | Permissions. private or public . | ||
priority | body | string | Priority. high , medium , low | ||
id | body | string | Rule ID to update. | ||
substring_matching_enabled | body | boolean | Flag indicating if substring matching should be enabled. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_rules(breach_monitoring_enabled=boolean,
filter="string",
id="string",
name="string",
permissions="string",
priority="string",
substring_matching_enabled=boolean
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
BODY = {
"Body Payload": "See body description above"
}
response = falcon.UpdateRulesV1(breach_monitoring_enabled=boolean,
filter="string",
id="string",
name="string",
permissions="string",
priority="string",
substring_matching_enabled=boolean
)
print(response)
Uber class example
from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
BODY = [
{
"breach_monitoring_enabled": boolean,
"filter": "string",
"id": "string",
"name": "string",
"permissions": "string",
"priority": "string",
"substring_matching_enableD": boolean
}
]
response = falcon.command("UpdateRulesV1", body=BODY)
print(response)
Back to Table of Contents
QueryActionsV1
Query actions based on provided criteria. Use the IDs from this response to get the action entities on GetActionsV1.
PEP8 method name
query_actions
Endpoint
Method | Route |
---|---|
/recon/queries/actions/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
filter | query | string | FQL query expression that should be used to limit the results. | ||
limit | query | integer | Maximum number of records to return. | ||
offset | query | string | Starting index of overall result set from which to return ids. | ||
q | query | string | Free text search across all indexed fields. | ||
sort | query | string | The property to sort by. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_actions(offset="string",
limit=integer,
sort="string",
filter="string",
q="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.QueryActionsV1(offset="string",
limit=integer,
sort="string",
filter="string",
q="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("QueryActionsV1",
offset="string",
limit=integer,
sort="string",
filter="string",
q="string"
)
print(response)
Back to Table of Contents
QueryNotificationsExposedDataRecordsV1
Query notifications exposed data records based on provided criteria. Use the IDs from this response to get the notification +entities on GetNotificationsExposedDataRecordsV1.
PEP8 method name
query_notifications_exposed_data_records
Endpoint
Method | Route |
---|---|
/recon/queries/notifications-exposed-data-records/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
filter | query | string | FQL query expression that should be used to limit the results. Available filters:
| ||
limit | query | integer | Maximum number of records to return. | ||
offset | query | string | Starting index of overall result set from which to return ids. | ||
q | query | string | Free text search across all indexed fields. | ||
sort | query | string | The property to sort by. Either created_date or updated_date . (Example: `updated_date | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy.recon import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_notifications_exposed_data_records(offset=integer,
limit=integer,
sort="string",
filter="string",
q="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.QueryNotificationsExposedDataRecordsV1(offset=integer,
limit=integer,
sort="string",
filter="string",
q="string"
)
print(response)
Uber class example
from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("QueryNotificationsExposedDataRecordsV1",
offset=integer,
limit=integer,
sort="string",
filter="string",
q="string"
)
print(response)
Back to Table of Contents
QueryNotificationsV1
Query notifications based on provided criteria. Use the IDs from this response to get the notification entities on GetNotificationsV1 or GetNotificationsDetailedV1.
PEP8 method name
query_notifications
Endpoint
Method | Route |
---|---|
/recon/queries/notifications/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
filter | query | string | FQL query expression that should be used to limit the results. | ||
limit | query | integer | Maximum number of records to return. | ||
offset | query | string | Starting index of overall result set from which to return ids. | ||
q | query | string | Free text search across all indexed fields. | ||
sort | query | string | The property to sort by. | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_notifications(offset=integer,
limit=integer,
sort="string",
filter="string",
q="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.QueryNotificationsV1(offset=integer,
limit=integer,
sort="string",
filter="string",
q="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("QueryNotificationsV1",
offset=integer,
limit=integer,
sort="string",
filter="string",
q="string"
)
print(response)
Back to Table of Contents
QueryRulesV1
Query monitoring rules based on provided criteria. Use the IDs from this response to fetch the rules on GetRulesV1.
PEP8 method name
query_rules
Endpoint
Method | Route |
---|---|
/recon/queries/rules/v1 |
Required Scope
Content-Type
- Produces: application/json
Keyword Arguments
Name | Service | Uber | Type | Data type | Description |
---|---|---|---|---|---|
filter | query | string | FQL query expression that should be used to limit the results. | ||
limit | query | integer | Maximum number of records to return. | ||
offset | query | string | Starting index of overall result set from which to return ids. | ||
q | query | string | Free text search across all indexed fields. | ||
sort | query | string | The property to sort by. | ||
secondary_sort | query | string | The secondary property to sort by. secondarySort is also accepted as this keyword. Available fields: created_timestamp , last_updated_timestamp | ||
parameters | query | dictionary | Full query string parameters payload in JSON format. |
Usage
Service class example (PEP8 syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_rules(offset="string",
limit=integer,
sort="string",
secondary_sort="string",
filter="string",
q="string"
)
print(response)
Service class example (Operation ID syntax)
from falconpy import Recon
# Do not hardcode API credentials!
falcon = Recon(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.QueryRulesV1(offset="string",
limit=integer,
sort="string",
secondary_sort="string",
filter="string",
q="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("QueryRulesV1",
offset="string",
limit=integer,
sort="string",
secondary_sort="string",
filter="string",
q="string"
)
print(response)
Back to Table of Contents