CrowdStrike Falcon CrowdStrike Subreddit

Using the Downloads Api service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
DownloadFile
PEP8download
Gets pre-signed URL for the file.
EnumerateFile
PEP8enumerate
Enumerates a list of files available for CID.

DownloadFile

Gets pre-signed URL for the file.

PEP8 method name

download

Endpoint

MethodRoute
GET/csdownloads/entities/files/download/v1

Required Scope

infrastructure-as-code:read

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
file_nameService Class SupportUber Class SupportquerystringName of the file to be downloaded
file_versionService Class SupportUber Class SupportquerystringVersion of the file to be downloaded
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/csdownloads/entities/files/enumerate/v1

Required Scope

infrastructure-as-code:read

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
file_nameService Class SupportUber Class SupportquerystringApply filtering on file name
platformService Class SupportUber Class SupportquerystringApply filtering on file platform
categoryService Class SupportUber Class SupportquerystringApply filtering on file category
parametersService Class SupportUber Class SupportquerydictionaryFull 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)