-
Notifications
You must be signed in to change notification settings - Fork 162
Prevention Policy
| Operation ID | Description | ||||
|---|---|---|---|---|---|
|
Search for members of a Prevention Policy in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria | ||||
|
Search for Prevention Policies in your environment by providing an FQL filter and paging details. Returns a set of Prevention Policies which match the filter criteria | ||||
|
Perform the specified action on the Prevention Policies specified in the request | ||||
|
Sets the precedence of Prevention 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 | ||||
|
Retrieve a set of Prevention Policies by specifying their IDs | ||||
|
Create Prevention Policies by specifying details about the policy to create | ||||
|
Delete a set of Prevention Policies by specifying their IDs | ||||
|
Update Prevention Policies by specifying the ID of the policy and details to update | ||||
|
Search for members of a Prevention Policy in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria | ||||
|
Search for Prevention Policies in your environment by providing an FQL filter and paging details. Returns a set of Prevention Policy IDs which match the filter criteria | ||||
Search for members of a Prevention Policy in your environment by providing an FQL filter and paging details. Returns a set of host details which match the filter criteria
query_combined_policy_members
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| filter |
|
|
query | string | FQL query expression that should be used to limit the results. |
| limit |
|
|
query | integer | Maximum number of records to return. Max: 5000. |
| offset |
|
|
query | string | Starting index of overall result set from which to return ids. |
| id |
|
|
query | string | The ID of the Prevention Policy to search for members of. |
| sort |
|
|
query | string | The property to sort by. |
| parameters |
|
|
query | string | Full query string parameters payload in JSON format. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.query_combined_policy_members(id="string",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.queryCombinedPreventionPolicyMembers(id="string",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.command("queryCombinedPreventionPolicyMembers",
id="string",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)Search for Prevention Policies in your environment by providing an FQL filter and paging details. Returns a set of Prevention Policies which match the filter criteria
query_combined_policies
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| filter |
|
|
query | string | FQL query expression that should be used to limit the results. |
| limit |
|
|
query | integer | Maximum number of records to return. Max: 5000. |
| offset |
|
|
query | string | Starting index of overall result set from which to return ids. |
| sort |
|
|
query | string | The property to sort by. |
| parameters |
|
|
query | string | Full query string parameters payload in JSON format. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.query_combined_policies(filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.queryCombinedPreventionPolicies(filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.command("queryCombinedPreventionPolicies",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)Perform the specified action on the Prevention Policies specified in the request
perform_policies_action
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| action_name |
|
|
query | string | The action to perform. Allowed values:
|
| action_parameters |
|
|
body | list of dictionaries | List of name / value pairs in JSON format. |
| body |
|
|
body | string | Full body payload in JSON format. |
| ids |
|
|
body | string or list of strings | Prevention Policy ID(s) to perform actions against. |
| parameters |
|
|
query | string | Full query string parameters payload in JSON format. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
act_params = [{
"name": "string",
"value": "string"
}]
id_list = "ID1,ID2,ID3" # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.perform_policies_action(action_name="string",
action_parameters=act_params,
ids=id_list
)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
act_params = [{
"name": "string",
"value": "string"
}]
id_list = "ID1,ID2,ID3" # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.performPreventionPoliciesAction(action_name="string",
action_parameters=act_params,
ids=id_list
)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
PARAMS = {
"action_name": "string" # Can also pass action_name using a keyword
}
act_params = [{
"name": "string",
"value": "string"
}]
id_list = ['ID1', 'ID2', 'ID3']
BODY = {
"action_parameters": act_params,
"ids": id_list
}
response = falcon.command("performPreventionPoliciesAction", parameters=PARAMS, body=BODY)
print(response)Sets the precedence of Prevention 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
set_policies_precedence
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| body |
|
|
body | string | Full body payload in JSON format. |
| ids |
|
|
body | string or list of strings | Prevention Policy ID(s) to adjust precedence. |
| platform_name |
|
|
body | string | OS platform name. (Linux, Mac, Windows) |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = "ID1,ID2,ID3" # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.set_policies_precedence(ids=id_list, platform_name="string")
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = "ID1,ID2,ID3" # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.setPreventionPoliciesPrecedence(ids=id_list, platform_name="string")
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = ['ID1', 'ID2', 'ID3']
BODY = {
"ids": id_list,
"platform_name": "string"
}
response = falcon.command("setPreventionPoliciesPrecedence", body=BODY)
print(response)Retrieve a set of Prevention Policies by specifying their IDs
get_policies
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| ids |
|
|
query | string or list of strings | The ID(s) of the Prevention Policies to return. |
| parameters |
|
|
query | string | Full query string parameters payload in JSON format. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_policies(ids=id_list)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.getPreventionPolicies(ids=id_list)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("getPreventionPolicies", ids=id_list)
print(response)Create Prevention Policies by specifying details about the policy to create
create_policies
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| body |
|
|
body | string | Full body payload in JSON format. |
| clone_id |
|
|
body | string | Prevention Policy ID to clone. |
| description |
|
|
body | string | Prevention Policy description. |
| name |
|
|
body | string | Prevention Policy name. |
| platform_name |
|
|
body | string | Operating system platform name. |
| settings |
|
|
body | list of dictionaries | List of policy-specific settings to apply to the newly created policy. Multiple settings can be applied by passing a list containing multiple entries. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
policy_settings = {
"id": "string",
"value": {}
}
response = falcon.create_policies(clone_id="string",
description="string",
name="string",
platform_name="string",
settings=policy_settings
)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
policy_settings = {
"id": "string",
"value": {}
}
response = falcon.createPreventionPolicies(clone_id="string",
description="string",
name="string",
platform_name="string",
settings=policy_settings
)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
BODY = {
"resources": [
{
"clone_id": "string",
"description": "string",
"name": "string",
"platform_name": "string",
"settings": [
{
"id": "string",
"value": {}
}
]
}
]
}
response = falcon.command("createPreventionPolicies", body=BODY)
print(response)Delete a set of Prevention Policies by specifying their IDs
delete_policies
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| ids |
|
|
query | string or list of strings | The ID(s) of the Prevention Policies to delete. |
| parameters |
|
|
query | string | Full query string parameters payload in JSON format. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_policies(ids=id_list)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.deletePreventionPolicies(ids=id_list)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("deletePreventionPolicies", ids=id_list)
print(response)Update Prevention Policies by specifying the ID of the policy and details to update
update_policies
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| body |
|
|
body | string | Full body payload in JSON format. |
| description |
|
|
body | string | Prevention Policy description. |
| id |
|
|
body | string | Prevention Policy ID to update. |
| name |
|
|
body | string | Prevention Policy name. |
| settings |
|
|
body | list of dictionaries | List of policy-specific settings to apply to the newly created policy. Multiple settings can be applied by passing a list containing multiple entries. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
policy_settings = {
"id": "string",
"value": "string"
}
response = falcon.update_policies(id="string",
description="string",
name="string",
settings=policy_settings
)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
policy_settings = {
"id": "string",
"value": "string"
}
response = falcon.updatePreventionPolicies(id="string",
description="string",
name="string",
settings=policy_settings
)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
BODY = {
"resources": [
{
"description": "string",
"id": "string",
"name": "string",
"settings": [
{
"id": "string",
"value": {}
}
]
}
]
}
response = falcon.command("updatePreventionPolicies", body=BODY)
print(response)Search for members of a Prevention Policy in your environment by providing an FQL filter and paging details. Returns a set of Agent IDs which match the filter criteria
query_policy_members
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| filter |
|
|
query | string | FQL query expression that should be used to limit the results. |
| limit |
|
|
query | integer | Maximum number of records to return. Max: 5000. |
| offset |
|
|
query | string | Starting index of overall result set from which to return ids. |
| id |
|
|
query | string | The ID of the Prevention Policy to search for members of. |
| sort |
|
|
query | string | The property to sort by. |
| parameters |
|
|
query | string | Full query string parameters payload in JSON format. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.query_policy_members(id="string",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.queryPreventionPolicyMembers(id="string",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.command("queryPreventionPolicyMembers",
id="string",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)Search for Prevention Policies in your environment by providing an FQL filter and paging details. Returns a set of Prevention Policy IDs which match the filter criteria
query_policies
- Produces: application/json
| Name | Service | Uber | Type | Datatype | Description |
|---|---|---|---|---|---|
| filter |
|
|
query | string | FQL query expression that should be used to limit the results. |
| limit |
|
|
query | integer | Maximum number of records to return. Max: 5000. |
| offset |
|
|
query | string | Starting index of overall result set from which to return ids. |
| sort |
|
|
query | string | The property to sort by. |
| parameters |
|
|
query | string | Full query string parameters payload in JSON format. |
from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.query_policies(filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import PreventionPolicy
falcon = PreventionPolicy(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.queryPreventionPolicies(filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)from falconpy import APIHarness
falcon = APIHarness(client_id="API_CLIENT_ID_HERE",
client_secret="API_CLIENT_SECRET_HERE"
)
response = falcon.command("queryPreventionPolicies",
filter="string",
offset=integer,
limit=integer,
sort="string"
)
print(response)
- Home
- Discussions Board
- Glossary of Terms
- Installation, Upgrades and Removal
- Samples Collection
- Using FalconPy
- API Operations
-
Service Collections
- Admission Control Policies
- Alerts
- API Integrations
- ASPM
- CAO Hunting
- Case Management
- Certificate Based Exclusions
- Cloud AWS Registration
- Cloud Azure Registration
- Cloud GCP Registration
- Cloud OCI Registration
- Cloud Policies
- Cloud Connect AWS (deprecated)
- Cloud Security Assets
- Cloud Security
- Cloud Security Compliance
- Cloud Security Detections
- Cloud Snapshots
- Configuration Assessment
- Configuration Assessment Evaluation Logic
- Container Alerts
- Container Detections
- Container Image Compliance
- Container Images
- Container Packages
- Container Vulnerabilities
- Content Update Policies
- Correlation Rules
- Correlation Rules Admin
- CSPM Registration
- Custom IOAs
- Custom Storage
- D4C Registration (deprecated)
- Data Protection Configuration
- DataScanner (deprecated)
- Delivery Settings
- Deployments
- Detects (deprecated)
- Device Content
- Device Control Policies
- Discover
- Downloads
- Drift Indicators
- Event Streams
- Exposure Management
- FaaS Execution
- Falcon Complete Dashboard
- Falcon Container
- Falcon Intelligence Sandbox
- FDR
- FileVantage
- Firewall Management
- Firewall Policies
- Foundry LogScale
- Host Group
- Host Migration
- Hosts
- Identity Protection
- Image Assessment Policies
- Incidents
- Installation Tokens
- Intel
- Intelligence Feeds
- Intelligence Indicator Graph
- IOA Exclusions
- IOC
- IOCs (deprecated)
- IT Automation
- Kubernetes Container Compliance
- Kubernetes Protection
- MalQuery
- Message Center
- ML Exclusions
- Mobile Enrollment
- MSSP (Flight Control)
- NGSIEM
- OAuth2
- ODS (On Demand Scan)
- Prevention Policy
- Quarantine
- Quick Scan
- Quick Scan Pro
- Real Time Response
- Real Time Response Admin
- Real Time Response Audit
- Recon
- Report Executions
- Response Policies
- Sample Uploads
- SaaS Security
- Scheduled Reports
- Sensor Download
- Sensor Update Policy
- Sensor Usage
- Sensor Visibility Exclusions
- Serverless Exports
- Serverless Vulnerabilities
- Spotlight Evaluation Logic
- Spotlight Vulnerabilities
- Spotlight Vulnerability Metadata
- Tailored Intelligence
- ThreatGraph
- Unidentified Containers
- User Management
- Workflows
- Zero Trust Assessment
- Documentation Support
-
CrowdStrike SDKs
- Crimson Falcon - Ruby
- FalconPy - Python 3
- FalconJS - Javascript
- goFalcon - Go
- PSFalcon - Powershell
- Rusty Falcon - Rust
