curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/risks \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/risks"
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/risks', 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/risks",
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/risks"
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/risks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/risks")
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": [
{
"id": "<string>",
"riskTypeId": "<string>",
"organizationId": "<string>",
"tenantId": "<string>",
"integrationId": "<string>",
"description": "<string>",
"primaryAssetId": "<string>",
"region": "<string>",
"resolutions": [
{
"key": "<string>",
"type": "<string>",
"title": "<string>"
}
],
"score": 5,
"likelihood": 5,
"impact": 5,
"severityLevel": "CRITICAL",
"factors": [
{
"key": "<string>",
"meta": {},
"title": "<string>",
"value": 123,
"verificationState": "<string>",
"description": "<string>"
}
],
"meta": {
"assetName": "<string>",
"resourceType": "<string>",
"fullResourceName": "<string>"
},
"discoveredAt": "2023-11-07T05:31:56Z",
"lifecycleState": "DISMISSED_ACCEPTED",
"primaryAsset": {
"schemaVersion": "2022-06-09",
"id": "prn:assets:00000000-0000-4000-8000-000000000000:aws:ec2:instance:ap-southeast-2:i-085a328dba59f229b",
"organizationId": "dc16d897-7f52-4b73-be57-96c7c9a853da",
"tenantId": "42749bc1-c99b-4c2c-a081-a6cda9370081",
"integrationId": "458511a1-9bc2-4fce-97a0-0e3139588e6e",
"ownerTeamId": "3f0c2a7e-1b8d-4c55-9a61-0d2f7e9b4c11",
"ownerPersonId": "8a1d4b2c-77e0-4f3a-b9c5-2e6d1f0a9b33",
"executionId": 1675576960384,
"provider": "AWS",
"type": "AWS::EC2::Instance",
"name": "i-085a328dba59f229b",
"createdAt": "2023-02-04T06:07:09.092Z",
"firstObservedAt": "2023-02-04T06:02:40.594Z",
"lastObservedAt": "2023-02-05T06:02:40.384Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"tags": [
{
"Key": "Department",
"Value": "Finance"
}
],
"isPubliclyExposed": false,
"grantsExternalAccess": false,
"isVulnerable": false,
"numberOfLowVulnerabilities": 85,
"numberOfMediumVulnerabilities": 60,
"numberOfHighVulnerabilities": 15,
"numberOfCriticalVulnerabilities": 5,
"vulnerabilityScore": 9,
"hasKev": false,
"hasExploit": false,
"isExploitable": false,
"isInVpc": false,
"lastScanId": 1679594910265,
"lastScannedAt": "2023-03-23T18:17:20.003Z",
"imageId": "<string>",
"platform": "<string>",
"hasAdminPrivileges": false,
"hasOverlyPermissivePrivileges": false,
"isInactiveIdentity": false,
"hasLongLivedCredentials": false,
"hasWeakAuthentication": false,
"isEndOfLife": false,
"hasAuthorizer": false,
"hasTracingEnabled": false,
"policy": {},
"numberOfLowSecrets": 3,
"numberOfMediumSecrets": 1,
"numberOfHighSecrets": 0,
"numberOfCriticalSecrets": 2,
"lowSecrets": [
{}
],
"mediumSecrets": [
{}
],
"highSecrets": [
{}
],
"criticalSecrets": [
{}
],
"operatingSystem": [
{
"architecture": "x86_64",
"name": "Ubuntu",
"platform": "Linux/UNIX",
"version": "24.04.2 LTS (Noble Numbat)",
"versionId": 24.04,
"activeKernel": "4.14.246-197.484.amzn2.x86_64",
"buildNumber": "20348.fe_release.210507-1500",
"lcuVersion": "10.0.20348.2762"
}
],
"riskScore": 9.36,
"operationalState": "active",
"region": "us-east-1",
"service": "AWS::EC2",
"resourceId": "i-085a328dba59f229b",
"resourceName": "test-instance",
"resourceTags": [
{
"Key": "Public",
"Value": true
}
],
"resourceType": "AWS::EC2::Instance",
"fullResourceName": "arn:aws:iam::1111222233334444:policy/test-policy",
"providerAccountId": 123456789012,
"resourceURL": "https://us-east-1.console.aws.amazon.com/iam/home#/policies/arn:aws:iam::1111222233334444:policy/test-policy"
},
"integration": {
"integrationId": "31497927-86af-4fba-afc6-c0cf2311a55b",
"name": "Integration 001",
"tenantId": "12345678-86af-4fba-afc6-c0cf12345678",
"organizationId": "12345678-86af-4fba-afc6-c0cf87654321",
"schedule": "59 6 * * *",
"scanInterval": 24,
"createdAt": "2023-02-04T06:07:09.092Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"provider": "AWS",
"type": "AWSAccount",
"detectionSettingId": "12345678-86af-4fba-afc6-c0cf87654321",
"status": "Active",
"riskScore": 8.19,
"awsAccountId": "123456789012",
"azureSubscriptionId": "12345678-1234-5678-1234-567812345678",
"azureDirectoryId": "87654321-4321-8765-4321-876543218765",
"gcpProjectId": "my-gcp-project"
}
}
],
"meta": {
"perPage": 100,
"total": 200,
"cursor": 100
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}List risks
Use the list risks API to retrieve and filter risks across the tenant.
curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/risks \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/risks"
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/risks', 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/risks",
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/risks"
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/risks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/risks")
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": [
{
"id": "<string>",
"riskTypeId": "<string>",
"organizationId": "<string>",
"tenantId": "<string>",
"integrationId": "<string>",
"description": "<string>",
"primaryAssetId": "<string>",
"region": "<string>",
"resolutions": [
{
"key": "<string>",
"type": "<string>",
"title": "<string>"
}
],
"score": 5,
"likelihood": 5,
"impact": 5,
"severityLevel": "CRITICAL",
"factors": [
{
"key": "<string>",
"meta": {},
"title": "<string>",
"value": 123,
"verificationState": "<string>",
"description": "<string>"
}
],
"meta": {
"assetName": "<string>",
"resourceType": "<string>",
"fullResourceName": "<string>"
},
"discoveredAt": "2023-11-07T05:31:56Z",
"lifecycleState": "DISMISSED_ACCEPTED",
"primaryAsset": {
"schemaVersion": "2022-06-09",
"id": "prn:assets:00000000-0000-4000-8000-000000000000:aws:ec2:instance:ap-southeast-2:i-085a328dba59f229b",
"organizationId": "dc16d897-7f52-4b73-be57-96c7c9a853da",
"tenantId": "42749bc1-c99b-4c2c-a081-a6cda9370081",
"integrationId": "458511a1-9bc2-4fce-97a0-0e3139588e6e",
"ownerTeamId": "3f0c2a7e-1b8d-4c55-9a61-0d2f7e9b4c11",
"ownerPersonId": "8a1d4b2c-77e0-4f3a-b9c5-2e6d1f0a9b33",
"executionId": 1675576960384,
"provider": "AWS",
"type": "AWS::EC2::Instance",
"name": "i-085a328dba59f229b",
"createdAt": "2023-02-04T06:07:09.092Z",
"firstObservedAt": "2023-02-04T06:02:40.594Z",
"lastObservedAt": "2023-02-05T06:02:40.384Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"tags": [
{
"Key": "Department",
"Value": "Finance"
}
],
"isPubliclyExposed": false,
"grantsExternalAccess": false,
"isVulnerable": false,
"numberOfLowVulnerabilities": 85,
"numberOfMediumVulnerabilities": 60,
"numberOfHighVulnerabilities": 15,
"numberOfCriticalVulnerabilities": 5,
"vulnerabilityScore": 9,
"hasKev": false,
"hasExploit": false,
"isExploitable": false,
"isInVpc": false,
"lastScanId": 1679594910265,
"lastScannedAt": "2023-03-23T18:17:20.003Z",
"imageId": "<string>",
"platform": "<string>",
"hasAdminPrivileges": false,
"hasOverlyPermissivePrivileges": false,
"isInactiveIdentity": false,
"hasLongLivedCredentials": false,
"hasWeakAuthentication": false,
"isEndOfLife": false,
"hasAuthorizer": false,
"hasTracingEnabled": false,
"policy": {},
"numberOfLowSecrets": 3,
"numberOfMediumSecrets": 1,
"numberOfHighSecrets": 0,
"numberOfCriticalSecrets": 2,
"lowSecrets": [
{}
],
"mediumSecrets": [
{}
],
"highSecrets": [
{}
],
"criticalSecrets": [
{}
],
"operatingSystem": [
{
"architecture": "x86_64",
"name": "Ubuntu",
"platform": "Linux/UNIX",
"version": "24.04.2 LTS (Noble Numbat)",
"versionId": 24.04,
"activeKernel": "4.14.246-197.484.amzn2.x86_64",
"buildNumber": "20348.fe_release.210507-1500",
"lcuVersion": "10.0.20348.2762"
}
],
"riskScore": 9.36,
"operationalState": "active",
"region": "us-east-1",
"service": "AWS::EC2",
"resourceId": "i-085a328dba59f229b",
"resourceName": "test-instance",
"resourceTags": [
{
"Key": "Public",
"Value": true
}
],
"resourceType": "AWS::EC2::Instance",
"fullResourceName": "arn:aws:iam::1111222233334444:policy/test-policy",
"providerAccountId": 123456789012,
"resourceURL": "https://us-east-1.console.aws.amazon.com/iam/home#/policies/arn:aws:iam::1111222233334444:policy/test-policy"
},
"integration": {
"integrationId": "31497927-86af-4fba-afc6-c0cf2311a55b",
"name": "Integration 001",
"tenantId": "12345678-86af-4fba-afc6-c0cf12345678",
"organizationId": "12345678-86af-4fba-afc6-c0cf87654321",
"schedule": "59 6 * * *",
"scanInterval": 24,
"createdAt": "2023-02-04T06:07:09.092Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"provider": "AWS",
"type": "AWSAccount",
"detectionSettingId": "12345678-86af-4fba-afc6-c0cf87654321",
"status": "Active",
"riskScore": 8.19,
"awsAccountId": "123456789012",
"azureSubscriptionId": "12345678-1234-5678-1234-567812345678",
"azureDirectoryId": "87654321-4321-8765-4321-876543218765",
"gcpProjectId": "my-gcp-project"
}
}
],
"meta": {
"perPage": 100,
"total": 200,
"cursor": 100
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}Authorizations
Query Parameters
Filter risks 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"
Start of the date range for filtering risks based on the discovered date. Specify the start of the range using a valid ISO 8601 date-time string. If discoveredAtStart is provided and discoveredAtEnd is omitted, results will include risks from this date to the present. Supported formats include: - yyyy-MM-ddTHH:mm:ssZ (e.g., 2025-02-18T08:00:00Z) - yyyy-MM-ddTHH:mm:ss.SSSZ (e.g., 2025-02-18T08:00:00.000Z)
End of the date range for filtering risks based on the discovered date. Specify the end of the range using a valid ISO 8601 date-time string. If discoveredAtEnd is provided and discoveredAtStart is omitted, results will include risks up to this date. Supported formats include: - yyyy-MM-ddTHH:mm:ssZ (e.g., 2025-02-18T08:00:00Z) - yyyy-MM-ddTHH:mm:ss.SSSZ (e.g., 2025-02-18T08:00:00.000Z)
Was this page helpful?