FaaS Execution - CrowdStrike/falconpy GitHub Wiki

CrowdStrike Falcon CrowdStrike Subreddit

Using the Execution service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation ID Description
ReadRequestBody
PEP8 read_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

Method Route
GET /faas-gateway/entities/execution-request-body/v2

Required Scope

functions:read

Content-Type

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

Keyword Arguments

Name Service Uber Type Data type Description
id Service Class Support Uber Class Support query string Execution ID.
fn Service Class Support Uber Class Support query string Function reference. Format: $fn_id:$fn_version
filename Service Class Support Uber Class Support query string Filename to be retrieved.
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format.
sha256 Service Class Support Uber Class Support query string SHA256 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)
⚠️ **GitHub.com Fallback** ⚠️