Skip to content

ML Exclusions

The ML Exclusions service collection provides operations for managing machine learning exclusions. Retrieve, create, delete, update, and query ML exclusions. Also supports aggregation, reporting, and actions on exclusions with ancestor fields.

LanguageLast Update
Pythonv1.4.6
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
OperationDescription
getMLExclusionsV1
get_exclusions
Get a set of ML Exclusions by specifying their IDs.
createMLExclusionsV1
create_exclusions
Create the ML exclusions.
deleteMLExclusionsV1
delete_exclusions
Delete the ML exclusions by ID.
updateMLExclusionsV1
update_exclusions
Update the ML exclusions.
queryMLExclusionsV1
query_exclusions
Search for ML exclusions.
exclusions_aggregates_v2
get_exclusion_aggregates
Get exclusion aggregates as specified via json in request body.
exclusions_get_all_v2
get_all_exclusions
Get all exclusions.
exclusions_perform_action_v2
perform_exclusion_action
Actions used to manipulate the content of exclusions, with ancestor fields.
exclusions_get_reports_v2
get_exclusion_reports
Create a report of ML exclusions scoped by the given filters.
exclusions_get_v2
get_exclusions_v2
Get the exclusions by id, with ancestor fields.
exclusions_create_v2
create_exclusions_v2
Create the exclusions, with ancestor fields.
exclusions_update_v2
update_exclusions_v2
Update the exclusions by id, with ancestor fields.
exclusions_delete_v2
delete_exclusions_v2
Delete the exclusions by id, with ancestor fields.
exclusions_search_v2
search_exclusions
Search for exclusions, with ancestor fields.

Get a set of ML Exclusions by specifying their IDs

