Create policy
Create a device policy in a tenant.
Endpoint
| Parameter | Value |
|---|---|
|
Service endpoint |
/policies/v2 |
|
Optional query string parameters |
— |
|
Example |
https://protectapi.cylance.com/policies/v2 |
|
Method |
HTTP/1.1 POST |
|
Request headers |
|
Request
This example creates a policy with most features enabled and includes some sample exclusions.
This example is for API testing only. Do not use this example policy on your devices. Always test a device policy before applying it to devices in your organization.
{
"policy_name": "testPolicy",
"script_control": {
"activescript_settings": {
"control_mode": "Alert",
"control_mode_v2":"BlockAbnormal"
},
"global_settings": {
"allowed_folders": ["/path.py"],
"allowed_folders_ext": [
{
"comment": "any test 200 chars long"
}
],
"control_mode": "Alert",
"score_all_scripts": false,
"upload_script_to_cloud": false,
"must_obtain_score_from_cloud": false,
"alert_suspicious_script_exec_only": false
},
"macro_settings": {
"control_mode": "Alert"
},
"powershell_settings": {
"control_mode": "Block",
"console_mode": "Block",
"control_mode_v2":"BlockAbnormal"
}
}
Response
For more information, see Response status codes.
Request JSON schema
| Field Name | Description |
|---|---|
|
checksum |
Mandatory field with an empty value. For example:
JSON
|
|
device_control |
Allows or blocks access to USB mass storage devices. Must be enabled under policy. All
Device control exclusion list allows or blocks access to specific USB mass storage devices.
To find the vendor ID for a USB mass storage device, enable Device Control settings in a device policy, assign that policy to a device, and then attach the USB mass storage device to the device. You can view external device logs in the Aurora Endpoint Security Konsole, on the Protection page or External Devices tab of the Device Details page. Example:
JSON
|
|
file_exclusions |
Adds file exclusions to the policy safe list, under file actions. Policy safe list exclusions are specific to the policy, and any endpoints assigned to the policy allow the excluded files to run.
Example:
JSON
|
|
filetype_actions |
Controls autoquarantine of unsafe and abnormal files.
|
|
logpolicy |
Agent log file settings.
|
|
memoryviolation _actions |
Memory protection violation types. These 3 rows explain the possible violation types. |
|
memory_violations |
|
|
memory_violations _ext |
|
|
memory_violations _ext_v2 |
|
|
memory_exclusion _list_v2 |
Executable files to exclude from Memory Protection. Must be a relative path to the excluded executable file.
Example:
JSON
|
|
policy |
Various policy settings are contained within this section. Some policy settings are enabled under policy and configured in a different section, like device_control and logpolicy. For most policy settings, the possible values are either 0 (disabled) or 1 (enabled). The remaining cells in this table explain policy settings in detail. |
|
Automatic policy settings |
|
|
Various policy settings |
|
|
Various policy settings continued |
|
|
Optics policy settings |
|
|
Aurora Adaptive Threat Protection policy settings |
Note:
This field is only present when the Aurora Adaptive Threat Protection device policy setting is enabled. Lists the Aurora Adaptive Threat Protection device policy settings. Sub-fields include:
|
|
policy_name |
Name of the policy. Must be unique to your tenant. |
|
script_control |
Policy settings for script control. script_control must be enabled (set to "1") under policy. activescript_settings
global_settings
|
macro_settings
|
|
|
script_control continued |
About disabling script control For Agent versions 1430 and later, you can disable script control for active script, PowerShell, or macros. Disabling script control allows the selected script type to run and does not send an alert to the console. To disable script control for a specific script type, do not include the script type in the create policy API request. For example: script control for macros is disabled.
JSON
|
|
user_id |
Unique ID for the user creating the policy. Only administrators can create policies. To get the user_id, use Get users. |
Response JSON schema
| Field Name | Description |
|---|---|
|
policy_id |
Unique identifier for the policy. |
|
policy_utctimestamp |
Date and time (in UTC) when the policy was created. |
|
match_rules_exclusions |
Note:
This field is only present when the Aurora Adaptive Threat Protection device policy setting is enabled. Lists exclusions to the Aurora Adaptive Threat Protection device policy settings. Sub-fields include:
|
|
ransomware |
Note:
This field is only present when the Aurora Adaptive Threat Protection device policy setting is enabled. Lists other Aurora Adaptive Threat Protection device policy settings. Sub-fields include:
|