---
title: "List snapshot statistics"
method: GET
path: "/uda/v1/stats/{workload}/resources/{resourceID}"
tags: ["Data Anomalies"]
---

# List snapshot statistics

`GET /uda/v1/stats/{workload}/resources/{resourceID}`

Returns the snapshot statistics for a resource for which the Data Anomalies alert is generated. It displays the statistics for the last 30 days.

## Path parameters

- `workload` 'fileserver' | 'nas' | 'endpoints' | 'sharepoint' | 'onedrive' | 'vmware', required
- `resourceID` integer, required

## Query parameters

- `pageToken` integer

## Response `200`

OK

- ListResourceCverStats
  - `orgID` integer — The Phoenix organization ID for the resource. For inSync workloads, value will be -1.
  - `resourceID` integer — The unique identifier of the resource, a device or a backup set on which Data Anomalies is detected.
  - `resourceName` string — Name of the resource on which Data Anomalies are detected. Example - Ernie Carter's Macbook.
  - `resourceParentName` string — Name of the device user which is quarantined. Example - Ernie Carter
  - `resourcePlatform` string — The operating system of the resource. Example - linux.
  - `workload` 'endpoints' | 'sharepoint' | 'onedrive'
  - `resourceType` 'Endpoint' | 'SharePoint' | 'OneDrive' — The type of the resource. A resource can be one of the following types - - Endpoint - SharePoint - OneDrive.
  - `totalAlerts` integer — The total number of Data Anomalies alerts occurred in the last 30 days.
  - `activeAlerts` integer — The total number of Data Anomalies alerts on which no action has been taken for the past 30 days.
  - `siteType` string — Site type for Sharepoint sites.
  - `siteUrl` string — The URL of the SharePoint site.
  - `resourceUrl` string — The url that redirects to the product user interface (UI) of the resource.
  - `stats` object[]
    - `alertTime` string — The date and time on which the Data Anomalies alert was observed in the snapshot. Example - Nov 21 2019, 14:39'
    - `alertTimestamp` string — Date and time when the alert got generated in YYYY-MM-DD'T'hh:mm:ss'Z' format.
    - `snapshotTime` string — Date and time when the snapshot got created in YYYY-MM-DD'T'hh:mm:ss'Z' format.
    - `isLogAvailable` boolean — True, if activity logs are available for download.
    - `unscannedDetails` string — The reason for the Data Anomaly scan not being performed on the selected snapshot.
    - `isQuarantined` boolean — True, if the resource is quarantined; else, false.
    - `snapsphotStatus` integer — Provides details of the status of the snapshot - 0 for Unscanned, 1 for Scanned, and 2 for Impacted snapshots.
    - `alertTypes` string[]
    - `snapshotID` string — The unique ID of the snapshot. Example - Mjk4OC1GcmkgTm92IDIyIDExOjEzOjU5IDIwMTk=
    - `snapshotName` string — Name of the snapshot for which the Data Anomalies alert occurred. Snapshot name is the date and the time on which it was created. Example - Nov 21 2019, 14:39
    - `snapshotSize` string — Snapshot size, in bytes, for which the Data Anomalies alert was generated.
    - `totalFiles` integer — The total number of live files in the snapshot.
    - `totalFilesImpacted` integer — The total number of files created, deleted or modified in the snapshot.
    - `alertMetadata` object
      - `created` object
        - `files` integer — Number of files created.
        - `baseline` integer — Baseline for creation for the selected snapshot.
        - `deviation` string — Percent deviation from baseline. The format is '+20%'.
        - `filePerChange` string — Percent deviation from baseline. The format is '+5%'.
        - `isAlert` boolean — True, if there is a creation alert generated for the selected snapshot.
      - `updated` object
        - `files` integer — Number of files updated.
        - `baseline` integer — Baseline for updation for the selected snapshot.
        - `deviation` string — Percent deviation from baseline. The format is '+20%'.
        - `filePerChange` string — Percent deviation from baseline. The format is '+5%'.
        - `isAlert` boolean — True, if there is a modification alert generated for the selected snapshot.
      - `deleted` object
        - `files` integer — Number of files deleted.
        - `baseline` integer — Baseline for deletion for the selected snapshot.
        - `deviation` string — Percent deviation from baseline. The format is '+20%'.
        - `filePerChange` string — Percent deviation from baseline. The format is '+5%'.
        - `isAlert` boolean — True, if there is a deletion alert generated for the selected snapshot.
      - `encrpted` object
        - `files` integer — The number of files encrypted. This field is displayed only when an encryption alert gets generated.
        - `baseline` integer
        - `deviation` string
        - `filePerChange` string
        - `isAlert` boolean — True, if there is an encryption alert generated for the selected snapshot.
    - `status` string — Status of the Data Anomalies alert. Displays as Active if the Data Anomalies are detected on a snapshot. Displays as Resolved if an action is taken on the Data Anomalies.
    - `actionTaken` string — TThe action that was taken on the Data Anomalies alert. Value can be one of the following - - Quarantined - Ignored - No Action
  - `nextPageToken` string — The token to access the next page of results. This parameter will be empty for the last page of results.
  - `isLast` boolean — An identifier to identify if the returned page is the last page of results. Value can be one of the following - True - Is last page of results. False - There are more results available. Use 'nextPageToken' value to get the next list of results.

## 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.net/druva/apis/authentication.md) · [All operations](https://skmtc.net/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/druva/authentication/versions/2af2bf148b25/schema)
