Skip to content

Sensor Update Policy

The Sensor Update Policy service collection provides operations for managing Sensor Update Policies in your CrowdStrike Falcon environment. Reveal and increment uninstall tokens, retrieve available sensor builds and kernel compatibility information, manage policy members, create and update policies with support for uninstall protection, and set policy precedence.

LanguageLast Update
Pythonv1.6.5
PowerShellv2.2.9
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.0

This service collection has code examples posted to the repository.



OperationDescription
createSensorUpdatePolicies
create_policies
Create Sensor Update Policies by specifying details about the policy to create
createSensorUpdatePoliciesV2
create_policies_v2
Create Sensor Update Policies by specifying details about the policy to create with additional support for uninstall protection
deleteSensorUpdatePolicies
delete_policies
Delete a set of Sensor Update Policies by specifying their IDs
getSensorUpdatePolicies
get_policies
Retrieve a set of Sensor Update Policies by specifying their IDs
getSensorUpdatePoliciesV2
get_policies_v2
Retrieve a set of Sensor Update Policies with additional support for uninstall protection by specifying their IDs
incrementUninstallToken
increment_uninstall_token
Increments a bulk maintenance token.
performSensorUpdatePoliciesAction
perform_policies_action
Perform the specified action on the Sensor Update Policies specified in the request
queryCombinedSensorUpdateBuilds
query_combined_builds
Retrieve available builds for use with Sensor Update Policies
queryCombinedSensorUpdateKernels
query_combined_kernels
Retrieve kernel compatibility info for Sensor Update Builds
queryCombinedSensorUpdatePolicies
query_combined_policies
Search for Sensor Update Policies in your environment by providing an FQL filter and paging details.
queryCombinedSensorUpdatePoliciesV2
query_combined_policies_v2
Search for Sensor Update Policies with additional support for uninstall protection in your environment by providing an FQL filter and paging details.
queryCombinedSensorUpdatePolicyMembers
query_combined_policy_members
Search for members of a Sensor Update Policy in your environment by providing an FQL filter and paging details.
querySensorUpdateKernelsDistinct
query_kernels
Retrieve kernel compatibility info for Sensor Update Builds
querySensorUpdatePolicies
query_policies
Search for Sensor Update Policies in your environment by providing an FQL filter and paging details.
querySensorUpdatePolicyMembers
query_policy_members
Search for members of a Sensor Update Policy in your environment by providing an FQL filter and paging details.
revealUninstallToken
reveal_uninstall_token
Reveals an uninstall token for a specific device.
setSensorUpdatePoliciesPrecedence
set_policies_precedence
Sets the precedence of Sensor Update Policies based on the order of IDs specified in the request.
updateSensorUpdatePolicies
update_policies
Update Sensor Update Policies by specifying the ID of the policy and details to update
updateSensorUpdatePoliciesV2
update_policies_v2
Update Sensor Update Policies by specifying the ID of the policy and details to update with additional support for uninstall protection

Create Sensor Update Policies by specifying details about the policy to create

Method POST
Route /policy/entities/sensor-update/v1
Scope Sensor update policies: WRITE
PEP 8 create_policies
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
A collection of policies to create
build body · string
Build policy applies to.
description body · string
Sensor Update Policy description.
name body · string
Sensor Update Policy name.
platform_name body · string
Name of the operating system platform.
settings body · dictionary
Sensor update policy specific settings. OVERRIDES the value of the “build” keyword if provided.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
settings = {
"build": "string"
}
response = falcon.create_policies(build="string",
description="string",
name="string",
platform_name="string",
settings=settings)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Create Sensor Update Policies by specifying details about the policy to create with additional support for uninstall protection

Method POST
Route /policy/entities/sensor-update/v2
Scope Sensor update policies: WRITE
PEP 8 create_policies_v2
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
A collection of policies to create
build body · string
Build policy applies to.
description body · string
Sensor Update Policy description.
name body · string
Sensor Update Policy name.
platform_name body · string
Name of the operating system platform.
scheduler body · dictionary
Scheduler settings.
settings body · dictionary
Sensor update policy specific settings. OVERRIDES the value of the “build” and “uninstall_protection” keywords if provided.
show_early_adopter_builds body · boolean
Enable early adopter builds.
uninstall_protection body · string
Boolean indicating if uninstall protection should be enabled. Allowed values:
Available values (2)
ENABLEDDISABLED
variants body · list of dictionaries
List of variants.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
scheduler = {
"enabled": True,
"schedules": [
{
"days": [
0
],
"end": "string",
"start": "string"
}
],
"timezone": "string"
}
settings = {
"build": "string",
"scheduler": {
"enabled": True,
"schedules": [
{
"days": [
0
],
"end": "string",
"start": "string"
}
],
"timezone": "string"
},
"show_early_adopter_builds": True,
"uninstall_protection": "ENABLED",
"variants": [
{
"build": "string",
"platform": "string"
}
]
}
variants = [
{
"build": "string",
"platform": "string"
}
]
response = falcon.create_policies_v2(build="string",
description="string",
name="string",
platform_name="string",
scheduler=scheduler,
settings=settings,
show_early_adopter_builds=boolean,
uninstall_protection="string",
variants=variants)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Delete a set of Sensor Update Policies by specifying their IDs

