CrowdStrike Falcon CrowdStrike Subreddit

Using the Data Protection Configuration service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
entities_classification_get_v2
PEP 8get_classification
Get the classifications that match the provided ids.
entities_classification_post_v2
PEP 8create_classification
Create classifications.
entities_classification_patch_v2
PEP 8update_classifications
Update classifications.
entities_classification_delete_v2
PEP 8delete_classification
Delete classifications that match the provided ids.
entities_cloud_application_get
PEP 8get_cloud_application
Get a particular cloud-application.
entities_cloud_application_create
PEP 8create_cloud_application
Persist the given cloud application for the provided entity instance.
entities_cloud_application_patch
PEP 8update_cloud_application
Update a cloud application.
entities_cloud_application_delete
PEP 8delete_cloud_application
Delete cloud application.
entities_content_pattern_get
PEP 8get_content_pattern
Get a particular content-pattern(s).
entities_content_pattern_create
PEP 8create_content_pattern
Persist the given content pattern for the provided entity instance.
entities_content_pattern_patch
PEP 8update_content_pattern
Update a content pattern.
entities_content_pattern_delete
PEP 8delete_content_pattern
Delete content pattern.
entities_policy_precedence_post_v1
PEP 8update_policy_precedence
Update Policy Precedence.
entities_enterprise_account_get
PEP 8get_enterprise_account
Get a particular enterprise-account(s).
entities_enterprise_account_create
PEP 8create_enterprise_account
Persist the given enterprise account for the provided entity instance.
entities_enterprise_account_patch
PEP 8update_enterprise_account
Update a enterprise account.
entities_enterprise_account_delete
PEP 8delete_enterprise_account
Delete enterprise account.
entities_file_type_get
PEP 8get_file_type
Get a particular file-type.
entities_sensitivity_label_get_v2
PEP 8get_sensitivity_label
Get sensitivity label matching the IDs (V2).
entities_sensitivity_label_create_v2
PEP 8create_sensitivity_label
Create new sensitivity label (V2).
entities_sensitivity_label_delete_v2
PEP 8delete_sensitivity_label
Delete sensitivity labels matching the IDs (V2).
entities_local_application_group_get
PEP 8get_local_application_group
Get particular local application groups.
entities_local_application_group_create
PEP 8create_local_application_group
Persist the given local application group for the provided entity instance.
entities_local_application_group_patch
PEP 8update_local_application_group
Update a local application group.
entities_local_application_group_delete
PEP 8delete_local_application_group
Soft Delete local application. The application won't be visible anymore, but will still be in the database.
entities_local_application_get
PEP 8get_local_application
Get a particular local application.
entities_local_application_create
PEP 8create_local_application
Persist the given local application for the provided entity instance.
entities_local_application_patch
PEP 8update_local_application
Update a local application.
entities_local_application_delete
PEP 8delete_local_application
Soft Delete local application. The application wont be visible anymore, but will still be in the database.
entities_policy_get_v2
PEP 8get_policies
Get policies that match the provided ids.
entities_policy_post_v2
PEP 8create_policy
Create policies.
entities_policy_patch_v2
PEP 8update_policies
Update policies.
entities_policy_delete_v2
PEP 8delete_policies
Delete policies that match the provided ids.
entities_web_location_get_v2
PEP 8get_web_location
Get web-location entities matching the provided ID(s).
entities_web_location_create_v2
PEP 8create_web_location
Persist the given web-locations.
entities_web_location_patch_v2
PEP 8update_web_location
Update a web-location.
entities_web_location_delete_v2
PEP 8delete_web_location
Delete web-location.
queries_classification_get_v2
PEP 8query_classifications
Search for classifications that match the provided criteria.
queries_cloud_application_get_v2
PEP 8query_cloud_applications
Get all cloud-application IDs matching the query with filter.
queries_content_pattern_get_v2
PEP 8query_content_patterns
Get all content-pattern IDs matching the query with filter.
queries_enterprise_account_get_v2
PEP 8query_enterprise_accounts
Get all enterprise-account IDs matching the query with filter.
queries_file_type_get_v2
PEP 8query_file_type
Get all file-type IDs matching the query with filter.
queries_sensitivity_label_get_v2
PEP 8query_sensitivity_label
Get all sensitivity label IDs matching the query with filter.
queries_local_application_group_get
PEP 8query_local_application_groups
Get all local application group IDs matching the query with filter.
queries_local_application_get
PEP 8query_local_applications
Get all local-application IDs matching the query with filter.
queries_policy_get_v2
PEP 8query_policies
Search for policies that match the provided criteria.
queries_web_location_get_v2
PEP 8query_web_locations
Get web-location IDs matching the query with filter.

Passing credentials

WARNING

client_id and client_secret are keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)

CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.

entities_classification_get_v2

Gets the classifications that match the provided ids

PEP8 method name

get_classification

Endpoint

