---
title: "Search for infected resources"
method: GET
path: "/ransomwarerecovery/v1/search/resource"
tags: ["Ransomware Recovery"]
---

# Search for infected resources

`GET /ransomwarerecovery/v1/search/resource`

Search for an infected resource like a device using the name of the resource.

## Query parameters

- `hostname` string, required
- `orgName` string
- `resourceType` 'Endpoint' | 'OneDrive' | 'SharePoint' | 'File Server' | 'NAS' | 'VMware'
- `pageToken` string

## Response `200`

OK

- SearchResponse
  - `resources` object[]
    - `resourceID` integer — The unique ID of the resource in Druva Cloud.
    - `orgID` integer — The Phoenix organization ID for the resource. For inSync workloads, value will be -1.
    - `resourceName` string — Specify the resource name to filter and list the specific resource name within Druva Cloud. Example - 'DOMAIN1234'.
    - `resourceParent` string — Name of the user in case of a device or Server Name in case of a backup set which is quarantined. Example for Devices - Ernie Carter
    - `resourceType` 'Endpoint' | 'OneDrive' | 'SharePoint' | 'File Server' | 'NAS' | 'VMware' — The type of resource. A resource can be one of the following types - Endpoint,OneDrive,SharePoint,File Server,NAS,VMware
    - `resourceStatus` 'Enabled' | 'Disabled' — The backup status of the resource in Druva Cloud. Status can be one of the following - Enabled - The resource is enabled for backup. Disabled - The resource is disabled for backup.
  - `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/revisions/2af2bf148b25/schema)
