Skip to main content
GET
/
audits
/
{auditId}
/
monitored-computers
List monitored computers
curl --request GET \
  --url https://api.vanta.com/v1/audits/{auditId}/monitored-computers \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.vanta.com/v1/audits/{auditId}/monitored-computers"

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}/monitored-computers', 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}/monitored-computers",
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}/monitored-computers"

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://api.vanta.com/v1/audits/{auditId}/monitored-computers")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.vanta.com/v1/audits/{auditId}/monitored-computers")

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": [
      {
        "id": "5f2c939a52855e725c8d5823",
        "integrationId": "vantaAgent",
        "serialNumber": "FVFGPGV2Q6L5",
        "udid": "280FF071-1D7A-5752-BD3A-1A68937CD187",
        "lastCheckDate": "2024-03-07T18:46:05.944Z",
        "screenlock": {
          "outcome": "FAIL"
        },
        "diskEncryption": {
          "outcome": "FAIL"
        },
        "passwordManager": {
          "outcome": "FAIL"
        },
        "antivirusInstallation": {
          "outcome": "FAIL"
        },
        "operatingSystem": {
          "type": "macOS",
          "version": "13.2.1"
        },
        "owner": {
          "id": "65e1efde08e8478f143a8ff9",
          "emailAddress": "example-person@email.com",
          "displayName": "Example Owner"
        }
      }
    ],
    "pageInfo": {
      "hasNextPage": false,
      "hasPreviousPage": false,
      "startCursor": "5f2c939a52855e725c8d5823",
      "endCursor": "5f2c939a52855e725c8d5823"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

auditId
string
required

Query Parameters

pageSize
integer<int32>
default:10

Controls the maximum number of items returned in one response from the API.

Required range: 1 <= x <= 100
pageCursor
string

A marker or pointer, telling the API where to start fetching items for the subsequent page in a paginated dataset. Note that the requested page will not include the item that corresponds to this cursor but will start from the one immediately after this cursor.

complianceStatusFilterMatchesAny
enum<string>[]

Filters for monitored computers matching any status declared in the filter.

Enum representing computer compliance statuses that can be utilized as a filter. The meanings are as follows: AV_NOT_INSTALLED: The computer does not have antivirus software installed. HD_NOT_ENCRYPTED: The computer's harddrive is not encrypted. LAST_CHECK_OVER_14_DAYS: No data has been received from computer for over 14 days. PWM_NOT_INSTALLED: The computer does not have a password manager installed. SCREENLOCK_NOT_CONFIGURED: The computer does not have screenlock configured appropriately.

Available options:
PWM_NOT_INSTALLED,
HD_NOT_ENCRYPTED,
AV_NOT_INSTALLED,
SCREENLOCK_NOT_CONFIGURED,
LAST_CHECK_OVER_14_DAYS

Response

200 - application/json

Ok

results
object
required