---
title: "Get device statistics for a specific threat hunt"
method: GET
path: "/threathunting/v1/threathunts/{threatHuntID}/devices/{deviceID}/stats"
tags: ["Threat Hunting"]
---

# Get device statistics for a specific threat hunt

`GET /threathunting/v1/threathunts/{threatHuntID}/devices/{deviceID}/stats`

## Request

- Base URL: `https://apis.druva.com/realize`
- URL: `https://apis.druva.com/realize/threathunting/v1/threathunts/{threatHuntID}/devices/{deviceID}/stats`
- Auth: API key in header `Authorization`

Displays a list of statistics for a specific device ID and resource type for a particular threat hunt.

## Path parameters

- `threatHuntID` integer, required
- `deviceID` integer, required

## Query parameters

- `resourceType` 'VMware' | 'EC2' | 'AzureVM' | 'OneDrive' | 'SharePoint' | 'ExchangeOnline', required

## Response `200`

Success

- ThreatHuntGetDeviceStatsResponse
  - `threatHuntID` integer: The unique identifier for a threat hunt.
  - `deviceID` integer: Unique identifier for a device.
  - `resourceType` string: Name of the resource type. The resource type can be 'VMware', 'EC2', 'AzureVM', 'OneDrive', 'SharePoint', or Exchange Online.
  - `totalSnapshots` integer: Count of total snapshots for this resource.
  - `totalFilesImpacted` integer: Count of impacted files against which threat was identified for this resource.
  - `impactedSnapshots` integer: Count of impacted snapshots against which threat was identified for this resource.
  - `totalQuarantinedSnapshots` integer: Count of impacted snapshots that were quarantined.
  - `firstImpactedSnapshot` string: Name of the first impacted snapshot. Example - Nov 21 2019, 14:39:34.
  - `lastImpactedSnapshot` string: Name of the last impacted snapshot. Example - Nov 21 2019, 14:39:34.
  - `firstScannedSnapshot` string: Name of the first scanned snapshot. Example - Nov 21 2019, 14:39:34.
  - `lastScannedSnapshot` string: Name of the last scanned snapshot. Example - Nov 21 2019, 14:39:34.
  - `autoQuarantineStatus` string: The auto quarantine status of the threat hunt. The status can be 'Successful,' 'Successful with errors', 'Not Applicable', or 'Failed'.
  - `resourceIDs` integer[]: Lists the Resource IDs associated with the chosen device ID.

## Other responses

- `400`: Bad Request
- `401`: The request either did not include an authentication token, or you have provided an expired authentication token.
- `404`: The requested resource was not found.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/druva/apis/cyber-resilience.md) - [All operations](https://skmtc.dev/druva/apis/cyber-resilience/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cyber-resilience/revisions/b149d46c996a?raw)