GET /policy/entities/ml-exclusions/v1
Scope ML Exclusions: READ Consumes · Produces application/json
PEP 8 get_exclusions
NameTypeData typeDescription
idsquerystring or list of stringsThe IDs of the exclusions to retrieve.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import MLExclusions
falcon = MLExclusions(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_exclusions(ids=id_list)
print(response)

Create the ML exclusions

POST /policy/entities/ml-exclusions/v1
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 create_exclusions
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
commentbodystringString comment describing why the exclusions was created.
excluded_frombodylist of stringsGroup ID(s) explicitly excluded from the exclusion.
groupsbodylist of stringsGroup ID(s) impacted by the exclusion. Defaults to [“all”] when not specified while using a Service Class. This default must be provided by the developer when using the Uber Class.
valuebodystringValue to match for the exclusion.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.create_exclusions(comment="string",
excluded_from=id_list,
groups=["string"],
value="string")
print(response)

Delete the ML exclusions by id

DELETE /policy/entities/ml-exclusions/v1
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 delete_exclusions
NameTypeData typeDescription
commentquerystringExplains why this exclusion was deleted.
idsquerystring or list of stringsThe IDs of the exclusions to retrieve.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import MLExclusions
falcon = MLExclusions(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_exclusions(comment="string", ids=id_list)
print(response)

Update the ML exclusions

PATCH /policy/entities/ml-exclusions/v1
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 update_exclusions
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
commentbodystringString comment describing why the exclusions was created.
groupsbodylist of stringsGroup ID(s) impacted by the exclusion.
idbodystringThe ID of the exclusion to update.
valuebodystringValue to match for the exclusion.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_exclusions(comment="string",
groups=["string"],
id="string",
is_descendant_process=boolean,
value="string")
print(response)

Search for ML exclusions.

GET /policy/queries/ml-exclusions/v1
Scope ML Exclusions: READ Consumes · Produces application/json
PEP 8 query_exclusions
NameTypeData typeDescription
filterquerystringThe filter expression that should be used to limit the results. FQL syntax. Available filters: applied_globally, created_by, created_on, last_modified, modified_by, value
limitqueryintegerThe maximum number of records to return. [1-500]
offsetqueryintegerThe offset to start retrieving records from.
parametersquerydictionaryFull query string parameters payload in JSON format.
sortquerystringThe property to sort by. FQL syntax. (e.g. last_behavior|asc) Available sort fields: applied_globally, created_by, created_on, last_modified, modified_by, value
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_exclusions(filter="string",
limit="string",
offset="string",
sort="string")
print(response)

Get exclusion aggregates as specified via json in request body.

POST /exclusions/aggregates/exclusions/GET/v2
Scope ML Exclusions: READ Consumes · Produces application/json
PEP 8 get_exclusion_aggregates
NameTypeData typeDescription
bodybodylist of dictionariesFull body payload as a JSON formatted list.
date_rangesbodylist of dictionariesList of date ranges for the aggregate.
excludebodystringExclusion string for the aggregate query.
extended_boundsbodydictionaryExtended bounds for the aggregate.
fieldbodystringThe field to aggregate on.
filterbodystringFQL filter to limit aggregation results.
filters_specbodydictionarySpecification for additional filters.
frombodyintegerStarting position for pagination.
includebodystringInclusion string for the aggregate query.
intervalbodystringTime interval for date histogram aggregates.
max_doc_countbodyintegerMaximum number of documents per bucket.
min_doc_countbodyintegerMinimum number of documents per bucket.
missingbodystringValue for documents missing the field.
namebodystringThe name of the aggregate query.
parametersquerydictionaryFull query string parameters payload in JSON format.
percentsbodylist of numbersList of percentiles to calculate.
qbodystringFull text query string.
rangesbodylist of dictionariesList of range specifications.
sizebodyintegerMaximum number of results to return per aggregate.
sortbodystringThe field to sort results on.
sub_aggregatesbodylist of dictionariesNested sub-aggregation definitions.
time_zonebodystringThe time zone for date operations.
typebodystringThe type of aggregate query to perform.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
date_ranges = [
{
"from": "string",
"to": "string"
}
]
extended_bounds = {
"max": "string",
"min": "string"
}
filters_spec = {
"filters": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"other_bucket": true,
"other_bucket_key": "string"
}
ranges = [
{
"From": 0,
"To": 0
}
]
sub_aggregates = [
null
]
response = falcon.aggregate_exclusions(date_ranges=date_ranges,
exclude="string",
extended_bounds=extended_bounds,
field="string",
filter="string",
filters_spec=filters_spec,
from=integer,
include="string",
interval="string",
max_doc_count=integer,
min_doc_count=integer,
missing="string",
name="string",
percents=["string"],
q="string",
ranges=ranges,
size=integer,
sort="string",
sub_aggregates=sub_aggregates,
time_zone="string",
type="string")
print(response)

Get all exclusions.

GET /exclusions/entities/all-exclusions/v2
Scope ML Exclusions: READ Consumes · Produces application/json
PEP 8 get_all_exclusions
NameTypeData typeDescription
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_all_exclusions()
print(response)

Actions used to manipulate the content of exclusions, with ancestor fields.

POST /exclusions/entities/exclusion-actions/v2
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 perform_exclusion_action
NameTypeData typeDescription
action_namequerystringThe action to perform. Available values: add_item, remove_item, validate_filepath.
action_parametersbodylist of dictionariesList of action parameter name/value pairs.
availablebodybooleanFlag indicating if the action is available.
bodybodydictionaryFull body payload in JSON format.
descriptionbodystringDescription of the action to perform.
groupbodystringThe group associated with this action.
labelbodystringThe label associated with this action.
namebodystringThe name associated with this action.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
action_parameters = [
{
"name": "string",
"value": "string"
}
]
response = falcon.perform_actions(action_name="string",
action_parameters=action_parameters,
available=boolean,
description="string",
group="string",
label="string",
name="string")
print(response)

Create a report of ML exclusions scoped by the given filters.

POST /exclusions/entities/exclusions/reports/v2
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 get_exclusion_reports
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
filterbodystringFQL filter to limit the report results.
report_formatbodystringThe format for the report output.
searchbodydictionarySearch criteria for the report.
sortbodystringThe field to sort report results on.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
search = {
"filter": "string",
"sort": "string"
}
response = falcon.get_reports(report_format="string", search=search)
print(response)

Get the exclusions by id, with ancestor fields.

GET /exclusions/entities/exclusions/v2
Scope ML Exclusions: READ Consumes · Produces application/json
PEP 8 get_exclusions_v2
NameTypeData typeDescription
idsquerystring or list of stringsThe IDs of the exclusions to retrieve.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import MLExclusions
falcon = MLExclusions(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_exclusions_by_id(ids=id_list)
print(response)

Create the exclusions, with ancestor fields.

POST /exclusions/entities/exclusions/v2
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 create_exclusions_v2
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
commentbodystringDescriptive comment for the exclusion.
excluded_frombodystring or list of stringsSources to exclude from.
exclusionsbodylist of dictionariesList of exclusion definition dictionaries.
grandparent_valuebodystringThe grandparent value for the exclusion.
groupsbodystring or list of stringsGroup IDs to apply this exclusion to.
parent_valuebodystringThe parent value for the exclusion.
valuebodystringThe value to exclude.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
exclusions = [
{
"comment": "string",
"excluded_from": [
"string"
],
"grandparent_value": "string",
"groups": [
"string"
],
"parent_value": "string",
"value": "string"
}
]
response = falcon.create_exclusions_v2(exclusions=exclusions)
print(response)

Update the exclusions by id, with ancestor fields.

PATCH /exclusions/entities/exclusions/v2
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 update_exclusions_v2
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
commentbodystringDescriptive comment for the exclusion update.
excluded_frombodystring or list of stringsSources to exclude from.
grandparent_valuebodystringThe grandparent value for the exclusion.
groupsbodystring or list of stringsGroup IDs to apply this exclusion to.
idbodystringThe ID of the exclusion to update.
parent_valuebodystringThe parent value for the exclusion.
valuebodystringThe value to exclude.
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_exclusions_v2(comment="string",
excluded_from=id_list,
grandparent_value="string",
groups=id_list,
id="string",
parent_value="string",
value="string")
print(response)

Delete the exclusions by id, with ancestor fields.

DELETE /exclusions/entities/exclusions/v2
Scope ML Exclusions: WRITE Consumes · Produces application/json
PEP 8 delete_exclusions_v2
NameTypeData typeDescription
commentquerystringThe comment why these exclusions were deleted.
idsquerystring or list of stringsThe IDs of the exclusions to delete.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import MLExclusions
falcon = MLExclusions(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_exclusions_v2(ids=id_list, comment="string")
print(response)

Search for exclusions, with ancestor fields.

GET /exclusions/queries/exclusions/v2
Scope ML Exclusions: READ Consumes · Produces application/json
PEP 8 search_exclusions
NameTypeData typeDescription
filterquerystringThe filter expression that should be used to limit the results. FQL syntax.
limitqueryintegerThe maximum records to return. [1-500]
offsetqueryintegerThe offset to start retrieving records from.
parametersquerydictionaryFull query string parameters payload in JSON format.
sortquerystringThe sort expression that should be used to sort the results. Available sort fields: applied_globally, created_by, created_on, grandparent_value, is_descendant_process, last_modified, modified_by, parent_value, value
from falconpy import MLExclusions
falcon = MLExclusions(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_exclusions_v2(filter="string",
offset=integer,
limit=integer,
sort="string")
print(response)