CrowdStrike Falcon CrowdStrike Subreddit

Using the Execution service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
ReadRequestBody
PEP8read_request_body
Retrieve a large request body, such as a file, that has spilled into object storage.

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.

ReadRequestBody

Retrieve a large request body, such as a file, that has spilled into object storage.

PEP8 method name

read_request_body

Endpoint

MethodRoute
GET/faas-gateway/entities/execution-request-body/v2

Required Scope

functions:read

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringExecution ID.
fnService Class SupportUber Class SupportquerystringFunction reference. Format: $fn_id:$fn_version
filenameService Class SupportUber Class SupportquerystringFilename to be retrieved.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format.
sha256Service Class SupportUber Class SupportquerystringSHA256 checksum for file to be retrieved.

Usage

Service class example (PEP8 syntax)
from falconpy import FaaSExecution

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

response = falcon.ReadRequestBody(id="string",
                                  fn="string",
                                  filename="string",
                                  sha256="string"
                                  )
print(response)
Service class example (Operation ID syntax)
from falconpy import FaaSExecution

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

response = falcon.ReadRequestBody(id="string",
                                  fn="string",
                                  filename="string",
                                  sha256="string"
                                  )
print(response)
Uber class example
from falconpy import APIHarnessV2

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

response = falcon.command("ReadRequestBody",
                          id="string",
                          fn="string",
                          filename="string",
                          sha256="string"
                          )
print(response)