Method DELETE
Route /policy/entities/sensor-update/v1
Scope Sensor update policies: WRITE
PEP 8 delete_policies
ids query · string or list of strings
The IDs of the Sensor Update Policies to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(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)
[
"string"
]


Retrieve a set of Sensor Update Policies by specifying their IDs

Method GET
Route /policy/entities/sensor-update/v1
Scope Sensor update policies: READ
PEP 8 get_policies
ids query · string or list of strings
The IDs of the Sensor Update Policies to return
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(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)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Retrieve a set of Sensor Update Policies with additional support for uninstall protection by specifying their IDs

Method GET
Route /policy/entities/sensor-update/v2
Scope Sensor update policies: READ
PEP 8 get_policies_v2
ids query · string or list of strings
The IDs of the Sensor Update Policies to return
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(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_v2(ids=id_list)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Increments a bulk maintenance token.

Method POST
Route /policy/combined/increment-uninstall-token/v1
Scope Bulk uninstallation token: WRITE
PEP 8 increment_uninstall_token
body body · dictionary
Full body payload as JSON formatted dictionary.
audit_message body · string
An optional message to append to the recorded audit log
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.increment_uninstall_token(audit_message="string")
print(response)
{
"errors": [
{
"code": 0,
"id": "string",
"message": "string"
}
],
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
},
"powered_by": "string",
"query_time": 0.0,
"trace_id": "string",
"writes": {
"resources_affected": 0
}
}
}


Perform the specified action on the Sensor Update Policies specified in the request

Method POST
Route /policy/entities/sensor-update-actions/v1
Scope Sensor update policies: WRITE
PEP 8 perform_policies_action
body body · dictionary
Full body payload as JSON formatted dictionary.
action_parameters body · array
Action specific parameter options.
ids body · array
Sensor Update policy ID(s) to perform actions against.
action_name query · string
The action to perform
Available values (6)
add-host-groupadd-rule-groupdisable
enableremove-host-groupremove-rule-group
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
group_id body · string
Host Group ID to apply the policy to. Overridden if action_parameters is specified.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(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_policies_action(action_name="string",
action_parameters=[{"key": "value"}],
group_id="string",
ids=id_list)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Retrieve available builds for use with Sensor Update Policies

Method GET
Route /policy/combined/sensor-update-builds/v1
Scope Sensor update policies: READ
PEP 8 query_combined_builds
platform query · string
The platform to return builds for
Available values (5)
windowsmaclinux
linuxarm64zlinux
stage query · string or list of strings
The stages to return builds for
Available values (2)
prodearly_adopter
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.query_combined_builds(platform="string", stage=id_list)
print(response)
[
{
"build": "string",
"is_lts_build": false,
"platform": "string",
"sensor_version": "string",
"stage": "string"
}
]


Retrieve kernel compatibility info for Sensor Update Builds

Method GET
Route /policy/combined/sensor-update-kernels/v1
Scope Sensor update policies: READ
PEP 8 query_combined_kernels
filter query · string
The filter expression that should be used to limit the results using FQL syntax.
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-500]
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_combined_kernels(filter="string",
limit=integer,
offset=integer)
print(response)
[
{
"architecture": "string",
"base_package_supported_sensor_versions": [],
"created_timestamp": "string",
"distro": "string",
"distro_version": "string",
"flavor": "string",
"id": "string",
"modified_timestamp": "string",
"release": "string",
"vendor": "string",
"version": "string",
"ztl_module_supported_sensor_versions": [],
"ztl_supported_sensor_versions": []
}
]


