Audits
List raw test data for a test snapshot
Lists raw test data captured in a test snapshot, in capture order. Structured entries contain the primary resource ID, type, and captured JSON. Unstructured entries contain one captured JSON record, with null resource ID and type.
Pass results.pageInfo.endCursor as pageCursor to continue until
results.pageInfo.hasNextPage is false.
Deleted evidence returns 404.
Rate limit: 50 requests / minute.
GET
/
audits
/
{auditId}
/
information-requests
/
{requestId}
/
evidence
/
{evidenceId}
/
test-snapshot
/
raw-data
TypeScript
import { Vanta } from "vanta-auditor-api-sdk";
const vanta = new Vanta({
bearerAuth: process.env["VANTA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await vanta.audits.listInformationRequestTestSnapshotRawData({
auditId: "<id>",
requestId: "<id>",
evidenceId: "<id>",
});
console.log(result);
}
run();package hello.world;
import com.vanta.vanta_auditor_api.Vanta;
import com.vanta.vanta_auditor_api.models.operations.ListInformationRequestTestSnapshotRawDataRequest;
import com.vanta.vanta_auditor_api.models.operations.ListInformationRequestTestSnapshotRawDataResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Vanta sdk = Vanta.builder()
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();
ListInformationRequestTestSnapshotRawDataRequest req = ListInformationRequestTestSnapshotRawDataRequest.builder()
.auditId("<id>")
.requestId("<id>")
.evidenceId("<id>")
.build();
ListInformationRequestTestSnapshotRawDataResponse res = sdk.audits().listInformationRequestTestSnapshotRawData()
.request(req)
.call();
if (res.paginatedResponseVantaTestSnapshotRawTestDataPageRow().isPresent()) {
System.out.println(res.paginatedResponseVantaTestSnapshotRawTestDataPageRow().get());
}
}
}curl --request GET \
--url https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-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.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data",
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://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data"
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))
}require 'uri'
require 'net/http'
url = URI("https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data")
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{
"results": {
"data": [
{
"resourceId": "6890e473dce1da5d8406f700",
"resourceType": "OktaUser",
"rawJson": {
"id": "6890e473dce1da5d8406f700",
"status": "ACTIVE"
},
"dataTooLarge": false
}
],
"pageInfo": {
"startCursor": "eyJzbmFwc2hvdElkIjoiNjg5MGU0NzNkY2UxZGE1ZDg0MDZmNzAzIiwiaW5kZXgiOjB9",
"endCursor": "eyJzbmFwc2hvdElkIjoiNjg5MGU0NzNkY2UxZGE1ZDg0MDZmNzAzIiwiaW5kZXgiOjB9",
"hasNextPage": true,
"hasPreviousPage": false
}
}
}Authorizations
Query Parameters
Was this page helpful?
⌘I
TypeScript
import { Vanta } from "vanta-auditor-api-sdk";
const vanta = new Vanta({
bearerAuth: process.env["VANTA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await vanta.audits.listInformationRequestTestSnapshotRawData({
auditId: "<id>",
requestId: "<id>",
evidenceId: "<id>",
});
console.log(result);
}
run();package hello.world;
import com.vanta.vanta_auditor_api.Vanta;
import com.vanta.vanta_auditor_api.models.operations.ListInformationRequestTestSnapshotRawDataRequest;
import com.vanta.vanta_auditor_api.models.operations.ListInformationRequestTestSnapshotRawDataResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Vanta sdk = Vanta.builder()
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();
ListInformationRequestTestSnapshotRawDataRequest req = ListInformationRequestTestSnapshotRawDataRequest.builder()
.auditId("<id>")
.requestId("<id>")
.evidenceId("<id>")
.build();
ListInformationRequestTestSnapshotRawDataResponse res = sdk.audits().listInformationRequestTestSnapshotRawData()
.request(req)
.call();
if (res.paginatedResponseVantaTestSnapshotRawTestDataPageRow().isPresent()) {
System.out.println(res.paginatedResponseVantaTestSnapshotRawTestDataPageRow().get());
}
}
}curl --request GET \
--url https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-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.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data",
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://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data"
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))
}require 'uri'
require 'net/http'
url = URI("https://api.vanta.com/v1/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data")
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{
"results": {
"data": [
{
"resourceId": "6890e473dce1da5d8406f700",
"resourceType": "OktaUser",
"rawJson": {
"id": "6890e473dce1da5d8406f700",
"status": "ACTIVE"
},
"dataTooLarge": false
}
],
"pageInfo": {
"startCursor": "eyJzbmFwc2hvdElkIjoiNjg5MGU0NzNkY2UxZGE1ZDg0MDZmNzAzIiwiaW5kZXgiOjB9",
"endCursor": "eyJzbmFwc2hvdElkIjoiNjg5MGU0NzNkY2UxZGE1ZDg0MDZmNzAzIiwiaW5kZXgiOjB9",
"hasNextPage": true,
"hasPreviousPage": false
}
}
}