List
curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/alerts \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/alerts"
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/alerts', 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/alerts",
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/alerts"
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/alerts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/alerts")
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": "prn:assets:12345678-fd05-414f-a367-b1ea84d345f1:aws:s3:bucket:ap-southeast-2:bucket-acl",
"tenantId": "42749bc1-c99b-4c2c-a081-a6cda9370081",
"integrationId": "458511a1-9bc2-4fce-97a0-0e3139588e6e",
"status": "OPEN",
"flagged": false,
"acknowledged": false,
"workflowId": "451ba59f-8599-4bf4-81f6-618df7f79301",
"title": "Asset with risk score greater than or equal to 9",
"createdAt": "2023-02-04T06:07:09.092Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"summary": [
"Publicly Exposed"
],
"alertType": "ASSET",
"riskScore": 6.38,
"discoveredDate": 1677911631914,
"lastScannedAtTimestamp": 1677911631914,
"rulesChangedAtTimestamp": 1677911631914,
"closedAtTimestamp": 1677911631914,
"meta": {
"region": "ap-southeast-2",
"service": "AWS::EC2",
"provider": "AWS",
"resourceId": "https://ap-southeast-2.console.aws.amazon.com/ec2/home?region=ap-southeast-2#ImageDetails:imageId=ami-24234234234",
"resourceName": "<string>",
"resourceType": "AWS::EC2::AMI",
"firstObservedAt": "2025-02-10T10:26:55.842Z",
"providerAccountId": 123456789012
}
}
],
"meta": {
"cursor": "k3d83a9b-k3dk-5lkd-2ldk-9kd77c1beb6",
"perPage": 10
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}List alerts
Use the list alerts API to get alerts for the tenant.
GET
/
v1
/
tenant
/
alerts
List
curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/alerts \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/alerts"
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/alerts', 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/alerts",
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/alerts"
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/alerts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/alerts")
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": "prn:assets:12345678-fd05-414f-a367-b1ea84d345f1:aws:s3:bucket:ap-southeast-2:bucket-acl",
"tenantId": "42749bc1-c99b-4c2c-a081-a6cda9370081",
"integrationId": "458511a1-9bc2-4fce-97a0-0e3139588e6e",
"status": "OPEN",
"flagged": false,
"acknowledged": false,
"workflowId": "451ba59f-8599-4bf4-81f6-618df7f79301",
"title": "Asset with risk score greater than or equal to 9",
"createdAt": "2023-02-04T06:07:09.092Z",
"updatedAt": "2023-02-05T06:07:02.959Z",
"summary": [
"Publicly Exposed"
],
"alertType": "ASSET",
"riskScore": 6.38,
"discoveredDate": 1677911631914,
"lastScannedAtTimestamp": 1677911631914,
"rulesChangedAtTimestamp": 1677911631914,
"closedAtTimestamp": 1677911631914,
"meta": {
"region": "ap-southeast-2",
"service": "AWS::EC2",
"provider": "AWS",
"resourceId": "https://ap-southeast-2.console.aws.amazon.com/ec2/home?region=ap-southeast-2#ImageDetails:imageId=ami-24234234234",
"resourceName": "<string>",
"resourceType": "AWS::EC2::AMI",
"firstObservedAt": "2025-02-10T10:26:55.842Z",
"providerAccountId": 123456789012
}
}
],
"meta": {
"cursor": "k3d83a9b-k3dk-5lkd-2ldk-9kd77c1beb6",
"perPage": 10
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}Authorizations
Headers
Query Parameters
Was this page helpful?