Skip to main content

Download Serverless Function Scan Results

GET 

/api/v33.01/serverless/download

x-prisma-cloud-target-env: {"permission":"monitorServerless"}

Downloads all serverless scan reports in CSV format.

This endpoint maps to the CSV hyperlink in Monitor > Vulnerabilities > Functions > Scanned functions in the Console UI.

cURL Request

The following cURL command retrieves a list of all serverless resources monitored by Prisma Cloud Compute and saves the results in a CSV file called serverless.csv:

$ curl -k \
-u <USER> \
-X GET \
'https://<CONSOLE>/api/v<VERSION>/serverless/download' \
> serverless.csv

A successful response displays the status of the download.

Request

Query Parameters

    offset integer

    Offsets the result to a specific report count. Offset starts from 0.

    limit integer

    Limit is the amount to fix.

    sort string

    Sorts the result using a key.

    reverse boolean

    Sorts the result in reverse order.

    id string[]

    Retrieves a list of cloud function IDs.

    cloudControllerAddresses string[]

    Retrieves a list of cloud controller addresses that contains the cloud functions.

    runtime string[]

    Filters the result based on cloud runtimes.

    version string[]

    Filters the result based on cloud function's versions.

    functionLayers string[]

    Filters the result based on AWS Lambda Layers.

    defended boolean

    Filters result based on cloud functions that are connected and protected by a Defender.

    complianceIDs int[]

    Filters result based on compliance IDs.

    complianceRuleName string

    Filters the result based on applied compliance rule name.

    platform string[]

    Filters result based on platforms (OS and architecture) such as Windows, Linux ARM x64, Linux x86, and so on.

    normalizedSeverity boolean

    Retrieves the result in the normalized form of low, medium, high, and critical based on vulnerability's severity level. Default is false.

    issueType string

    Possible values: [vulnerabilities,compliance,]

    Filters results by issue type.

Responses

OK

Loading...