Skip to content

FaaS Execution

The FaaS Execution service collection provides operations for retrieving large request bodies from Function-as-a-Service gateway executions. Retrieve files or other large payloads that have spilled into object storage during function execution.

LanguageLast Update
Pythonv1.6.1
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
OperationDescription
ReadRequestBody
read_request_body
Retrieve a large request body, such as a file, that has spilled into object storage.

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

GET /faas-gateway/entities/execution-request-body/v2
Scope Functions: READ Consumes · Produces application/json text/csv
PEP 8 read_request_body
NameTypeData typeDescription
idquerystringExecution ID.
fnquerystringFunction reference. Format: $fn_id:$fn_version
filenamequerystringFilename to be retrieved.
parametersquerydictionaryFull query string parameters payload in JSON format.
sha256querystringSHA256 checksum for file to be retrieved.
from falconpy import FaaSExecution
falcon = FaaSExecution(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("output_file", "wb") as save_file:
response = falcon.read_request_body(id="string",
fn="string",
filename="string",
sha256="string",
stream=boolean)
save_file.write(response)