Get a vulnerability exemption by ID
curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/profiles/{profileId}/vulnerability/exemptions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/profiles/{profileId}/vulnerability/exemptions/{id}"
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/profiles/{profileId}/vulnerability/exemptions/{id}', 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/profiles/{profileId}/vulnerability/exemptions/{id}",
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/profiles/{profileId}/vulnerability/exemptions/{id}"
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/profiles/{profileId}/vulnerability/exemptions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/profiles/{profileId}/vulnerability/exemptions/{id}")
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": {
"exemptionId": "550e8400-e29b-41d4-a716-446655440000",
"profileId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Critical Patch Exemption",
"auditNote": "Accepted risk due to compensating controls.",
"reason": "COMPENSATING_CONTROL",
"conditions": {
"vulnerabilityIds": [
"CVE-2023-12345"
],
"assetGroupIds": [
"asset-group-123"
],
"assetIds": [
"prn:assets:00000000-0000-4000-8000-000000000000:aws:ec2:instance:ap-southeast-2:i-085a328dba59f229b"
],
"assetRegions": [
"us-east-1"
],
"assetTags": [
{
"key": "environment",
"value": "production"
}
],
"noVendorFix": true,
"hasKev": true,
"hasExploit": true,
"epssScoreGte": 0.5,
"epssScoreLte": 0.9,
"hasEpssScore": true
},
"createdAt": "2023-10-01T12:00:00Z",
"updatedAt": "2023-10-02T14:30:00Z",
"createdBy": "user@example.com",
"updatedBy": "user@example.com"
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}Get a vulnerability exemption
Retrieves a specific vulnerability exemption by its ID.
GET
/
v1
/
tenant
/
profiles
/
{profileId}
/
vulnerability
/
exemptions
/
{id}
Get a vulnerability exemption by ID
curl --request GET \
--url https://{region}.api.plerion.com/v1/tenant/profiles/{profileId}/vulnerability/exemptions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/profiles/{profileId}/vulnerability/exemptions/{id}"
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/profiles/{profileId}/vulnerability/exemptions/{id}', 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/profiles/{profileId}/vulnerability/exemptions/{id}",
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/profiles/{profileId}/vulnerability/exemptions/{id}"
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/profiles/{profileId}/vulnerability/exemptions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/profiles/{profileId}/vulnerability/exemptions/{id}")
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": {
"exemptionId": "550e8400-e29b-41d4-a716-446655440000",
"profileId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Critical Patch Exemption",
"auditNote": "Accepted risk due to compensating controls.",
"reason": "COMPENSATING_CONTROL",
"conditions": {
"vulnerabilityIds": [
"CVE-2023-12345"
],
"assetGroupIds": [
"asset-group-123"
],
"assetIds": [
"prn:assets:00000000-0000-4000-8000-000000000000:aws:ec2:instance:ap-southeast-2:i-085a328dba59f229b"
],
"assetRegions": [
"us-east-1"
],
"assetTags": [
{
"key": "environment",
"value": "production"
}
],
"noVendorFix": true,
"hasKev": true,
"hasExploit": true,
"epssScoreGte": 0.5,
"epssScoreLte": 0.9,
"hasEpssScore": true
},
"createdAt": "2023-10-01T12:00:00Z",
"updatedAt": "2023-10-02T14:30:00Z",
"createdBy": "user@example.com",
"updatedBy": "user@example.com"
}
}{
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"message": "<string>"
}
]
}{
"message": "Internal server error"
}Authorizations
Path Parameters
Was this page helpful?