MethodRoute
GET/data-protection/entities/classifications/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsIDs of the classifications to get
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_classification(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_classification_get_v2(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_classification_get_v2",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_classification_post_v2

Create classifications

PEP8 method name

create_classification

Endpoint

MethodRoute
POST/data-protection/entities/classifications/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
classification_propertiesService Class SupportNo Uber Class SupportbodydictionaryThe properties of the new classification.
nameService Class SupportNo Uber Class SupportbodystringThe name of the new classification.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

classification_properties = {
    "content_patterns": ["string"],
    "evidence_duplication_enabled": boolean,
    "file_types": ["string"],
    "protection_mode": "monitor",
    "rules": [
        {
            "ad_groups": ["string"],
            "ad_users": ["string"],
            "created_time_stamp": "string",
            "description": "string",
            "detection_severity": "informational",
            "enable_printer_egress": boolean,
            "enable_usb_devices": boolean,
            "enable_web_locations": boolean,
            "id": "string",
            "modified_time_stamp": "string",
            "notify_end_user": boolean,
            "response_action": "allow",
            "trigger_detection": boolean,
            "user_scope": "all",
            "web_locations": ["string"],
            "web_locations_scope": "all"
        }
    ],
    "sensitivity_labels": ["string"],
    "web_sources": ["string"]
}

response = falcon.create_classification(classification_properties=classification_properties,
                                        name="string"
                                        )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

classification_properties = {
    "content_patterns": ["string"],
    "evidence_duplication_enabled": boolean,
    "file_types": ["string"],
    "protection_mode": "monitor",
    "rules": [
        {
            "ad_groups": ["string"],
            "ad_users": ["string"],
            "created_time_stamp": "string",
            "description": "string",
            "detection_severity": "informational",
            "enable_printer_egress": boolean,
            "enable_usb_devices": boolean,
            "enable_web_locations": boolean,
            "id": "string",
            "modified_time_stamp": "string",
            "notify_end_user": boolean,
            "response_action": "allow",
            "trigger_detection": boolean,
            "user_scope": "all",
            "web_locations": ["string"],
            "web_locations_scope": "all"
        }
    ],
    "sensitivity_labels": ["string"],
    "web_sources": ["string"]
}

response = falcon.entities_classification_post_v2(classification_properties=classification_properties,
                                                  name="string"
                                                  )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )


BODY = {
    "resources": [
        {
        "classification_properties": {
            "content_patterns": [
            "string"
            ],
            "evidence_duplication_enabled": boolean,
            "file_types": [
            "string"
            ],
            "protection_mode": "monitor",
            "rules": [
            {
                "ad_groups": [
                "string"
                ],
                "ad_users": [
                "string"
                ],
                "created_time_stamp": "string",
                "description": "string",
                "detection_severity": "informational",
                "enable_printer_egress": boolean,
                "enable_usb_devices": boolean,
                "enable_web_locations": boolean,
                "id": "string",
                "modified_time_stamp": "string",
                "notify_end_user": boolean,
                "response_action": "allow",
                "trigger_detection": boolean,
                "user_scope": "all",
                "web_locations": [
                "string"
                ],
                "web_locations_scope": "all"
            }
            ],
            "sensitivity_labels": [
            "string"
            ],
            "web_sources": [
            "string"
            ]
        },
        "name": "string"
        }
    ]
}

response = falcon.command("entities_classification_post_v2",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_classification_patch_v2

Update classifications

PEP8 method name

update_classifications

Endpoint

MethodRoute
PATCH/data-protection/entities/classifications/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
classification_propertiesService Class SupportNo Uber Class SupportbodydictionaryThe properties of the new classification.
nameService Class SupportNo Uber Class SupportbodystringThe name of the new classification.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

classification_properties = {
    "content_patterns": ["string"],
    "evidence_duplication_enabled": boolean,
    "file_types": ["string"],
    "protection_mode": "monitor",
    "rules": [
        {
            "ad_groups": ["string"],
            "ad_users": ["string"],
            "created_time_stamp": "string",
            "description": "string",
            "detection_severity": "informational",
            "enable_printer_egress": boolean,
            "enable_usb_devices": boolean,
            "enable_web_locations": boolean,
            "id": "string",
            "modified_time_stamp": "string",
            "notify_end_user": boolean,
            "response_action": "allow",
            "trigger_detection": boolean,
            "user_scope": "all",
            "web_locations": ["string"],
            "web_locations_scope": "all"
        }
    ],
    "sensitivity_labels": ["string"],
    "web_sources": ["string"]
}


response = falcon.update_classifications(classification_properties=classification_properties,
                                         name="string"
                                         )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

classification_properties = {
    "content_patterns": ["string"],
    "evidence_duplication_enabled": boolean,
    "file_types": ["string"],
    "protection_mode": "monitor",
    "rules": [
        {
            "ad_groups": ["string"],
            "ad_users": ["string"],
            "created_time_stamp": "string",
            "description": "string",
            "detection_severity": "informational",
            "enable_printer_egress": boolean,
            "enable_usb_devices": boolean,
            "enable_web_locations": boolean,
            "id": "string",
            "modified_time_stamp": "string",
            "notify_end_user": boolean,
            "response_action": "allow",
            "trigger_detection": boolean,
            "user_scope": "all",
            "web_locations": ["string"],
            "web_locations_scope": "all"
        }
    ],
    "sensitivity_labels": ["string"],
    "web_sources": ["string"]
}

response = falcon.entities_classification_patch_v2(classification_properties=classification_properties,
                                                   name="string"
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "resources": [
        {
        "classification_properties": {
            "content_patterns": [
            "string"
            ],
            "evidence_duplication_enabled": boolean,
            "file_types": [
            "string"
            ],
            "protection_mode": "monitor",
            "rules": [
            {
                "ad_groups": [
                "string"
                ],
                "ad_users": [
                "string"
                ],
                "created_time_stamp": "string",
                "description": "string",
                "detection_severity": "informational",
                "enable_printer_egress": boolean,
                "enable_usb_devices": boolean,
                "enable_web_locations": boolean,
                "id": "string",
                "modified_time_stamp": "string",
                "notify_end_user": boolean,
                "response_action": "allow",
                "trigger_detection": boolean,
                "user_scope": "all",
                "web_locations": [
                "string"
                ],
                "web_locations_scope": "all"
            }
            ],
            "sensitivity_labels": [
            "string"
            ],
            "web_sources": [
            "string"
            ]
        },
        "name": "string"
        }
    ]
}

response = falcon.command("entities_classification_patch_v2",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_classification_delete_v2

Deletes classifications that match the provided ids

PEP8 method name

delete_classification

Endpoint

MethodRoute
DELETE/data-protection/entities/classifications/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsIDs of the classifications to delete
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.delete_classification(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_classification_delete_v2(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_classification_delete_v2",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_cloud_application_get

Get a particular cloud-application

PEP8 method name

get_cloud_application

Endpoint

MethodRoute
GET/data-protection/entities/cloud-applications/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsThe cloud application id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_cloud_application(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_cloud_application_get(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_cloud_application_get",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_cloud_application_create

Persist the given cloud application for the provided entity instance

PEP8 method name

create_cloud_application

Endpoint

MethodRoute
POST/data-protection/entities/cloud-applications/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the cloud application.
nameService Class SupportNo Uber Class SupportbodystringThe name of the cloud application.
urlsService Class SupportNo Uber Class Supportbodylist of dictionariesThe fields contain the FQDN and the path.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_cloud_application(description="string",
                                           name="string",
                                           urls=[
                                               {
                                                   "fqdn": "string",
                                                   "path": "string"
                                               }
                                           ]
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_cloud_application_create(description="string",
                                                    name="string",
                                                    urls=[
                                                        {
                                                            "fqdn": "string",
                                                            "path": "string"
                                                        }
                                                    ]
                                                    )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "description": "string",
    "name": "string",
    "urls": [
        {
        "fqdn": "string",
        "path": "string"
        }
    ]
}

response = falcon.command("entities_cloud_application_create",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_cloud_application_patch

Update a cloud application.

PEP8 method name

update_cloud_application

Endpoint

MethodRoute
PATCH/data-protection/entities/cloud-applications/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringThe cloud app id to update.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the cloud application.
nameService Class SupportNo Uber Class SupportbodystringThe name of the cloud application.
urlsService Class SupportNo Uber Class Supportbodylist of dictionariesThe fields contain the FQDN and the path.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_cloud_application(id="app_id_here",
                                           description="Updated cloud application description",
                                           name="Updated Cloud App Name",
                                           urls=[
                                               {
                                                   "fqdn": "updated-app.example.com",
                                                   "path": "/updated-path"
                                               }
                                           ]
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_cloud_application_patch(id="app_id_here",
                                                   description="Updated cloud application description",
                                                   name="Updated Cloud App Name",
                                                   urls=[
                                                       {
                                                           "fqdn": "updated-app.example.com",
                                                           "path": "/updated-path"
                                                       }
                                                   ]
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "description": "Updated cloud application description",
    "name": "Updated Cloud App Name",
    "urls": [
        {
            "fqdn": "updated-app.example.com",
            "path": "/updated-path"
        }
    ]
}

response = falcon.command("entities_cloud_application_patch",
                          id="app_id_here",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_cloud_application_delete

Delete cloud application.

PEP8 method name

delete_cloud_application

Endpoint

MethodRoute
DELETE/data-protection/entities/cloud-applications/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe id of the cloud application to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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_cloud_application(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_cloud_application_delete(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_cloud_application_delete", ids=id_list)

print(response)

Back to Table of Contents

entities_content_pattern_get

Get a particular content-pattern(s).

PEP8 method name

get_content_pattern

Endpoint

MethodRoute
GET/data-protection/entities/content-patterns/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe content-pattern id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_content_pattern(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_content_pattern_get(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_content_pattern_get",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_content_pattern_create

Persist the given content pattern for the provided entity instance.

PEP8 method name

create_content_pattern

Endpoint

MethodRoute
POST/data-protection/entities/content-patterns/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
categoryService Class SupportNo Uber Class SupportbodystringThe content pattern category.
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the content pattern.
exampleService Class SupportNo Uber Class SupportbodystringThe new content pattern demonstration.
min_match_thresholdService Class SupportNo Uber Class SupportbodyintegerInteger.
nameService Class SupportNo Uber Class SupportbodystringThe name of the new content pattern.
regexesService Class SupportNo Uber Class Supportbodylist of stringsList of strings.
regionService Class SupportNo Uber Class SupportbodystringThe region for the content pattern.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_content_pattern(category="pii",
                                         description="Social Security Number pattern",
                                         example="123-45-6789",
                                         min_match_threshold=integer,
                                         name="SSN Pattern",
                                         regexes=[
                                             "\\b\\d{3}-\\d{2}-\\d{4}\\b"
                                         ],
                                         region="us"
                                         )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_content_pattern_create(category="pii",
                                                  description="Social Security Number pattern",
                                                  example="123-45-6789",
                                                  min_match_threshold=integer,
                                                  name="SSN Pattern",
                                                  regexes=[
                                                      "\\b\\d{3}-\\d{2}-\\d{4}\\b"
                                                  ],
                                                  region="us"
                                                  )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "category": "pii",
    "description": "Social Security Number pattern",
    "example": "123-45-6789",
    "min_match_threshold": 3,
    "name": "SSN Pattern",
    "regexes": [
        "\\b\\d{3}-\\d{2}-\\d{4}\\b"
    ],
    "region": "us"
}

response = falcon.command("entities_content_pattern_create", body=BODY)
print(response)

Back to Table of Contents

entities_content_pattern_patch

Update a content pattern.

PEP8 method name

update_content_pattern

Endpoint

MethodRoute
PATCH/data-protection/entities/content-patterns/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringThe id of the content pattern to patch.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
categoryService Class SupportNo Uber Class SupportbodystringThe content pattern category.
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the content pattern.
exampleService Class SupportNo Uber Class SupportbodystringThe new content pattern demonstration.
min_match_thresholdService Class SupportNo Uber Class SupportbodyintegerInteger.
nameService Class SupportNo Uber Class SupportbodystringThe name of the new content pattern.
regexesService Class SupportNo Uber Class Supportbodylist of stringsList of strings.
regionService Class SupportNo Uber Class SupportbodystringThe region for the content pattern.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_content_pattern(id="pattern_id_here",
                                         category="financial",
                                         description="Updated credit card pattern",
                                         example="4123-4567-8901-2345",
                                         min_match_threshold=integer,
                                         name="Updated CC Pattern",
                                         regexes=[
                                             "\\b\\d{4}-\\d{4}-\\d{4}-\\d{4}\\b"
                                         ],
                                         region="global"
                                         )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_content_pattern_patch(id="pattern_id_here",
                                                 category="financial",
                                                 description="Updated credit card pattern",
                                                 example="4123-4567-8901-2345",
                                                 min_match_threshold=integer,
                                                 name="Updated CC Pattern",
                                                 regexes=[
                                                     "\\b\\d{4}-\\d{4}-\\d{4}-\\d{4}\\b"
                                                 ],
                                                 region="global"
                                                 )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "category": "financial",
    "description": "Updated credit card pattern",
    "example": "4123-4567-8901-2345",
    "min_match_threshold": 2,
    "name": "Updated CC Pattern",
    "regexes": [
        "\\b\\d{4}-\\d{4}-\\d{4}-\\d{4}\\b"
    ],
    "region": "global"
}

response = falcon.command("entities_content_pattern_patch",
                          id="pattern_id_here",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_content_pattern_delete

Delete content pattern.

PEP8 method name

delete_content_pattern

Endpoint

MethodRoute
DELETE/data-protection/entities/content-patterns/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe id(s) of the content pattern to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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_content_pattern(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_content_pattern_delete(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_content_pattern_delete", ids=id_list)

print(response)

Back to Table of Contents

entities_policy_precedence_post_v1

Update Policy Precedence.

PEP8 method name

update_policy_precedence

Endpoint

MethodRoute
POST/data-protection/entities/data-protection-precedence/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
platformService Class SupportNo Uber Class SupportbodystringThe platform for the policy precedence update (e.g., 'win' or 'mac').
precedenceService Class SupportNo Uber Class Supportbodylist of stringsOrdered list of policy IDs defining the precedence order.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_policy_precedence(platform="win",
                                           precedence=["policy_id_1", "policy_id_2"]
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_policy_precedence_post_v1(platform="win",
                                                     precedence=["policy_id_1", "policy_id_2"]
                                                     )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_policy_precedence_post_v1",
                          body={
                              "resources": [
                                  {
                                      "platform": "win",
                                      "precedence": [
                                          "policy_id_1",
                                          "policy_id_2"
                                      ]
                                  }
                              ]
                          })
print(response)

Back to Table of Contents

entities_enterprise_account_get

Get a particular enterprise-account(s).

PEP8 method name

get_enterprise_account

Endpoint

MethodRoute
GET/data-protection/entities/enterprise-accounts/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe enterprise-account id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_enterprise_account(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_enterprise_account_get(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_enterprise_account_get",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_enterprise_account_create

Persist the given enterprise account for the provided entity instance.

PEP8 method name

create_enterprise_account

Endpoint

MethodRoute
POST/data-protection/entities/enterprise-accounts/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
application_group_idService Class SupportNo Uber Class SupportbodystringString.
domainsService Class SupportNo Uber Class Supportbodylist of stringsList of strings.
nameService Class SupportNo Uber Class SupportbodystringThe name of the enterprise account.
plugin_config_idService Class SupportNo Uber Class SupportbodystringString.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_enterprise_account(application_group_id="app_group_123",
                                            domains=[
                                                "example.com",
                                                "subdomain.example.com"
                                            ],
                                            name="Enterprise Account Name",
                                            plugin_config_id="plugin_config_456"
                                            )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_enterprise_account_create(application_group_id="app_group_123",
                                                     domains=[
                                                         "example.com",
                                                         "subdomain.example.com"
                                                     ],
                                                     name="Enterprise Account Name",
                                                     plugin_config_id="plugin_config_456"
                                                     )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "application_group_id": "app_group_123",
    "domains": [
        "example.com",
        "subdomain.example.com"
    ],
    "name": "Enterprise Account Name",
    "plugin_config_id": "plugin_config_456"
}

response = falcon.command("entities_enterprise_account_create", body=BODY)
print(response)

Back to Table of Contents

entities_enterprise_account_patch

Update a enterprise account.

PEP8 method name

update_enterprise_account

Endpoint

MethodRoute
PATCH/data-protection/entities/enterprise-accounts/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringThe id of the enterprise account to update.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
application_group_idService Class SupportNo Uber Class SupportbodystringString.
domainsService Class SupportNo Uber Class Supportbodylist of stringsList of strings.
nameService Class SupportNo Uber Class SupportbodystringThe name of the enterprise account.
plugin_config_idService Class SupportNo Uber Class SupportbodystringString.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_enterprise_account(id="enterprise_account_id",
                                            application_group_id="updated_app_group_123",
                                            domains=[
                                                "newdomain.com",
                                                "updated.example.com"
                                            ],
                                            name="Updated Enterprise Account Name",
                                            plugin_config_id="updated_plugin_config_456"
                                            )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_enterprise_account_patch(id="enterprise_account_id",
                                                    application_group_id="updated_app_group_123",
                                                    domains=[
                                                        "newdomain.com",
                                                        "updated.example.com"
                                                    ],
                                                    name="Updated Enterprise Account Name",
                                                    plugin_config_id="updated_plugin_config_456"
                                                    )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "application_group_id": "updated_app_group_123",
    "domains": [
        "newdomain.com",
        "updated.example.com"
    ],
    "id": "enterprise_account_id",
    "name": "Updated Enterprise Account Name",
    "plugin_config_id": "updated_plugin_config_456"
}

response = falcon.command("entities_enterprise_account_patch",
                          id="enterprise_account_id",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_enterprise_account_delete

Delete enterprise account.

PEP8 method name

delete_enterprise_account

Endpoint

MethodRoute
DELETE/data-protection/entities/enterprise-accounts/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe id of the enterprise account to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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_enterprise_account(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_enterprise_account_delete(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_enterprise_account_delete", ids=id_list)

print(response)

Back to Table of Contents

entities_file_type_get

Get a particular file-type.

PEP8 method name

get_file_type

Endpoint

MethodRoute
GET/data-protection/entities/file-types/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe file-type id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_file_type(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_file_type_get(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_file_type_get",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_sensitivity_label_get_v2

Get sensitivity label matching the IDs (V2).

PEP8 method name

get_sensitivity_label

Endpoint

MethodRoute
GET/data-protection/entities/labels/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe sensitivity label entity id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_sensitivity_label(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_sensitivity_label_get_v2(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_sensitivity_label_get_v2",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_sensitivity_label_create_v2

Create new sensitivity label (V2).

PEP8 method name

create_sensitivity_label

Endpoint

MethodRoute
POST/data-protection/entities/labels/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
co_authoringService Class SupportNo Uber Class SupportbodybooleanBoolean.
display_nameService Class SupportNo Uber Class SupportbodystringString.
external_idService Class SupportNo Uber Class SupportbodystringString.
label_providerService Class SupportNo Uber Class SupportbodystringString.
nameService Class SupportNo Uber Class SupportbodystringThe name of the new sensitivity label.
plugins_configuration_idService Class SupportNo Uber Class SupportbodystringString.
syncedService Class SupportNo Uber Class SupportbodybooleanBoolean.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_sensitivity_label(co_authoring=boolean,
                                           display_name="Confidential Label",
                                           external_id="ext_id_123",
                                           label_provider="Microsoft",
                                           name="Confidential",
                                           plugins_configuration_id="plugin_config_789",
                                           synced=boolean
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_sensitivity_label_create_v2(co_authoring=boolean,
                                                       display_name="Confidential Label",
                                                       external_id="ext_id_123",
                                                       label_provider="Microsoft",
                                                       name="Confidential",
                                                       plugins_configuration_id="plugin_config_789",
                                                       synced=boolean
                                                       )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "co_authoring": boolean,
    "display_name": "Confidential Label",
    "external_id": "ext_id_123",
    "label_provider": "Microsoft",
    "name": "Confidential",
    "plugins_configuration_id": "plugin_config_789",
    "synced": boolean
}

response = falcon.command("entities_sensitivity_label_create_v2", body=BODY)
print(response)

Back to Table of Contents

entities_sensitivity_label_delete_v2

Delete sensitivity labels matching the IDs (V2).

PEP8 method name

delete_sensitivity_label

Endpoint

MethodRoute
DELETE/data-protection/entities/labels/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe sensitivity label entity id(s) to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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_sensitivity_label(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_sensitivity_label_delete_v2(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_sensitivity_label_delete_v2", ids=id_list)

print(response)

Back to Table of Contents

entities_local_application_group_get

Get particular local application groups.

PEP8 method name

get_local_application_group

Endpoint

MethodRoute
GET/data-protection/entities/local-application-groups/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsThe local application group id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_local_application_group(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_local_application_group_get(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_local_application_group_get",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_local_application_group_create

Persist the given local application group for the provided entity instance.

PEP8 method name

create_local_application_group

Endpoint

MethodRoute
POST/data-protection/entities/local-application-groups/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the local application group.
local_application_idsService Class SupportNo Uber Class Supportbodylist of stringsList of local application IDs to include in the group.
nameService Class SupportNo Uber Class SupportbodystringThe name of the local application group.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_local_application_group(description="string",
                                                 local_application_ids=["string"],
                                                 name="string"
                                                 )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_local_application_group_create(description="string",
                                                          local_application_ids=["string"],
                                                          name="string"
                                                          )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "description": "string",
    "local_application_ids": [
        "string"
    ],
    "name": "string"
}

response = falcon.command("entities_local_application_group_create",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_local_application_group_patch

Update a local application group.

PEP8 method name

update_local_application_group

Endpoint

MethodRoute
PATCH/data-protection/entities/local-application-groups/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringThe local app id to update.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the local application group.
local_application_idsService Class SupportNo Uber Class Supportbodylist of stringsList of local application IDs to include in the group.
nameService Class SupportNo Uber Class SupportbodystringThe name of the local application group.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_local_application_group(id="string",
                                                 description="string",
                                                 local_application_ids=["string"],
                                                 name="string"
                                                 )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_local_application_group_patch(id="string",
                                                         description="string",
                                                         local_application_ids=["string"],
                                                         name="string"
                                                         )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "description": "string",
    "local_application_ids": [
        "string"
    ],
    "name": "string"
}

response = falcon.command("entities_local_application_group_patch",
                          id="string",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_local_application_group_delete

Soft Delete local application. The application won't be visible anymore, but will still be in the database.

PEP8 method name

delete_local_application_group

Endpoint

MethodRoute
DELETE/data-protection/entities/local-application-groups/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsThe id of the local application group to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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_local_application_group(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_local_application_group_delete(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_local_application_group_delete", ids=id_list)

print(response)

Back to Table of Contents

entities_local_application_get

Get a particular local application.

PEP8 method name

get_local_application

Endpoint

MethodRoute
GET/data-protection/entities/local-applications/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsThe local application id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_local_application(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_local_application_get(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_local_application_get",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_local_application_create

Persist the given local application for the provided entity instance.

PEP8 method name

create_local_application

Endpoint

MethodRoute
POST/data-protection/entities/local-applications/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
apply_rules_for_children_processesService Class SupportNo Uber Class SupportbodybooleanWhether to apply rules for children processes of this application.
executable_nameService Class SupportNo Uber Class SupportbodystringThe executable name of the local application.
group_idsService Class SupportNo Uber Class Supportbodylist of stringsList of group IDs to associate with this local application.
nameService Class SupportNo Uber Class SupportbodystringThe name of the local application.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_local_application(apply_rules_for_children_processes=boolean,
                                           executable_name="string",
                                           group_ids=["string"],
                                           name="string"
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_local_application_create(apply_rules_for_children_processes=boolean,
                                                    executable_name="string",
                                                    group_ids=["string"],
                                                    name="string"
                                                    )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "apply_rules_for_children_processes": boolean,
    "executable_name": "string",
    "group_ids": [
        "string"
    ],
    "name": "string"
}

response = falcon.command("entities_local_application_create",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_local_application_patch

Update a local application.

PEP8 method name

update_local_application

Endpoint

MethodRoute
PATCH/data-protection/entities/local-applications/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringThe local app id to update.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
apply_rules_for_children_processesService Class SupportNo Uber Class SupportbodybooleanWhether to apply rules for children processes of this application.
executable_nameService Class SupportNo Uber Class SupportbodystringThe executable name of the local application.
group_idsService Class SupportNo Uber Class Supportbodylist of stringsList of group IDs to associate with this local application.
nameService Class SupportNo Uber Class SupportbodystringThe name of the local application.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_local_application(id="string",
                                           apply_rules_for_children_processes=boolean,
                                           executable_name="string",
                                           group_ids=["string"],
                                           name="string"
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_local_application_patch(id="string",
                                                   apply_rules_for_children_processes=boolean,
                                                   executable_name="string",
                                                   group_ids=["string"],
                                                   name="string"
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "apply_rules_for_children_processes": boolean,
    "executable_name": "string",
    "group_ids": [
        "string"
    ],
    "name": "string"
}

response = falcon.command("entities_local_application_patch",
                          id="string",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_local_application_delete

Soft Delete local application. The application wont be visible anymore, but will still be in the database.

PEP8 method name

delete_local_application

Endpoint

MethodRoute
DELETE/data-protection/entities/local-applications/v1

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsThe id of the local application to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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_local_application(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_local_application_delete(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_local_application_delete", ids=id_list)

print(response)

Back to Table of Contents

entities_policy_get_v2

Get policies that match the provided ids.

PEP8 method name

get_policies

Endpoint

MethodRoute
GET/data-protection/entities/policies/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsIDs of the policies to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_policies(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_policy_get_v2(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_policy_get_v2",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_policy_post_v2

Create policies.

PEP8 method name

create_policy

Endpoint

MethodRoute
POST/data-protection/entities/policies/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
platform_nameService Class SupportUber Class Supportquerystringplatform name of the policies to update, either 'win' or 'mac'.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the new policy.
nameService Class SupportNo Uber Class SupportbodystringThe name of the new policy.
policy_propertiesService Class SupportNo Uber Class SupportbodydictionaryThe properties of the new policy.
precedenceService Class SupportNo Uber Class SupportbodyintegerThe order of precedence.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_policy(platform_name="win",
                                description="Data protection policy for Windows endpoints",
                                name="Windows DLP Policy",
                                policy_properties={
                                    "allow_notifications": "default",
                                    "be_exclude_domains": "example.com",
                                    "be_paste_clipboard_max_size": 1048576,
                                    "be_paste_clipboard_max_size_unit": "Bytes",
                                    "be_paste_clipboard_min_size": integer,
                                    "be_paste_clipboard_min_size_unit": "Bytes",
                                    "be_paste_clipboard_over_size_behaviour_block": boolean,
                                    "be_paste_timeout_duration_milliseconds": 5000,
                                    "be_paste_timeout_response": "block",
                                    "be_splash_custom_message": "Data protection policy enforced",
                                    "be_splash_enabled": boolean,
                                    "be_splash_message_source": "default",
                                    "be_upload_timeout_duration_seconds": 30,
                                    "be_upload_timeout_response": "block",
                                    "block_all_data_access": boolean,
                                    "block_notifications": "default",
                                    "browsers_without_active_extension": "allow",
                                    "classifications": [
                                        "classification_id_here"
                                    ],
                                    "custom_allow_notification": "Access allowed",
                                    "custom_block_notification": "Access blocked",
                                    "enable_clipboard_inspection": boolean,
                                    "enable_content_inspection": boolean,
                                    "enable_context_inspection": boolean,
                                    "enable_end_user_notifications_unsupported_browser": boolean,
                                    "enable_network_inspection": boolean,
                                    "evidence_download_enabled": boolean,
                                    "evidence_duplication_enabled_default": boolean,
                                    "evidence_encrypted_enabled": boolean,
                                    "evidence_storage_free_disk_perc": 10,
                                    "evidence_storage_max_size": 1073741824,
                                    "inspection_depth": "balanced",
                                    "max_file_size_to_inspect": 10485760,
                                    "max_file_size_to_inspect_unit": "Bytes",
                                    "min_confidence_level": "medium",
                                    "network_inspection_files_exceeding_size_limit": "block",
                                    "similarity_detection": boolean,
                                    "similarity_threshold": "10",
                                    "unsupported_browsers_action": "allow"
                                },
                                precedence=1
                                )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_policy_post_v2(platform_name="win",
                                          description="Data protection policy for Windows endpoints",
                                          name="Windows DLP Policy",
                                          policy_properties={
                                              "allow_notifications": "default",
                                              "enable_content_inspection": boolean,
                                              "enable_network_inspection": boolean,
                                              "min_confidence_level": "medium"
                                          },
                                          precedence=1
                                          )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "resources": [
        {
            "description": "Data protection policy for Windows endpoints",
            "name": "Windows DLP Policy",
            "policy_properties": {
                "allow_notifications": "default",
                "enable_content_inspection": boolean,
                "enable_network_inspection": boolean,
                "min_confidence_level": "medium"
            },
            "precedence": 1
        }
    ]
}

response = falcon.command("entities_policy_post_v2",
                          platform_name="win",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_policy_patch_v2

Update policies.

PEP8 method name

update_policies

Endpoint

MethodRoute
PATCH/data-protection/entities/policies/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
platform_nameService Class SupportUber Class Supportquerystringplatform name of the policies to update, either 'win' or 'mac'.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
descriptionService Class SupportNo Uber Class SupportbodystringThe description of the policy.
nameService Class SupportNo Uber Class SupportbodystringThe name of the policy.
policy_propertiesService Class SupportNo Uber Class SupportbodydictionaryThe properties of the policy.
precedenceService Class SupportNo Uber Class SupportbodyintegerThe order of precedence.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_policies(platform_name="mac",
                                  description="Updated data protection policy for Mac endpoints",
                                  name="Updated Mac DLP Policy",
                                  policy_properties={
                                      "allow_notifications": "custom",
                                      "custom_allow_notification": "Updated: Access granted",
                                      "custom_block_notification": "Updated: Access denied",
                                      "enable_content_inspection": boolean,
                                      "enable_network_inspection": boolean,
                                      "enable_clipboard_inspection": boolean,
                                      "min_confidence_level": "high",
                                      "max_file_size_to_inspect": 5242880,
                                      "max_file_size_to_inspect_unit": "Bytes",
                                      "evidence_download_enabled": boolean,
                                      "evidence_encrypted_enabled": boolean,
                                      "similarity_detection": boolean,
                                      "similarity_threshold": "15"
                                  },
                                  precedence=integer,
                                  )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_policy_patch_v2(platform_name="mac",
                                           description="Updated data protection policy for Mac endpoints",
                                           name="Updated Mac DLP Policy",
                                           policy_properties={
                                               "allow_notifications": "custom",
                                               "enable_content_inspection": boolean,
                                               "enable_network_inspection": boolean,
                                               "min_confidence_level": "high"
                                           },
                                           precedence=integer,
                                           )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "resources": [
        {
            "description": "Updated data protection policy for Mac endpoints",
            "name": "Updated Mac DLP Policy",
            "policy_properties": {
                "allow_notifications": "custom",
                "enable_content_inspection": boolean,
                "enable_network_inspection": boolean,
                "min_confidence_level": "high"
            },
            "precedence": 2
        }
    ]
}

response = falcon.command("entities_policy_patch_v2",
                          platform_name="mac",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_policy_delete_v2

Delete policies that match the provided ids.

PEP8 method name

delete_policies

Endpoint

MethodRoute
DELETE/data-protection/entities/policies/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsIDs of the policies to delete.
platform_nameService Class SupportUber Class Supportquerystringplatform name of the policies to update, either 'win' or 'mac'.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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, platform_name="win")

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_policy_delete_v2(ids=id_list, platform_name="win")

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_policy_delete_v2",
                          ids=id_list,
                          platform_name="win")

print(response)

Back to Table of Contents

entities_web_location_get_v2

Get web-location entities matching the provided ID(s).

PEP8 method name

get_web_location

Endpoint

MethodRoute
GET/data-protection/entities/web-locations/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe web-location entity id(s) to get.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.get_web_location(ids=['string', 'string'])
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_web_location_get_v2(ids=['string', 'string'])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("entities_web_location_get_v2",
                          ids=['string', 'string']
                          )
print(response)

Back to Table of Contents

entities_web_location_create_v2

Persist the given web-locations.

PEP8 method name

create_web_location

Endpoint

MethodRoute
POST/data-protection/entities/web-locations/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
application_idService Class SupportNo Uber Class SupportbodystringThe ID of the application.
deletedService Class SupportNo Uber Class SupportbodybooleanFlag indicating if this location is deleted.
enterprise_account_idService Class SupportNo Uber Class SupportbodystringAssociated enterprise account ID.
location_typeService Class SupportNo Uber Class SupportbodystringLocation type.
nameService Class SupportNo Uber Class SupportbodystringLocation name.
provider_location_idService Class SupportNo Uber Class SupportbodystringProvider location ID.
provider_location_nameService Class SupportNo Uber Class SupportbodystringProvider location name.
typeService Class SupportNo Uber Class SupportbodystringType.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.create_web_location(application_id="app_123",
                                      deleted=boolean,
                                      enterprise_account_id="enterprise_456",
                                      location_type="custom",
                                      name="SharePoint Site",
                                      provider_location_id="site_789",
                                      provider_location_name="Corporate SharePoint",
                                      type="sharepoint"
                                      )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_web_location_create_v2(application_id="app_123",
                                                  deleted=boolean,
                                                  enterprise_account_id="enterprise_456",
                                                  location_type="custom",
                                                  name="SharePoint Site",
                                                  provider_location_id="site_789",
                                                  provider_location_name="Corporate SharePoint",
                                                  type="sharepoint"
                                                  )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "web_locations": [
        {
            "application_id": "app_123",
            "deleted": boolean,
            "enterprise_account_id": "enterprise_456",
            "location_type": "custom",
            "name": "SharePoint Site",
            "provider_location_id": "site_789",
            "provider_location_name": "Corporate SharePoint",
            "type": "sharepoint"
        }
    ]
}

response = falcon.command("entities_web_location_create_v2", body=BODY)
print(response)

Back to Table of Contents

entities_web_location_patch_v2

Update a web-location.

PEP8 method name

update_web_location

Endpoint

MethodRoute
PATCH/data-protection/entities/web-locations/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringThe web-location entity ID to update.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
application_idService Class SupportNo Uber Class SupportbodystringThe ID of the application.
deletedService Class SupportNo Uber Class SupportbodybooleanFlag indicating if this location is deleted.
enterprise_account_idService Class SupportNo Uber Class SupportbodystringAssociated enterprise account ID.
location_typeService Class SupportNo Uber Class SupportbodystringLocation type.
nameService Class SupportNo Uber Class SupportbodystringLocation name.
provider_location_idService Class SupportNo Uber Class SupportbodystringProvider location ID.
provider_location_nameService Class SupportNo Uber Class SupportbodystringProvider location name.
typeService Class SupportNo Uber Class SupportbodystringType.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.update_web_location(id="string",
                                      application_id="app_123",
                                      deleted=boolean,
                                      enterprise_account_id="updated_enterprise_456",
                                      location_type="predefined",
                                      name="Updated SharePoint Site",
                                      provider_location_id="updated_site_789",
                                      provider_location_name="Updated Corporate SharePoint",
                                      type="sharepoint"
                                      )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.entities_web_location_patch_v2(id="string",
                                                 application_id="app_123",
                                                 deleted=boolean,
                                                 enterprise_account_id="updated_enterprise_456",
                                                 location_type="predefined",
                                                 name="Updated SharePoint Site",
                                                 provider_location_id="updated_site_789",
                                                 provider_location_name="Updated Corporate SharePoint",
                                                 type="sharepoint"
                                                 )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

BODY = {
    "web_locations": [
        {
            "application_id": "app_123",
            "deleted": boolean,
            "enterprise_account_id": "updated_enterprise_456",
            "location_type": "predefined",
            "name": "Updated SharePoint Site",
            "provider_location_id": "updated_site_789",
            "provider_location_name": "Updated Corporate SharePoint",
            "type": "sharepoint"
        }
    ]
}

response = falcon.command("entities_web_location_patch_v2",
                          id="string",
                          body=BODY
                          )
print(response)

Back to Table of Contents

entities_web_location_delete_v2

Delete web-location.

PEP8 method name

delete_web_location

Endpoint

MethodRoute
DELETE/data-protection/entities/web-locations/v2

Required Scope

data-protection:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe IDs of the web-location to delete.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(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_web_location(ids=id_list)

print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.entities_web_location_delete_v2(ids=id_list)

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("entities_web_location_delete_v2", ids=id_list)

Back to Table of Contents

queries_classification_get_v2

Search for classifications that match the provided criteria.

PEP8 method name

query_classifications

Endpoint

MethodRoute
GET/data-protection/queries/classifications/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringFilter results by specific attributes. Allowed attributes are: name, created_at, modified_at, properties.content_patterns, properties.content_patterns_operator, properties.file_types, properties.sensitivity_labels, created_by, modified_by, properties.evidence_duplication_enabled, properties.protection_mode, properties.web_sources.
sortService Class SupportUber Class SupportquerystringThe property to sort by. Allowed fields are: name, created_at, modified_at.
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return. [maximum: 500, minimum: integer, default: 100]
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. [maximum: 10000, minimum: integer]
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_classifications(filter="string",
                                        sort="name.asc",
                                        limit=integer,
                                        offset=integer
                                        )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_classification_get_v2(filter="string",
                                                sort="name.asc",
                                                limit=integer,
                                                offset=integer
                                                )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_classification_get_v2",
                          filter="string",
                          sort="name.asc",
                          limit=integer,
                          offset=integer
                          )
print(response)

Back to Table of Contents

queries_cloud_application_get_v2

Get all cloud-application IDs matching the query with filter.

PEP8 method name

query_cloud_applications

Endpoint

MethodRoute
GET/data-protection/queries/cloud-applications/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringOptional filter for searching cloud applications.
sortService Class SupportUber Class SupportquerystringThe sort instructions to order by on.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_cloud_applications(filter="name:'*sharepoint*'",
                                           sort="name.asc",
                                           limit=integer,
                                           offset=integer
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_cloud_application_get_v2(filter="name:'*sharepoint*'",
                                                   sort="name.asc",
                                                   limit=integer,
                                                   offset=integer
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_cloud_application_get_v2",
                          filter="name:'*sharepoint*'",
                          sort="name.asc",
                          limit=integer,
                          offset=integer
                          )
print(response)

Back to Table of Contents

queries_content_pattern_get_v2

Get all content-pattern IDs matching the query with filter.

PEP8 method name

query_content_patterns

Endpoint

MethodRoute
GET/data-protection/queries/content-patterns/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter to use when finding content patterns.
sortService Class SupportUber Class SupportquerystringThe sort instructions to order by on.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_content_patterns(filter="category:'pii'",
                                         sort="created_at.desc",
                                         limit=50
                                         )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_content_pattern_get_v2(filter="category:'pii'",
                                                 sort="created_at.desc",
                                                 limit=50
                                                 )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_content_pattern_get_v2",
                          filter="category:'pii'",
                          sort="created_at.desc",
                          limit=50
                          )
print(response)

Back to Table of Contents

queries_enterprise_account_get_v2

Get all enterprise-account IDs matching the query with filter.

PEP8 method name

query_enterprise_accounts

Endpoint

MethodRoute
GET/data-protection/queries/enterprise-accounts/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter to use when finding enterprise accounts.
sortService Class SupportUber Class SupportquerystringThe sort instructions to order by on.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_enterprise_accounts(filter="name:'*corporate*'",
                                            sort="created_at.desc",
                                            limit=integer,
                                            )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_enterprise_account_get_v2(filter="name:'*corporate*'",
                                                    sort="created_at.desc",
                                                    limit=integer,
                                                    )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_enterprise_account_get_v2",
                          filter="name:'*corporate*'",
                          sort="created_at.desc",
                          limit=integer,
                          )
print(response)

Back to Table of Contents

queries_file_type_get_v2

Get all file-type IDs matching the query with filter.

PEP8 method name

query_file_type

Endpoint

MethodRoute
GET/data-protection/queries/file-types/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter to use when finding file types.
sortService Class SupportUber Class SupportquerystringThe sort instructions to order by on.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_file_type(filter="name:'*.pdf'",
                                  sort="name.asc",
                                  limit=integer
                                  )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_file_type_get_v2(filter="name:'*.pdf'",
                                           sort="name.asc",
                                           limit=integer
                                           )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_file_type_get_v2",
                          filter="name:'*.pdf'",
                          sort="name.asc",
                          limit=integer
                          )
print(response)

Back to Table of Contents

queries_sensitivity_label_get_v2

Get all sensitivity label IDs matching the query with filter.

PEP8 method name

query_sensitivity_label

Endpoint

MethodRoute
GET/data-protection/queries/labels/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter to use when finding sensitivity labels.
sortService Class SupportUber Class SupportquerystringThe sort instructions to order by on.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_sensitivity_label(filter="display_name:'*confidential*'",
                                          sort="display_name.asc",
                                          limit=integer
                                          )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_sensitivity_label_get_v2(filter="display_name:'*confidential*'",
                                                   sort="display_name.asc",
                                                   limit=integer
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_sensitivity_label_get_v2",
                          filter="display_name:'*confidential*'",
                          sort="display_name.asc",
                          limit=integer
                          )
print(response)

Back to Table of Contents

queries_local_application_group_get

Get all local application group IDs matching the query with filter.

PEP8 method name

query_local_application_groups

Endpoint

MethodRoute
GET/data-protection/queries/local-application-groups/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringOptional filter for searching local application groups. Allowed filters are: name (string), is_deleted (boolean), platform (string), created_at and updated_at.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_local_application_groups(filter="name:'*group*'",
                                                 limit=integer,
                                                 offset=integer
                                                 )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_local_application_group_get(filter="name:'*group*'",
                                                      limit=integer,
                                                      offset=integer
                                                      )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_local_application_group_get",
                          filter="name:'*group*'",
                          limit=integer,
                          offset=integer
                          )
print(response)

Back to Table of Contents

queries_local_application_get

Get all local-application IDs matching the query with filter.

PEP8 method name

query_local_applications

Endpoint

MethodRoute
GET/data-protection/queries/local-applications/v1

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringOptional filter for searching local applications. Allowed filters are: name (string), is_deleted (boolean), created_at and updated_at.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_local_applications(filter="name:'*app*'",
                                           limit=integer,
                                           offset=integer
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_local_application_get(filter="name:'*app*'",
                                                limit=integer,
                                                offset=integer
                                                )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_local_application_get",
                          filter="name:'*app*'",
                          limit=integer,
                          offset=integer
                          )
print(response)

Back to Table of Contents

queries_policy_get_v2

Search for policies that match the provided criteria.

PEP8 method name

query_policies

Endpoint

MethodRoute
GET/data-protection/queries/policies/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
platform_nameService Class SupportUber Class Supportquerystringplatform name of the policies to search, either 'win' or 'mac'.
filterService Class SupportUber Class SupportquerystringFilter results by specific attributes. Allowed attributes are: name, properties.enable_content_inspection, properties.be_exclude_domains, properties.be_upload_timeout_response, properties.be_paste_clipboard_max_size, properties.evidence_storage_max_size, precedence, created_at, modified_at, properties.similarity_threshold, properties.enable_clipboard_inspection, properties.evidence_encrypted_enabled, properties.enable_network_inspection, properties.besplash_message_source, properties.min_confidence_level, properties.unsupported_browsers_action, properties.similarity_detection, properties.classifications, properties.besplash_enabled, properties.be_paste_timeout_response, properties.be_paste_clipboard_min_size_unit, properties.be_paste_clipboard_over_size_behaviour_block, properties.browsers_without_active_extension, description, is_enabled, created_by, properties.max_file_size_to_inspect_unit, properties.block_all_data_access, properties.be_paste_timeout_duration_milliseconds, properties.be_paste_clipboard_min_size, is_default, modified_by, properties.enable_context_inspection, properties.inspection_depth, properties.evidence_download_enabled, properties.besplash_custom_message, properties.be_upload_timeout_duration_seconds, properties.enable_end_user_notifications_unsupported_browser, properties.custom_allow_notification, properties.custom_block_notification, properties.be_paste_clipboard_max_size_unit, properties.evidence_storage_free_disk_perc, properties.max_file_size_to_inspect, properties.allow_notifications, properties.block_notifications, properties.evidence_duplication_enabled_default, properties.network_inspection_files_exceeding_size_limit.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. [maximum: 10000, minimum: integer]
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return. [maximum: 500, minimum: integer, default: 100]
sortService Class SupportUber Class SupportquerystringThe property to sort by. Allowed fields are: modified_at, name, precedence, created_at.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_policies(platform_name="win",
                                 filter="name:'*production*'",
                                 sort="precedence.asc",
                                 limit=50
                                 )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_policy_get_v2(platform_name="win",
                                        filter="name:'*production*'",
                                        sort="precedence.asc",
                                        limit=50
                                        )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_policy_get_v2",
                          platform_name="win",
                          filter="name:'*production*'",
                          sort="precedence.asc",
                          limit=50
                          )
print(response)

Back to Table of Contents

queries_web_location_get_v2

Get web-location IDs matching the query with filter.

PEP8 method name

query_web_locations

Endpoint

MethodRoute
GET/data-protection/queries/web-locations/v2

Required Scope

data-protection:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter to use when finding web locations.
typeService Class SupportUber Class SupportquerystringThe type of entity to query. Allowed values are: predefined, custom.
limitService Class SupportUber Class SupportqueryintegerThe number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results.
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from. Use with the limit parameter to manage pagination of results.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.query_web_locations(filter="name:'*sharepoint*'",
                                      type="predefined",
                                      limit=integer,
                                      offset=integer
                                      )
print(response)
Service class example (Operation ID syntax)
from falconpy import DataProtectionConfiguration

# Do not hardcode API credentials!
falcon = DataProtectionConfiguration(client_id=CLIENT_ID,
                                     client_secret=CLIENT_SECRET
                                     )

response = falcon.queries_web_location_get_v2(filter="name:'*sharepoint*'",
                                              type="predefined",
                                              limit=integer,
                                              offset=integer
                                              )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("queries_web_location_get_v2",
                          filter="name:'*sharepoint*'",
                          type="predefined",
                          limit=integer,
                          offset=integer
                          )
print(response)

Back to Table of Contents