Search for Sensor Update Policies in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/combined/sensor-update/v1
Scope Sensor update policies: READ
PEP 8 query_combined_policies
filter query · string
The filter expression that should be used to limit the results
Available values (11)
Namecreated_bycreated_timestamp
descriptionenabledgroups
modified_bymodified_timestampname
name.rawplatform_name
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by in FQL syntax. Supports asc or desc. Available sort options:
Available values (16)
created_by.asccreated_by.desccreated_timestamp.asc
created_timestamp.descenabled.ascenabled.desc
modified_by.ascmodified_by.descmodified_timestamp.asc
modified_timestamp.descname.ascname.desc
platform_name.ascplatform_name.descprecedence.asc
precedence.desc
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_combined_policies(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Search for Sensor Update Policies with additional support for uninstall protection in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/combined/sensor-update/v2
Scope Sensor update policies: READ
PEP 8 query_combined_policies_v2
filter query · string
The filter expression that should be used to limit the results
Available values (11)
Namecreated_bycreated_timestamp
descriptionenabledgroups
modified_bymodified_timestampname
name.rawplatform_name
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by in FQL syntax. Supports asc or desc. Available sort options:
Available values (16)
created_by.asccreated_by.desccreated_timestamp.asc
created_timestamp.descenabled.ascenabled.desc
modified_by.ascmodified_by.descmodified_timestamp.asc
modified_timestamp.descname.ascname.desc
platform_name.ascplatform_name.descprecedence.asc
precedence.desc
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_combined_policies_v2(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Search for members of a Sensor Update Policy in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/combined/sensor-update-members/v1
Scope Sensor update policies: READ
PEP 8 query_combined_policy_members
id query · string
The ID of the Sensor Update Policy to search for members of
filter query · string
The filter expression that should be used to limit the results
Available values (11)
Namecreated_bycreated_timestamp
descriptionenabledgroups
modified_bymodified_timestampname
name.rawplatform_name
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by in FQL syntax. Supports asc or desc. Available sort options:
Available values (8)
created_bycreated_timestampenabled
modified_bymodified_timestampname
platform_nameprecedence
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(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)
[
{
"agent_load_flags": "string",
"agent_local_time": "string",
"agent_version": "string",
"base_image_version": "string",
"bios_manufacturer": "string",
"bios_version": "string",
"build_number": "string",
"chassis_type": "string",
"chassis_type_desc": "string",
"cid": "string",
"cloud_service_compartment_id": "string",
"config_id_base": "string",
"config_id_build": "string",
"config_id_platform": "string",
"connection_ip": "string",
"connection_mac_address": "string",
"cpu_signature": "string",
"cpu_vendor": "string",
"criticality": "string",
"default_gateway_ip": "string",
"deployment_type": "string",
"detection_suppression_status": "string",
"device_id": "string",
"device_policies": {},
"email": "string",
"external_ip": "string",
"filesystem_containment_status": "string",
"first_login_timestamp": "string",
"first_login_user": "string",
"first_seen": "string",
"group_hash": "string",
"groups": [],
"host_deleted_status": "string",
"host_hidden_status": "string",
"host_utc_offset": "string",
"hostname": "string",
"instance_id": "string",
"internet_exposure": "string",
"k8s_cluster_git_version": "string",
"k8s_cluster_id": "string",
"k8s_cluster_version": "string",
"kernel_version": "string",
"last_login_timestamp": "string",
"last_login_uid": "string",
"last_login_user": "string",
"last_login_user_sid": "string",
"last_reboot": "string",
"last_seen": "string",
"license_activation_state": "string",
"linux_sensor_mode": "string",
"local_ip": "string",
"mac_address": "string",
"machine_domain": "string",
"major_version": "string",
"managed_apps": {},
"meta": {},
"migration_completed_time": "string",
"minor_version": "string",
"modified_timestamp": "string",
"notes": [],
"os_build": "string",
"os_product_name": "string",
"os_version": "string",
"ou": [],
"platform_id": "string",
"platform_name": "string",
"pod_annotations": [],
"pod_host_ip4": "string",
"pod_host_ip6": "string",
"pod_hostname": "string",
"pod_id": "string",
"pod_ip4": "string",
"pod_ip6": "string",
"pod_labels": [],
"pod_name": "string",
"pod_namespace": "string",
"pod_service_account_name": "string",
"pointer_size": "string",
"policies": [],
"product_type": "string",
"product_type_desc": "string",
"provision_status": "string",
"reduced_functionality_mode": "string",
"release_group": "string",
"rtr_state": "string",
"safe_mode": "string",
"serial_number": "string",
"service_pack_major": "string",
"service_pack_minor": "string",
"service_provider": "string",
"service_provider_account_id": "string",
"site_name": "string",
"slow_changing_modified_timestamp": "string",
"status": "string",
"system_manufacturer": "string",
"system_product_name": "string",
"tags": [],
"zone_group": "string"
}
]


Retrieve kernel compatibility info for Sensor Update Builds

Method GET
Route /policy/queries/sensor-update-kernels/{distinct-field}/v1
Scope Sensor update policies: READ
PEP 8 query_kernels
distinct-field path · string
The field name to get distinct values for
filter query · string
The filter expression that should be used to limit the results using FQL syntax.
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-500]
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
distinct_field body · string
The field name to get distinct values for. If you do not specify a value for this field it will default to id.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_kernels(distinct_field="string",
filter="string",
limit=integer,
offset=integer)
print(response)
[
"string"
]


Search for Sensor Update Policies in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/queries/sensor-update/v1
Scope Sensor update policies: READ
PEP 8 query_policies
filter query · string
The filter expression that should be used to limit the results
Available values (11)
Namecreated_bycreated_timestamp
descriptionenabledgroups
modified_bymodified_timestampname
name.rawplatform_name
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by in FQL syntax. Supports asc or desc. Available sort options:
Available values (16)
created_by.asccreated_by.desccreated_timestamp.asc
created_timestamp.descenabled.ascenabled.desc
modified_by.ascmodified_by.descmodified_timestamp.asc
modified_timestamp.descname.ascname.desc
platform_name.ascplatform_name.descprecedence.asc
precedence.desc
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_policies(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Search for members of a Sensor Update Policy in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/queries/sensor-update-members/v1
Scope Sensor update policies: READ
PEP 8 query_policy_members
id query · string
The ID of the Sensor Update Policy to search for members of
filter query · string
The filter expression that should be used to limit the results
Available values (11)
Namecreated_bycreated_timestamp
descriptionenabledgroups
modified_bymodified_timestampname
name.rawplatform_name
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum records to return. [1-5000]
sort query · string
The property to sort by in FQL syntax. Supports asc or desc. Available sort options:
Available values (8)
created_bycreated_timestampenabled
modified_bymodified_timestampname
platform_nameprecedence
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(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)
[
"string"
]


Reveals an uninstall token for a specific device.

Method POST
Route /policy/combined/reveal-uninstall-token/v1
Scope Sensor update policies: WRITE
PEP 8 reveal_uninstall_token
body body · dictionary
Full body payload as JSON formatted dictionary.
audit_message body · string
An optional message to append to the recorded audit log
device_id body · string
The id of the device to reveal the token for
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.reveal_uninstall_token(audit_message="string",
device_id="string")
print(response)
[
{
"device_id": "string",
"seed_id": 0,
"uninstall_token": "string"
}
]


Sets the precedence of Sensor Update Policies based on the order of IDs specified in the request.

Method POST
Route /policy/entities/sensor-update-precedence/v1
Scope Sensor update policies: WRITE
PEP 8 set_policies_precedence
body body · dictionary
Full body payload as JSON formatted dictionary.
ids body · array
The ids of all current prevention policies for the platform specified. The precedence will be set in the order the ids are specified
platform_name body · string
The name of the platform for which to set precedence
Available values (3)
WindowsMacLinux
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(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_precedence(ids=id_list, platform_name="string")
print(response)
[
"string"
]


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

Method PATCH
Route /policy/entities/sensor-update/v1
Scope Sensor update policies: WRITE
PEP 8 update_policies
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
A collection of policies to update
build body · string
Build policy applies to.
description body · string
Sensor Update Policy description.
id body · string
Sensor Update Policy ID to update.
name body · string
Sensor Update Policy name.
settings body · dictionary
Sensor Update policy specific settings. OVERRIDES the value of the “build” keyword if provided.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
settings = {
"build": "string"
}
response = falcon.update_policies(build="string",
description="string",
id="string",
name="string",
settings=settings)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]


Update Sensor Update Policies by specifying the ID of the policy and details to update with additional support for uninstall protection

Method PATCH
Route /policy/entities/sensor-update/v2
Scope Sensor update policies: WRITE
PEP 8 update_policies_v2
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
A collection of policies to update
build body · string
Build policy applies to.
description body · string
Sensor Update Policy description.
id body · string
Sensor Update Policy ID to update.
name body · string
Sensor Update Policy name.
scheduler body · dictionary
Schedule settings.
settings body · dictionary
Sensor Update policy specific settings. OVERRIDES the value of the “build” keyword if provided.
show_early_adopter_builds body · boolean
Display early adopter builds.
uninstall_protection body · string
Boolean indicating if uninstall protection should be enabled. Allowed values:
Available values (2)
ENABLEDDISABLED
variants body · list of dictionaries
Allowed variants.
from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
scheduler = {
"enabled": True,
"schedules": [
{
"days": [
0
],
"end": "string",
"start": "string"
}
],
"timezone": "string"
}
settings = {
"build": "string",
"scheduler": {
"enabled": True,
"schedules": [
{
"days": [
0
],
"end": "string",
"start": "string"
}
],
"timezone": "string"
},
"show_early_adopter_builds": True,
"uninstall_protection": "ENABLED",
"variants": [
{
"build": "string",
"platform": "string"
}
]
}
variants = [
{
"build": "string",
"platform": "string"
}
]
response = falcon.update_policies_v2(build="string",
description="string",
id="string",
name="string",
scheduler=scheduler,
settings=settings,
show_early_adopter_builds=boolean,
uninstall_protection="string",
variants=variants)
print(response)
[
{
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_name": "string",
"settings": {}
}
]