Skip to main content
GET
/
v1
/
tenant
/
shiftleft
/
iac
/
scans
/
{scanId}
/
findings
List findings
curl --request GET \
  --url https://{region}.api.plerion.com/v1/tenant/shiftleft/iac/scans/{scanId}/findings \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3b79e265-090c-48e7-bbaa-fa96c4317530",
      "createdAt": "2023-05-08T04:31:30.785Z",
      "updatedAt": "2023-05-08T04:31:30.785Z",
      "tenantId": "7934cf6d-fb34-4bda-adde-173a1fa30d9c",
      "organizationId": "ec17a309-6b0a-4911-8d1d-8a5aa0ac4742",
      "scanId": "6ddde0c3-690a-aeb3-b237-9724b3e4403c",
      "detectionId": "PLERION-K8S-108",
      "detectionTitle": "Ensure that the --allow-privileged argument is set to false",
      "type": "helm",
      "result": "FAILED",
      "evaluatedKeys": [],
      "codeBlock": [
        [
          3,
          "apiVersion: apps/v1\n"
        ],
        [
          4,
          "kind: DaemonSet\n"
        ],
        [
          5,
          "metadata:\n"
        ],
        [
          6,
          "  name: release-prometheus-exporter\n"
        ],
        [
          7,
          "  namespace: default\n"
        ],
        [
          8,
          "  labels:\n"
        ],
        [
          9,
          "    app: prometheus-exporter\n"
        ],
        [
          10,
          "    heritage: Helm\n"
        ],
        [
          11,
          "    release: prometheus-exporter\n"
        ],
        [
          12,
          "    chart: prometheus-exporter-9.1.4\n"
        ],
        [
          13,
          "    jobLabel: prometheus-exporter\n"
        ]
      ],
      "file": "/prometheus-exporter/templates/daemonset.yaml",
      "repositoryPath": "/prometheus-exporter/templates/daemonset.yaml",
      "lineRange": [
        3,
        94
      ],
      "resource": "DaemonSet.default.release-name-prometheus-exporter",
      "resourceTags": null,
      "severityLevel": "LOW",
      "dashboardURL": "https://au.api.plerion.com/shift-left/scans/6ddde0c3-690a-aeb3-b237-9724b3e4403c/finding/3b79e265-090c-48e7-bbaa-fa96c4317530"
    }
  ],
  "meta": {
    "page": 1,
    "perPage": 10,
    "total": 3225,
    "hasNextPage": true,
    "hasPreviousPage": false
  }
}

Authorizations

Authorization
string
header
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Headers

Authorization
string
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Content-Type
string

application/json

Path Parameters

scanId
string
required

Scan ID

Query Parameters

ids
string

Filter findings based on ids. Accepts a comma-separated list of ids.

Example:
["uuid1,uuid2,uuid3"]
results
string

Filter findings based on result. Accepts a comma-separated list of result.

Example:
["PASSED,FAILED"]
detectionIds
string

Filter findings based on detection id. Accepts a comma-separated list of detection id.

Example:

"PLERION-AWS-1,PLERION-AWS-2"

types
string

Filter findings based on type. Accepts a comma-separated list of type.

Example:

"helm,kubernetes"

files
string

Filter findings based on file. Accepts a comma-separated list of file.

Example:

"file1,file2"

severityLevels
enum<string>

Filter findings based on severity. Accepts a comma-separated list of severity.

Available options:
CRITICAL,
HIGH,
MEDIUM,
LOW
Example:

"CRITICAL,HIGH"

sortBy
enum<string>

Sort results by the specified field.

Available options:
id,
createdAt,
updatedAt,
artifactName,
status
Example:

"createdAt"

sortOrder
enum<string>

Sort order for the results.

Available options:
asc,
desc
Example:

"asc"

page
integer

Page number for the results. Accepts a positive integer.

Example:

1

perPage
integer

Number of results per page. Accepts a positive integer.

Example:

10

Response

OK

data
object[]
meta
object