Data scans for instance
curl --request GET \
--url https://api.example.com/partner/scans/dataimport requests
url = "https://api.example.com/partner/scans/data"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/partner/scans/data', 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://api.example.com/partner/scans/data",
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://api.example.com/partner/scans/data"
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://api.example.com/partner/scans/data")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/partner/scans/data")
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{
"header": {
"data_scan_items": 123,
"data_scan_folders": 123,
"data_scan_sensitive_items": 123,
"average_data_scan_grade": 123,
"average_data_scan_grade_alpha": "<string>"
},
"data_scans": [
{
"scan_id": "<string>",
"scan_name": "<string>",
"scan_type": "<string>",
"scanned_items": 123,
"scanned_folders": 123,
"total_sensitive_items": 123,
"percent_sensitive_items": 123,
"scan_started": "<string>",
"scan_finished": "<string>",
"grade": 123,
"grade_alpha": "<string>",
"issuing_user": "<string>",
"categories": "<string>"
}
]
}Scans
Data scans for instance
Returns data scans for the instance associated with the access token.
Each data scan returned by the API includes information such as scan ID, target name, scan status, start and end times, and summary of findings.
Required headers:
Authorization: access_token {token}
GET
/
partner
/
scans
/
data
Data scans for instance
curl --request GET \
--url https://api.example.com/partner/scans/dataimport requests
url = "https://api.example.com/partner/scans/data"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/partner/scans/data', 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://api.example.com/partner/scans/data",
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://api.example.com/partner/scans/data"
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://api.example.com/partner/scans/data")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/partner/scans/data")
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{
"header": {
"data_scan_items": 123,
"data_scan_folders": 123,
"data_scan_sensitive_items": 123,
"average_data_scan_grade": 123,
"average_data_scan_grade_alpha": "<string>"
},
"data_scans": [
{
"scan_id": "<string>",
"scan_name": "<string>",
"scan_type": "<string>",
"scanned_items": 123,
"scanned_folders": 123,
"total_sensitive_items": 123,
"percent_sensitive_items": 123,
"scan_started": "<string>",
"scan_finished": "<string>",
"grade": 123,
"grade_alpha": "<string>",
"issuing_user": "<string>",
"categories": "<string>"
}
]
}Headers
⌘I
