Vulnerability for scan Id
curl --request GET \
--url https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}import requests
url = "https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}', 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/scans/vulnerability/{scanId}",
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/scans/vulnerability/{scanId}"
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/scans/vulnerability/{scanId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}")
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{
"scanId": 123,
"scanName": "<string>",
"scanType": "<string>",
"scanStart": "2023-11-07T05:31:56Z",
"scanEnd": "2023-11-07T05:31:56Z",
"assets": [
{
"id": 123,
"name": "<string>",
"ipAddress": "<string>",
"vulnerabilities": [
{
"cve": "<string>",
"title": "<string>",
"score": 123,
"epssScore": 123,
"riskLevel": "<string>",
"exploitability": "<string>",
"scanId": 123,
"cveId": 123,
"firstSeen": "2023-11-07T05:31:56Z",
"targetIp": "<string>",
"targetHostName": "<string>"
}
],
"openPorts": [
{
"id": 123,
"targetIp": "<string>",
"targetName": "<string>",
"portNumber": "<string>",
"portProtocol": "<string>",
"portDescription": "<string>",
"riskLevel": "<string>"
}
],
"flaws": [
{
"alertId": 123,
"port": 123,
"alertRef": "<string>",
"alertName": "<string>",
"riskLevel": "<string>",
"alertCount": 123,
"target": "<string>"
}
]
}
]
}Scans
Vulnerability for scan Id
Returns asets with asset vulnerabilities.
Each asset returned by the API may include three collections: vulnerabilities, openPorts, and flaws. These collections are populated based on the scan type, as follows:
- Internal Authenticated (scan type 5), Internal Unauthenticated (scan type 10), and External IP scans (scan type 9) will include data for vulnerabilities and openPorts.
- External Web Application scans (scan type 11) will include data for flaws.
Required headers:
Authorization: access_token {token}
GET
/
partner
/
scans
/
vulnerability
/
{scanId}
Vulnerability for scan Id
curl --request GET \
--url https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}import requests
url = "https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}', 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/scans/vulnerability/{scanId}",
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/scans/vulnerability/{scanId}"
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/scans/vulnerability/{scanId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ccnnnnnn.cyrisma.com/app/partner/scans/vulnerability/{scanId}")
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{
"scanId": 123,
"scanName": "<string>",
"scanType": "<string>",
"scanStart": "2023-11-07T05:31:56Z",
"scanEnd": "2023-11-07T05:31:56Z",
"assets": [
{
"id": 123,
"name": "<string>",
"ipAddress": "<string>",
"vulnerabilities": [
{
"cve": "<string>",
"title": "<string>",
"score": 123,
"epssScore": 123,
"riskLevel": "<string>",
"exploitability": "<string>",
"scanId": 123,
"cveId": 123,
"firstSeen": "2023-11-07T05:31:56Z",
"targetIp": "<string>",
"targetHostName": "<string>"
}
],
"openPorts": [
{
"id": 123,
"targetIp": "<string>",
"targetName": "<string>",
"portNumber": "<string>",
"portProtocol": "<string>",
"portDescription": "<string>",
"riskLevel": "<string>"
}
],
"flaws": [
{
"alertId": 123,
"port": 123,
"alertRef": "<string>",
"alertName": "<string>",
"riskLevel": "<string>",
"alertCount": 123,
"target": "<string>"
}
]
}
]
}Response
OK
Represents a vulnerability scan with its associated assets and their vulnerabilities.
