Using the Execution service collection
Table of Contents
| Operation ID | Description | ||||
|---|---|---|---|---|---|
| Retrieve a large request body, such as a file, that has spilled into object storage. | ||||
Passing credentials
WARNING
client_idandclient_secretare 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 |
|---|---|
/faas-gateway/entities/execution-request-body/v2 |
Required Scope
Content-Type
- Consumes: application/json
- Produces: text/csv
Keyword Arguments
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| id | query | string | Execution ID. | ||
| fn | query | string | Function reference. Format: $fn_id:$fn_version | ||
| filename | query | string | Filename to be retrieved. | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| sha256 | 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)