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.5
PowerShell
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.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

Method GET
Route /faas-gateway/entities/execution-request-body/v2
Scope Apps: READ
PEP 8 read_request_body
id query · string
Execution ID
fn query · string
function ref; form of $fn_id:$fn_version
filename query · string
filename to be retrieved
sha256 query · string
sha256 checksum for file to be retrieved
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{
"errors": [
{
"code": 0,
"id": "string",
"message": "string"
}
],
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
},
"powered_by": "string",
"query_time": 0.0,
"trace_id": "string",
"writes": {
"resources_affected": 0
}
}
}