Skip to content

Tailored Intelligence

The Tailored Intelligence service collection provides operations for accessing events and rules data. Retrieve event body content, fetch event and rule entities by ID, and query events or rules using FQL-formatted filter criteria.

LanguageLast Update
Pythonv1.4.6
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
OperationDescription
GetEventsBody
get_event_body
Get event body for the provided event ID
GetEventsEntities
get_event_entities
Get events entities for specified ids.
QueryEvents
query_events
Get events ids that match the provided filter criteria.
GetRulesEntities
get_rule_entities
Get rules entities for specified ids.
QueryRules
query_rules
Get rules ids that match the provided filter criteria.

Get event body for the provided event ID.

GET /ti/events/entities/events-full-body/v2
Scope Tailored Intelligence: READ Produces application/octet-stream
PEP 8 get_event_body
NameTypeData typeDescription
idquerystring or list of stringsReturn the event body for event ID.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import TailoredIntelligence
falcon = TailoredIntelligence(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("output_file", "wb") as save_file:
response = falcon.get_event_body(id="string", stream=boolean)
save_file.write(response)

Get events entities for specified ids.

POST /ti/events/entities/events/GET/v2
Scope Tailored Intelligence: READ Consumes · Produces application/json
PEP 8 get_event_entities
NameTypeData typeDescription
idsbodystring or list of stringsReturn the event entities for specified ID.
bodybodydictionaryFull body payload in JSON format. Not required when using the ids keyword.
from falconpy import TailoredIntelligence
falcon = TailoredIntelligence(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_event_entities(ids=id_list)
print(response)

Get events ids that match the provided filter criteria.

GET /ti/events/queries/events/v2
Scope Tailored Intelligence: READ Consumes · Produces application/json
PEP 8 query_events
NameTypeData typeDescription
filterquerystringFQL query specifying the filter parameters. Wildcard character ’*’ means to not filter on anything.
limitqueryintegerThe maximum number of IDs to return in this response. Use with the offset parameter to manage pagination of results.
offsetqueryintegerStarting index of overall result set from which to return IDs.
parametersquerydictionaryFull query string parameters payload in JSON format.
qquerystringMatch phrase_prefix query criteria
sortquerystringSort results using a FQL formatted string. Available options: source_type, created_date, updated_date
from falconpy import FirewallManagement
falcon = FirewallManagement(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_events(after="string",
filter="string",
limit=integer,
offset=integer,
q="string",
sort="string")
print(response)

Get rules entities for specified ids.

POST /ti/rules/entities/rules/GET/v2
Scope Tailored Intelligence: READ Consumes · Produces application/json
PEP 8 get_rule_entities
NameTypeData typeDescription
idsbodystring or list of stringsReturn the rule entities for specified ID.
bodybodydictionaryFull body payload in JSON format. Not required when using the ids keyword.
from falconpy import TailoredIntelligence
falcon = TailoredIntelligence(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_rule_entities(ids=id_list)
print(response)

Get rules ids that match the provided filter criteria.

GET /ti/rules/queries/rules/v2
Scope Tailored Intelligence: READ Consumes · Produces application/json
PEP 8 query_rules
NameTypeData typeDescription
filterquerystringFQL query specifying the filter parameters. Wildcard character ’*’ means to not filter on anything.
limitqueryintegerThe maximum number of IDs to return in this response. Use with the offset parameter to manage pagination of results.
offsetqueryintegerStarting index of overall result set from which to return IDs.
parametersquerydictionaryFull query string parameters payload in JSON format.
qquerystringMatch phrase_prefix query criteria
sortquerystringSort results using a FQL formatted string. Available options: name, value, rule_type, customer_id, created_date, updated_date
from falconpy import FirewallManagement
falcon = FirewallManagement(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_rules(after="string",
filter="string",
limit=integer,
offset=integer,
q="string",
sort="string")
print(response)