curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/findings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.plerion.com/v1/tenant/findings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{region}.api.plerion.com/v1/tenant/findings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{region}.api.plerion.com/v1/tenant/findings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{region}.api.plerion.com/v1/tenant/findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/findings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"schemaVersion": "2022-06-09",
"id": "prn:findings:458511a1-9bc2-4fce-97a0-0e3139588e6e:plerion-aws-16:arn:aws:iam::1111222233334444:policy/test-policy",
"organizationId": "dc16d897-7f52-4b73-be57-96c7c9a853da",
"tenantId": "42749bc1-c99b-4c2c-a081-a6cda9370081",
"integrationId": "458511a1-9bc2-4fce-97a0-0e3139588e6e",
"provider": "AWS",
"executionId": 1675576960384,
"assetId": "prn:assets:458511a1-9bc2-4fce-97a0-0e3139588e6e:aws:iam:policy:us-east-1:arn:aws:iam::1111222233334444:policy/test-policy",
"providerAccountId": 1111222233334444,
"resourceType": "AWS::IAM::Policy",
"detectionId": "PLERION-AWS-16",
"status": "FAILED",
"severityLevel": "HIGH",
"message": "Policy allows full administrative privileges is attached",
"firstObservedAt": "2023-02-04T06:02:40.594Z",
"createdAt": "2023-02-04T06:07:09.092Z",
"lastObservedAt": "2023-02-05T06:02:40.384Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"slaDueAt": "2023-02-11T06:02:40.594Z",
"slaWarnAt": "2023-02-09T06:02:40.594Z",
"slaId": "8f2c1b9a-4d3e-4a6b-9c8d-1e2f3a4b5c6d",
"parameters": [
"<string>"
],
"tags": [
"<string>"
],
"fullResourceName": "arn:aws:iam::1111222233334444:policy/test-policy",
"resourceId": "test-policy",
"providerFullResourceName": "arn:aws:iam::1111222233334444:policy/test-policy",
"region": "us-east-1",
"service": "IAM",
"likelihood": 3,
"impact": 5,
"calculatedSeverity": 2,
"modifiedSeverityLevel": "CRITICAL",
"attackPaths": {},
"isExempted": false,
"meta": {},
"resourceTags": [
{
"Key": "Public",
"Value": true
}
],
"resourceURL": "https://us-east-1.console.aws.amazon.com/iam/home#/policies/arn:aws:iam::1111222233334444:policy/test-policy"
}
],
"meta": {
"cursor": "k3d83a9b-k3dk-5lkd-2ldk-9kd77c1beb6",
"perPage": 10,
"total": 42,
"page": 1,
"hasNextPage": true,
"hasPreviousPage": false
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}List findings
Use the list findings API to filter findings across the tenant with many
options from Provider, Service, Detection, Severity, Integration, etc. By
default all PASSED and FAILED findings are returned. To list
only failed findings filter by statuses=FAILED
Date range filtering is supported using the firstObservedAtStart and firstObservedAtEnd parameters:
firstObservedAtStartalone: Includes findings with a first observed time from the specified date to the present.firstObservedAtEndalone: Includes findings with a first observed time up to the specified date.- Both provided: Includes findings with a first observed time within the specified date range.
Date strings must follow ISO 8601 format (e.g., 2023-02-01T18:09:07Z).
curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/findings \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/findings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.plerion.com/v1/tenant/findings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{region}.api.plerion.com/v1/tenant/findings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{region}.api.plerion.com/v1/tenant/findings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{region}.api.plerion.com/v1/tenant/findings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/findings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"schemaVersion": "2022-06-09",
"id": "prn:findings:458511a1-9bc2-4fce-97a0-0e3139588e6e:plerion-aws-16:arn:aws:iam::1111222233334444:policy/test-policy",
"organizationId": "dc16d897-7f52-4b73-be57-96c7c9a853da",
"tenantId": "42749bc1-c99b-4c2c-a081-a6cda9370081",
"integrationId": "458511a1-9bc2-4fce-97a0-0e3139588e6e",
"provider": "AWS",
"executionId": 1675576960384,
"assetId": "prn:assets:458511a1-9bc2-4fce-97a0-0e3139588e6e:aws:iam:policy:us-east-1:arn:aws:iam::1111222233334444:policy/test-policy",
"providerAccountId": 1111222233334444,
"resourceType": "AWS::IAM::Policy",
"detectionId": "PLERION-AWS-16",
"status": "FAILED",
"severityLevel": "HIGH",
"message": "Policy allows full administrative privileges is attached",
"firstObservedAt": "2023-02-04T06:02:40.594Z",
"createdAt": "2023-02-04T06:07:09.092Z",
"lastObservedAt": "2023-02-05T06:02:40.384Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"slaDueAt": "2023-02-11T06:02:40.594Z",
"slaWarnAt": "2023-02-09T06:02:40.594Z",
"slaId": "8f2c1b9a-4d3e-4a6b-9c8d-1e2f3a4b5c6d",
"parameters": [
"<string>"
],
"tags": [
"<string>"
],
"fullResourceName": "arn:aws:iam::1111222233334444:policy/test-policy",
"resourceId": "test-policy",
"providerFullResourceName": "arn:aws:iam::1111222233334444:policy/test-policy",
"region": "us-east-1",
"service": "IAM",
"likelihood": 3,
"impact": 5,
"calculatedSeverity": 2,
"modifiedSeverityLevel": "CRITICAL",
"attackPaths": {},
"isExempted": false,
"meta": {},
"resourceTags": [
{
"Key": "Public",
"Value": true
}
],
"resourceURL": "https://us-east-1.console.aws.amazon.com/iam/home#/policies/arn:aws:iam::1111222233334444:policy/test-policy"
}
],
"meta": {
"cursor": "k3d83a9b-k3dk-5lkd-2ldk-9kd77c1beb6",
"perPage": 10,
"total": 42,
"page": 1,
"hasNextPage": true,
"hasPreviousPage": false
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}Authorizations
Headers
Query Parameters
Filter findings on the environment. This parameter accepts any combination of environment name or environment IDs (UUIDs) in a comma-separated list.
Supported environment names:
production- Production environmentnon-production- Non-production environment
"production,550e8400-e29b-41d4-a716-446655440000"
Filter findings based on SLA status. Only applies to FAILED findings that are tracked against an SLA. Accepts a comma-separated list of SLA statuses: breached (past the resolution deadline), nearBreach (inside the warning window but not yet breached), and withinSla (still ahead of the warning window).
breached, nearBreach, withinSla "breached,nearBreach"
Filter findings based on cloud provider services. Accepts a comma-separated list of service names. Each service can be specified either by its name alone (e.g., S3, Lambda, EC2) or prefixed with its provider in the format Provider::Service (e.g., AWS::S3, GCP::Compute, Azure::VirtualMachine).
"AWS::S3,GCP::Compute,Azure::VirtualMachine"
Start of the date range for filtering findings based on the first observed time.
Specify the start of the range using a valid ISO 8601 date-time string.
If firstObservedAtStart is provided and firstObservedAtEnd is omitted,
results will include findings from this date to the present.
Supported formats include:
yyyy-MM-ddTHH:mm:ssZ(e.g.,2020-12-18T08:00:00Z)yyyy-MM-ddTHH:mm:ss.SSSZ(e.g.,2020-12-18T08:00:00.000Z)
"2023-02-01T18:09:07Z"
End of the date range for filtering findings based on the first observed time.
Specify the end of the range using a valid ISO 8601 date-time string.
If firstObservedAtEnd is provided and firstObservedAtStart is omitted,
results will include findings up to this date.
Supported formats include:
yyyy-MM-ddTHH:mm:ssZ(e.g.,2020-12-18T08:00:00Z)yyyy-MM-ddTHH:mm:ss.SSSZ(e.g.,2020-12-18T08:00:00.000Z)
"2023-02-01T18:09:07Z"
Was this page helpful?