Skip to content

Device Control Policies

The Device Control Policies service collection provides operations for managing device control policies across your CrowdStrike Falcon environment. Search, create, update, and delete Device Control Policies. Set policy precedence, manage policy members, and configure default device control settings for USB and Bluetooth devices.

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


OperationDescription
createDeviceControlPolicies
create_policies
Create Device Control Policies by specifying details about the policy to create
deprecated
deleteDeviceControlPolicies
delete_policies
Delete a set of Device Control Policies by specifying their IDs
getDefaultDeviceControlPolicies
get_default_policies
Retrieve the configuration for a Default Device Control Policy
deprecated
getDefaultDeviceControlSettings
get_default_settings
Get default device control settings (USB and Bluetooth)
getDeviceControlPolicies
get_policies
Retrieve a set of Device Control Policies by specifying their IDs
deprecated
getDeviceControlPoliciesV2
get_policies_v2
Get device control policies for the given filter criteria.
patchDeviceControlPoliciesClassesV1
update_policy_classes
Update device control policy’s classes (USB and Bluetooth)
patchDeviceControlPoliciesV2
update_policies_v2
Update device control policy base (USB and Bluetooth)
performDeviceControlPoliciesAction
perform_action
Perform the specified action on the Device Control Policies specified in the request
postDeviceControlPoliciesV2
create_policies_v2
Create/clone a device control policy (USB and Bluetooth)
queryCombinedDeviceControlPolicies
query_combined_policies
Search for Device Control Policies in your environment by providing an FQL filter and paging details.
queryCombinedDeviceControlPolicyMembers
query_combined_policy_members
Search for members of a Device Control Policy in your environment by providing an FQL filter and paging details.
queryDeviceControlPolicies
query_policies
Search for Device Control Policies in your environment by providing an FQL filter and paging details.
queryDeviceControlPolicyMembers
query_policy_members
Search for members of a Device Control Policy in your environment by providing an FQL filter and paging details.
setDeviceControlPoliciesPrecedence
set_precedence
Sets the precedence of Device Control Policies based on the order of IDs specified in the request.
updateDefaultDeviceControlPolicies
update_default_policies
Update the configuration for a Default Device Control Policy
deprecated
updateDefaultDeviceControlSettings
update_default_settings
Update the configuration for Default Device Control Settings
updateDeviceControlPolicies
update_policies
Update Device Control Policies by specifying the ID of the policy and details to update
deprecated

Create Device Control Policies by specifying details about the policy to create

Method POST
Route /policy/entities/device-control/v1
Scope Device control policies: WRITE
PEP 8 create_policies
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
List of policies to create. Maximum batch size: 1000.
clone_id body · string
ID of the Device Control Policy to clone.
description body · string
Device Control Policy description.
name body · string
Device Control Policy name.
platform_name body · string
Name of the operating system platform.
settings body · dictionary
Device Control policy specific settings. See above for JSON dictionary format example.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
settings = {
"classes": [
{
"action": "FULL_ACCESS",
"exceptions": [
{
"action": "string",
"combined_id": "string",
"description": "string",
"expiration_time": "2023-06-08T06:04:53.563Z",
"id": "string",
"product_id": "string",
"product_id_decimal": "string",
"product_name": "string",
"serial_number": "string",
"use_wildcard": True,
"vendor_id": "string",
"vendor_id_decimal": "string",
"vendor_name": "string"
}
],
"id": "string"
}
],
"custom_notifications": {
"blocked_notification": {
"custom_message": "string",
"use_custom": True
},
"restricted_notification": {
"custom_message": "string",
"use_custom": True
}
},
"delete_exceptions": [
"string"
],
"end_user_notification": "SILENT",
"enforcement_mode": "MONITOR_ONLY",
"enhanced_file_metadata": True
}
response = falcon.create_policies(clone_id="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": {}
}
]


Delete a set of Device Control Policies by specifying their IDs

