CrowdStrike Falcon CrowdStrike Subreddit

Using the DataScanner service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
get_image_registry_credentials
PEP8get_image_registry_credentials
Retrieves image registry credentials.
get_data_scanner_tasks
PEP8get_data_scanner_tasks
Retrieve pending tasks.
update_data_scanner_tasks
PEP8update_data_scanner_tasks
Reports back on task status.
handle
PEP8handle
Produces the input message into the corresponding Kafka topic.

get_image_registry_credentials

Retrieves image registry credentials.

PEP8 method name

get_image_registry_credentials

Endpoint

MethodRoute
GET/data-security-dspm/entities/image-registry-credentials/v1

Required Scope

dspm-data-scanner:read

Content-Type

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

Keyword Arguments

No keywords or arguments accepted.

Usage

Service class example (PEP8 / Operation ID syntax)
from falconpy import DataScanner

falcon = DataScanner(client_id=CLIENT_ID,
                     client_secret=CLIENT_SECRET
                     )

response = falcon.get_image_registry_credentials()
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("get_image_registry_credentials")
print(response)

get_data_scanner_tasks

Retrieve pending tasks.

PEP8 method name

get_data_scanner_tasks

Endpoint

MethodRoute
GET/data-security-dspm/entities/scanner-tasks/v1

Required Scope

dspm-data-scanner:read

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
scanner_idService Class SupportUber Class SupportquerystringID of the data scanner.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 / Operation ID syntax)
from falconpy import DataScanner

falcon = DataScanner(client_id=CLIENT_ID,
                     client_secret=CLIENT_SECRET
                     )

response = falcon.get_data_scanner_tasks(scanner_id="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("get_data_scanner_tasks", scanner_id="string")
print(response)

update_data_scanner_tasks

Reports back on task status.

PEP8 method name

update_data_scanner_tasks

Endpoint

MethodRoute
PATCH/data-security-dspm/entities/scanner-tasks/v1

Required Scope

dspm-data-scanner:write

Content-Type

  • Consumes: application/json
  • Produces: text/plain

Keyword Arguments

NameServiceUberTypeData typeDescription
scanner_idService Class SupportUber Class SupportqueryID of the data scanner.
machine_idService Class SupportUber Class SupportqueryProvider ID of machine.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.

Usage

Service class example (PEP8 / Operation ID syntax)
from falconpy import DataScanner

falcon = DataScanner(client_id=CLIENT_ID,
                     client_secret=CLIENT_SECRET
                     )

response = falcon.update_data_scanner_tasks(scanner_id="string", machine_id="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                    client_secret=CLIENT_SECRET
                    )

response = falcon.command("update_data_scanner_tasks", scanner_id="string", machine_id="string")
print(response)

handle

Produces the input message into the corresponding Kafka topic.

PEP8 method name

handle

Endpoint

MethodRoute
POST/data-security-dspm/entities/kafka-rest-produce/v1

Required Scope

dspm-data-scanner:write

Content-Type

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

Keyword Arguments

No keywords or arguments accepted.

Usage

Service class example (PEP8 / Operation ID syntax)
from falconpy import DataScanner

falcon = DataScanner(client_id=CLIENT_ID,
                     client_secret=CLIENT_SECRET
                     )

response = falcon.handle()
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("handle")
print(response)