Downloads - CrowdStrike/falconpy GitHub Wiki

CrowdStrike Falcon CrowdStrike Subreddit

Using the Downloads Api service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation ID Description
DownloadFile
PEP8 download
Gets pre-signed URL for the file.
EnumerateFile
PEP8 enumerate
Enumerates a list of files available for CID.

DownloadFile

Gets pre-signed URL for the file.

PEP8 method name

download

Endpoint

Method Route
GET /csdownloads/entities/files/download/v1

Required Scope

infrastructure-as-code:read

Content-Type

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

Keyword Arguments

Name Service Uber Type Data type Description
file_name Service Class Support Uber Class Support query string Name of the file to be downloaded
file_version Service Class Support Uber Class Support query string Version of the file to be downloaded
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import Downloads

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

response = falcon.download(file_name="string", file_version="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import Downloads

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

response = falcon.DownloadFile(file_name="string", file_version="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

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

response = falcon.command("DownloadFile", file_name="string", file_version="string")
print(response)

EnumerateFile

Enumerates a list of files available for CID

PEP8 method name

enumerate

Endpoint

Method Route
GET /csdownloads/entities/files/enumerate/v1

Required Scope

infrastructure-as-code:read

Content-Type

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

Keyword Arguments

Name Service Uber Type Data type Description
file_name Service Class Support Uber Class Support query string Apply filtering on file name
platform Service Class Support Uber Class Support query string Apply filtering on file platform
category Service Class Support Uber Class Support query string Apply filtering on file category
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format.

Usage

Service class example (PEP8 syntax)
from falconpy import Downloads

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

response = falcon.enumerate(file_name="string",
                            platform="string",
                            category="string"
                            )
print(response)
Service class example (Operation ID syntax)
from falconpy import Downloads

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

response = falcon.EnumerateFile(file_name="string",
                                platform="string",
                                category="string"
                                )
print(response)
Uber class example
from falconpy import APIHarnessV2

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

response = falcon.command("EnumerateFile",
                          file_name="string",
                          platform="string",
                          category="string"
                          )
print(response)
⚠️ **GitHub.com Fallback** ⚠️