Method DELETE
Route /policy/entities/device-control/v1
Scope Device control policies: WRITE
PEP 8 delete_policies
ids query · string or list of strings
The IDs of the Device Control Policies to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(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 the configuration for a Default Device Control Policy

Method GET
Route /policy/entities/default-device-control/v1
Scope Device control policies: READ
PEP 8 get_default_policies
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_default_policies()
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": {}
}
]


Get default device control settings (USB and Bluetooth)

Method GET
Route /policy/entities/device-control-default-settings/v1
Scope Device control policies: READ
PEP 8 get_default_settings
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_default_settings()
print(response)
[
{
"bluetooth_custom_notifications": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"usb_custom_notifications": {}
}
]


Retrieve a set of Device Control Policies by specifying their IDs

Method GET
Route /policy/entities/device-control/v1
Scope Device control policies: READ
PEP 8 get_policies
ids query · string or list of strings
The IDs of the Device Control Policies to return
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(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": {}
}
]


Get device control policies for the given filter criteria.

Method GET
Route /policy/entities/device-control/v2
Scope Device control policies: READ
PEP 8 get_policies_v2
ids query · string or list of strings
The IDs of the policies to get
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(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)
[
{
"assignment_type": "string",
"bluetooth_channel_version": 0,
"bluetooth_settings": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_id": "string",
"platform_name": "string",
"precedence": 0,
"propagated": false,
"settings_hash": "string",
"usb_channel_version": 0,
"usb_settings": {}
}
]


Update device control policy’s classes (USB and Bluetooth)

Method PATCH
Route /policy/entities/device-control-classes/v1
Scope Device control policies: WRITE
PEP 8 update_policy_classes
body body · dictionary
Full body payload as JSON formatted dictionary.
policies body · array
List of policy classes to update. Maximum batch size: 1000
bluetooth_classes body · dictionary
Bluetooth device control policy.
id body · string
Device control policy ID.
usb_classes body · dictionary
USB device control policy.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
bluetooth_classes = {
"classes": [
{
"action": "string",
"class": "string",
"minor_classes": [
{
"action": "string",
"minor_class": "string"
}
]
}
],
"delete_exceptions": [
"string"
],
"upsert_exceptions": [
{
"action": "string",
"class": "string",
"description": "string",
"expiration_time": "UTC date string",
"id": "string",
"minor_classes": [
"string"
],
"product_id": "string",
"product_name": "string",
"vendor_id": "string",
"vendor_id_source": "string",
"vendor_name": "string"
}
]
}
usb_classes = {
"classes": [
{
"action": "string",
"class": "string"
}
],
"delete_exceptions": [
"string"
],
"upsert_exceptions": [
{
"action": "string",
"class": "string",
"combined_id": "string",
"description": "string",
"expiration_time": "UTC date string",
"id": "string",
"product_id": "string",
"product_name": "string",
"serial_number": "string",
"use_wildcard": "boolean",
"vendor_id": "string",
"vendor_name": "string"
}
]
}
response = falcon.update_policy_classes(bluetooth_classes=bluetooth_classes,
id="string",
usb_classes=usb_classes)
print(response)
[
{
"assignment_type": "string",
"bluetooth_channel_version": 0,
"bluetooth_settings": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_id": "string",
"platform_name": "string",
"precedence": 0,
"propagated": false,
"settings_hash": "string",
"usb_channel_version": 0,
"usb_settings": {}
}
]


Update device control policy base (USB and Bluetooth)

