Skip to content

Serverless Exports

The Serverless Exports service collection provides operations for managing export jobs for Lambda Security resources. Read export job entities, query available jobs, download export files, retrieve vulnerabilities in SARIF format, and launch new export jobs.

LanguageLast Update
Pythonv1.6.5
PowerShell
Gov0.22.0
TypeScriptv0.6.0
Rust
Rubyv1.4.0


OperationDescription
DownloadExportFileMixin0
download_export_file
Download an export file
LaunchExportJobMixin0
launch_export_job
Launch an export job of a Lambda Security resource.
QueryExportJobsMixin0
query_export_jobs
Query export jobs entities
ReadExportJobsMixin0
read_export_jobs
Read export jobs entities

Download an export file

Method GET
Route /lambdas/entities/exports/files/v1
Scope Falcon Container Image: READ
PEP 8 download_export_file
id query · string
Export job ID.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ServerlessExports
falcon = ServerlessExports(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("output_file", "wb") as save_file:
response = falcon.download_export_file(id="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
}
}
}


Launch an export job of a Lambda Security resource.

Method POST
Route /lambdas/entities/exports/v1
Scope Falcon Container Image: READ
PEP 8 launch_export_job
body body · dictionary
Full body payload as JSON formatted dictionary.
expand_vulnerabilities body · boolean
When set to true for function vulnerabilities export, includes detailed vulnerability information. Currently returns same data as without expansion - full expansion to be implemented in next step
format body · string
Format of the export file. One of:
Available values (2)
csvjson
fql body · string
Falcon Query Language string to filter documents
resource body · string
Resource to export. Refer to API docs for the possible values
sort body · string
Sort value to apply to documents. Note: not all resources support sorting
from falconpy import ServerlessExports
falcon = ServerlessExports(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.launch_export_job(expand_vulnerabilities=boolean,
format="string",
fql="string",
resource="string",
sort="string")
print(response)
[
"string"
]


Query export jobs entities

Method GET
Route /lambdas/queries/exports/v1
Scope Falcon Container Image: READ
PEP 8 query_export_jobs
filter query · string
Filter exports using a query in Falcon Query Language (FQL). Only the last 100 jobs are returned. Supported filter fields:
Available values (2)
resourcestatus
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ServerlessExports
falcon = ServerlessExports(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_export_jobs(filter="string")
print(response)
[
"string"
]


Read export jobs entities

Method GET
Route /lambdas/entities/exports/v1
Scope Falcon Container Image: READ
PEP 8 read_export_jobs
ids query · string or list of strings
Export Job IDs to read. Allowed up to 100 IDs per request.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ServerlessExports
falcon = ServerlessExports(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.read_export_jobs(ids=id_list)
print(response)
[
{
"created_at": "string",
"id": "string",
"resource": "string",
"retries": 0,
"status": "string",
"updated_at": "string"
}
]