Internal Authenticated scan details for an asset
curl --request GET \
--url https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticatedimport requests
url = "https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated', 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://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated")
.asString();require 'uri'
require 'net/http'
url = URI("https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"AssetScore": "<string>",
"TotalNumberOfVulnerabilities": 123,
"NumberOfCriticalVulnerabilities": 123,
"NumberOfHighVulnerabilities": 123,
"NumberOfMediumVulnerabilities": 123,
"NumberOfLowVulnerabilities": 123,
"AssetName": "<string>",
"AgentName": "<string>",
"LastChecked": "<string>",
"LastScan": "<string>",
"Tags": "<string>",
"RootCauses": [
{
"RootCause": "<string>",
"FirstSeen": "2023-11-07T05:31:56Z",
"Exploitability": [
"<string>"
],
"HighestCVSS": 123,
"HighestEPSS": 123,
"TotalNumberOfVulnerabilities": 123,
"Patchable": true,
"Id": 123
}
],
"CVEs": [
{
"CveID": "<string>",
"CveTitle": "<string>",
"FirstSeen": "2023-11-07T05:31:56Z",
"Exploitability": [
"<string>"
],
"Severity": "<string>",
"CVSS": 123,
"EPSS": 123,
"ScanId": 123,
"Patchable": true
}
],
"OpenPorts": [
{
"OpenPort": "<string>",
"OpenPortName": "<string>",
"Protocol": "<string>",
"Severity": "<string>"
}
]
}
]Vulnerability Assets
Internal Authenticated scan details for an asset
Returns Internal Authenticated vulnerability details for a single asset based on asset id.
Use this endpoint when you already know the asset id and want detailed counts and list of root causes, CVEs and open ports for the asset.
Required headers:
Authorization: access_token {token}
GET
/
partner
/
vulnerability
/
assets
/
authenticated
Internal Authenticated scan details for an asset
curl --request GET \
--url https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticatedimport requests
url = "https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated', 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://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated")
.asString();require 'uri'
require 'net/http'
url = URI("https://ccnnnnnn.cyrisma.com/app/partner/vulnerability/assets/authenticated")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"AssetScore": "<string>",
"TotalNumberOfVulnerabilities": 123,
"NumberOfCriticalVulnerabilities": 123,
"NumberOfHighVulnerabilities": 123,
"NumberOfMediumVulnerabilities": 123,
"NumberOfLowVulnerabilities": 123,
"AssetName": "<string>",
"AgentName": "<string>",
"LastChecked": "<string>",
"LastScan": "<string>",
"Tags": "<string>",
"RootCauses": [
{
"RootCause": "<string>",
"FirstSeen": "2023-11-07T05:31:56Z",
"Exploitability": [
"<string>"
],
"HighestCVSS": 123,
"HighestEPSS": 123,
"TotalNumberOfVulnerabilities": 123,
"Patchable": true,
"Id": 123
}
],
"CVEs": [
{
"CveID": "<string>",
"CveTitle": "<string>",
"FirstSeen": "2023-11-07T05:31:56Z",
"Exploitability": [
"<string>"
],
"Severity": "<string>",
"CVSS": 123,
"EPSS": 123,
"ScanId": 123,
"Patchable": true
}
],
"OpenPorts": [
{
"OpenPort": "<string>",
"OpenPortName": "<string>",
"Protocol": "<string>",
"Severity": "<string>"
}
]
}
]Response
OK
