Skip to content

Firewall Policies

The Firewall Policies service collection provides operations for managing Firewall Policies. Search for policies and their members, perform actions on policies, set policy precedence, retrieve, create, delete, and update Firewall Policies.

LanguageLast Update
Pythonv1.4.6
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
OperationDescription
queryCombinedFirewallPolicyMembers
query_combined_policy_members
Search for members of a Firewall Policy in your environment by providing a FQL filter and paging details. Returns a set of host details which match the filter criteria
queryCombinedFirewallPolicies
query_combined_policies
Search for Firewall Policies in your environment by providing a FQL filter and paging details. Returns a set of Firewall Policies which match the filter criteria
performFirewallPoliciesAction
perform_policies_action
Perform the specified action on the Firewall Policies specified in the request
setFirewallPoliciesPrecedence
set_policies_precedence
Sets the precedence of Firewall Policies based on the order of IDs specified in the request. The first ID specified will have the highest precedence and the last ID specified will have the lowest. You must specify all non-Default Policies for a platform when updating precedence
getFirewallPolicies
get_policies
Retrieve a set of Firewall Policies by specifying their IDs
createFirewallPolicies
create_policies
Create Firewall Policies by specifying details about the policy to create
deleteFirewallPolicies
delete_policies
Delete a set of Firewall Policies by specifying their IDs
updateFirewallPolicies
update_policies
Update Firewall Policies by specifying the ID of the policy and details to update
queryFirewallPolicyMembers
query_policy_members
Search for members of a Firewall Policy in your environment by providing a FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria
queryFirewallPolicies
query_policies
Search for Firewall Policies in your environment by providing a FQL filter and paging details. Returns a set of Firewall Policy IDs which match the filter criteria

Search for members of a Firewall Policy in your environment by providing a FQL filter and paging details. Returns a set of host details which match the filter criteria

GET /policy/combined/firewall-members/v1
Scope Firewall Policies: READ Consumes · Produces application/json
PEP 8 query_combined_policy_members
NameTypeData typeDescription
filterquerystringFQL Syntax formatted string used to limit the results.
idquerystringThe ID of the Firewall Policy to search for members of.
limitqueryintegerMaximum number of records to return. (Maximum: 5000)
offsetqueryintegerStarting index of overall result set from which to return ids.
sortquerystringThe property to sort by. (Ex: modified_timestamp.desc)
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_combined_policy_members(id="string",
filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)

Search for Firewall Policies in your environment by providing a FQL filter and paging details. Returns a set of Firewall Policies which match the filter criteria

GET /policy/combined/firewall/v1
Scope Firewall Policies: READ Consumes · Produces application/json
PEP 8 query_combined_policies
NameTypeData typeDescription
filterquerystringFQL Syntax formatted string used to limit the results.
limitqueryintegerMaximum number of records to return. (Maximum: 5000)
offsetqueryintegerStarting index of overall result set from which to return ids.
sortquerystringThe property to sort by. (Ex: modified_timestamp.desc)
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_combined_policies(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)

Perform the specified action on the Firewall Policies specified in the request

POST /policy/entities/firewall-actions/v1
Scope Firewall Policies: WRITE Consumes · Produces application/json
PEP 8 perform_policies_action
NameTypeData typeDescription
action_namequerystringThe action to perform. Allowed values: add-host-group, add-rule-group, disable, enable, remove-host-group, remove-rule-group
action_parametersbodylist of dictionariesList of name / value pairs in JSON format.
bodybodydictionaryFull body payload in JSON format.
group_idbody / action_parametersstringHost Group ID to apply the policy to. String. Overridden if action_parameters is specified.
idsbodystring or list of stringsResponse Policy ID(s) to perform actions against.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.perform_action(action_name="string",
action_parameters=[{"key": "value"}],
group_id="string",
ids=id_list)
print(response)

Sets the precedence of Firewall Policies based on the order of IDs specified in the request. The first ID specified will have the highest precedence and the last ID specified will have the lowest. You must specify all non-Default Policies for a platform when updating precedence

POST /policy/entities/firewall-precedence/v1
Scope Firewall Policies: WRITE Consumes · Produces application/json
PEP 8 set_policies_precedence
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
idsbodystring or list of stringsFirewall Policy ID(s) to adjust precedence.
platform_namebodystringOS platform name. (Linux, Mac, Windows)
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.set_policies(ids=id_list, platform_name="string")
print(response)

Retrieve a set of Firewall Policies by specifying their IDs

GET /policy/entities/firewall/v1
Scope Firewall Policies: READ Consumes · Produces application/json
PEP 8 get_policies
NameTypeData typeDescription
idsquerystring or list of stringsThe ID(s) of the Firewall Policies to return.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(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_policies(ids=id_list)
print(response)

Create Firewall Policies by specifying details about the policy to create

POST /policy/entities/firewall/v1
Scope Firewall Policies: WRITE Consumes · Produces application/json
PEP 8 create_policies
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
descriptionbodystringFirewall Policy description.
clone_idquerystringFirewall Policy ID to clone.
namebodystringFirewall Policy name.
platform_namebodystringFirewall Policy platform.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_policies(clone_id="string",
description="string",
name="string",
platform_name="string")
print(response)

Delete a set of Firewall Policies by specifying their IDs

DELETE /policy/entities/firewall/v1
Scope Firewall Policies: WRITE Consumes · Produces application/json
PEP 8 delete_policies
NameTypeData typeDescription
idsquerystring or list of stringsThe ID(s) of the Firewall Policies to delete.
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(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_policies(ids=id_list)
print(response)

Update Firewall Policies by specifying the ID of the policy and details to update

PATCH /policy/entities/firewall/v1
Scope Firewall Policies: WRITE Consumes · Produces application/json
PEP 8 update_policies
NameTypeData typeDescription
bodybodydictionaryFull body payload in JSON format.
descriptionbodystringFirewall Policy description.
idbodystringFirewall Policy ID to update.
namebodystringFirewall Policy name.
platform_namebodystringFirewall Policy platform.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_policies(id="string",
description="string",
name="string")
print(response)

Search for members of a Firewall Policy in your environment by providing a FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria

GET /policy/queries/firewall-members/v1
Scope Firewall Policies: READ Consumes · Produces application/json
PEP 8 query_policy_members
NameTypeData typeDescription
filterquerystringFQL Syntax formatted string used to limit the results.
idquerystringThe ID of the Firewall Policy to search for members of.
limitqueryintegerMaximum number of records to return. (Maximum: 5000)
offsetqueryintegerStarting index of overall result set from which to return ids.
sortquerystringThe property to sort by. (Ex: modified_timestamp.desc)
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_policy_members(id="string",
filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)

Search for Firewall Policies in your environment by providing a FQL filter and paging details. Returns a set of Firewall Policy IDs which match the filter criteria

GET /policy/queries/firewall/v1
Scope Firewall Policies: READ Consumes · Produces application/json
PEP 8 query_policies
NameTypeData typeDescription
filterquerystringFQL Syntax formatted string used to limit the results.
limitqueryintegerMaximum number of records to return. (Maximum: 5000)
offsetqueryintegerStarting index of overall result set from which to return ids.
sortquerystringThe property to sort by. (Ex: modified_timestamp.desc)
parametersquerydictionaryFull query string parameters payload in JSON format.
from falconpy import FirewallPolicies
falcon = FirewallPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_policies(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)