DataScanner - CrowdStrike/falconpy GitHub Wiki

CrowdStrike Falcon CrowdStrike Subreddit

Using the DataScanner service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation ID Description
get_image_registry_credentials
PEP8 get_image_registry_credentials
Retrieves image registry credentials.
get_data_scanner_tasks
PEP8 get_data_scanner_tasks
Retrieve pending tasks.
update_data_scanner_tasks
PEP8 update_data_scanner_tasks
Reports back on task status.
handle
PEP8 handle
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

Method Route
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

Method Route
GET /data-security-dspm/entities/scanner-tasks/v1

Required Scope

dspm-data-scanner:read

Content-Type

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

Keyword Arguments

Name Service Uber Type Data type Description
scanner_id Service Class Support Uber Class Support query string ID of the data scanner.
parameters Service Class Support Uber Class Support query dictionary Full 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

Method Route
PATCH /data-security-dspm/entities/scanner-tasks/v1

Required Scope

dspm-data-scanner:write

Content-Type

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

Keyword Arguments

Name Service Uber Type Data type Description
scanner_id Service Class Support Uber Class Support query ID of the data scanner.
machine_id Service Class Support Uber Class Support query Provider ID of machine.
parameters Service Class Support Uber Class Support query dictionary Full 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

Method Route
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)
⚠️ **GitHub.com Fallback** ⚠️