Method PATCH
Route /policy/entities/device-control/v2
Scope Device control policies: WRITE
PEP 8 update_policies_v2
body body · dictionary
Full body payload as JSON formatted dictionary.
policies body · array
List of policies to update. Maximum batch size: 1000
bluetooth_settings body · string
Device Control policy USB specific settings. See above for JSON dictionary format example.
description body · string
Device Control Policy description.
id body · string
ID of the Device Control Policy to update.
name body · string
Device Control Policy name.
platform_name body · string
Name of the operating system platform.
usb_settings body · string
Device Control policy USB specific settings. See above for JSON dictionary format example.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_policies_v2(bluetooth_settings="string",
description="string",
id="string",
name="string",
platform_name="string",
usb_settings="string")
print(response)
[
{
"assignment_type": "string",
"bluetooth_channel_version": 0,
"bluetooth_settings": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_id": "string",
"platform_name": "string",
"precedence": 0,
"propagated": false,
"settings_hash": "string",
"usb_channel_version": 0,
"usb_settings": {}
}
]


Perform the specified action on the Device Control Policies specified in the request

Method POST
Route /policy/entities/device-control-actions/v1
Scope Device control policies: WRITE
PEP 8 perform_action
body body · dictionary
Full body payload as JSON formatted dictionary.
action_parameters body · array
Action specific parameter options.
ids body · array
Device Control 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 DeviceControlPolicies
falcon = DeviceControlPolicies(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)
[
{
"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/clone a device control policy (USB and Bluetooth)

Method POST
Route /policy/entities/device-control/v2
Scope Device control policies: WRITE
PEP 8 create_policies_v2
body body · dictionary
Full body payload as JSON formatted dictionary.
policies body · array
List of policies to create. Maximum batch size: 1000
bluetooth_settings body · string
Device Control policy USB specific settings. See above for JSON dictionary format example.
clone_id body · string
ID of the Device Control Policy to clone.
description body · string
Device Control Policy description.
name body · string
Device Control Policy name.
platform_name body · string
Name of the operating system platform.
usb_settings body · string
Device Control policy USB specific settings. See above for JSON dictionary format example.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_policies_v2(bluetooth_settings="string",
clone_id="string",
description="string",
name="string",
platform_name="string",
usb_settings="string")
print(response)
[
{
"assignment_type": "string",
"bluetooth_channel_version": 0,
"bluetooth_settings": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"enabled": false,
"groups": [],
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"name": "string",
"platform_id": "string",
"platform_name": "string",
"precedence": 0,
"propagated": false,
"settings_hash": "string",
"usb_channel_version": 0,
"usb_settings": {}
}
]


Search for Device Control Policies in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/combined/device-control/v1
Scope Device control policies: READ
PEP 8 query_combined_policies
filter query · string
FQL Syntax formatted string used to limit the results.
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. (Ex: modified_timestamp.desc)
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 DeviceControlPolicies
falcon = DeviceControlPolicies(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 members of a Device Control Policy in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/combined/device-control-members/v1
Scope Device control policies: READ
PEP 8 query_combined_policy_members
id query · string
The ID of the Device Control Policy to search for members of
filter query · string
FQL Syntax formatted string used to limit the results.
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. (Ex: modified_timestamp.desc)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(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"
}
]


Search for Device Control Policies in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/queries/device-control/v1
Scope Device control policies: READ
PEP 8 query_policies
filter query · string
FQL Syntax formatted string used to limit the results.
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. (Ex: modified_timestamp.desc)
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 DeviceControlPolicies
falcon = DeviceControlPolicies(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 Device Control Policy in your environment by providing an FQL filter and paging details.

Method GET
Route /policy/queries/device-control-members/v1
Scope Device control policies: READ
PEP 8 query_policy_members
id query · string
The ID of the Device Control Policy to search for members of
filter query · string
FQL Syntax formatted string used to limit the results.
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. (Ex: modified_timestamp.desc)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(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"
]


Sets the precedence of Device Control Policies based on the order of IDs specified in the request.

Method POST
Route /policy/entities/device-control-precedence/v1
Scope Device control policies: WRITE
PEP 8 set_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 DeviceControlPolicies
falcon = DeviceControlPolicies(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_precedence(ids=id_list, platform_name="string")
print(response)
[
"string"
]


Update the configuration for a Default Device Control Policy

Method PATCH
Route /policy/entities/default-device-control/v1
Scope Device control policies: WRITE
PEP 8 update_default_policies
body body · dictionary
Full body payload as JSON formatted dictionary.
custom_notifications body · object
blocked_notification body · string
dictionary containing the custom message and enablement status for the blocked notification.
blocked_custom_message body · string
Message to use for blocked notifications. Using this keyword will automatically generate the necessary blocked_notification.
restricted_custom_message body · string
message to use for restricted notifications. Using this keyword will automatically generate the necessary restricted_notification.
restricted_notification body · string
dictionary containing the custom message and enablement status for the restricted notification.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_default_policies(blocked_notification="string",
blocked_custom_message="string",
restricted_custom_message="string",
restricted_notification="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": {}
}
]


Update the configuration for Default Device Control Settings

Method PATCH
Route /policy/entities/device-control-default-settings/v1
Scope Device control policies: WRITE
PEP 8 update_default_settings
body body · dictionary
Full body payload as JSON formatted dictionary.
bluetooth_custom_notifications body · object
Custom bluetooth notifications.
usb_custom_notifications body · object
Custom USB notifications.
usb_exceptions body · list of dictionaries
USB exceptions.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
bluetooth_custom_notifications = {
"blocked_notification": {
"custom_message": "string",
"use_custom": "boolean"
}
}
usb_custom_notifications = {
"blocked_notification": {
"custom_message": "string",
"use_custom": "boolean"
},
"restricted_notification": {
"custom_message": "string",
"use_custom": "boolean"
}
}
usb_exceptions = [
{
"delete_exceptions": [
"string"
],
"platform_name": "string",
"upsert_exceptions": [
{
"action": "string",
"class": "string",
"combined_id": "string",
"description": "string",
"id": "string",
"product_id": "string",
"product_name": "string",
"serial_number": "string",
"vendor_id": "string",
"vendor_name": "string"
}
]
}
]
response = falcon.update_default_settings(bluetooth_custom_notifications=bluetooth_custom_notifications,
usb_custom_notifications=usb_custom_notifications,
usb_exceptions=usb_exceptions)
print(response)
[
{
"bluetooth_custom_notifications": {},
"cid": "string",
"created_by": "string",
"created_timestamp": "string",
"id": "string",
"modified_by": "string",
"modified_timestamp": "string",
"usb_custom_notifications": {}
}
]


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

Method PATCH
Route /policy/entities/device-control/v1
Scope Device control policies: WRITE
PEP 8 update_policies
body body · dictionary
Full body payload as JSON formatted dictionary.
resources body · array
List of policies to update. Maximum batch size: 1000.
id body · string
ID of the Device Control Policy to update.
description body · string
Device Control Policy description.
name body · string
Device Control Policy name.
settings body · dictionary
Device Control policy specific settings. See above for JSON dictionary format example.
from falconpy import DeviceControlPolicies
falcon = DeviceControlPolicies(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
settings = {
"classes": [
{
"action": "FULL_ACCESS",
"exceptions": [
{
"action": "string",
"combined_id": "string",
"description": "string",
"expiration_time": "2023-06-08T06:10:39.965Z",
"id": "string",
"product_id": "string",
"product_id_decimal": "string",
"product_name": "string",
"serial_number": "string",
"use_wildcard": True,
"vendor_id": "string",
"vendor_id_decimal": "string",
"vendor_name": "string"
}
],
"id": "string"
}
],
"custom_notifications": {
"blocked_notification": {
"custom_message": "string",
"use_custom": True
},
"restricted_notification": {
"custom_message": "string",
"use_custom": True
}
},
"delete_exceptions": [
"string"
],
"end_user_notification": "SILENT",
"enforcement_mode": "MONITOR_ONLY",
"enhanced_file_metadata": True
}
response = falcon.update_policies(id="string",
description="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": {}
}
]