GET v1/bunits/{bunitId}/consumers/{consumerId}/cohesitydatasource/filerestore/search?query={query}

Search files and folders by name in the snapshots of the data-source

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId The ID of the business unit integer

Required

consumerId The ID of the consumption unit the data-source is related to integer

Required

query The text to search for in file and folder names string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CohesityFileSearchResult
NameDescriptionTypeAdditional information
RestorePath Path of the file or folder as used when restoring it
string

None.

IsFolder boolean

None.

IsRestorable True if the file or folder can be restored. False for files on a volume without a drive letter or mount point (e.g. "lvol_1/x").
boolean

None.

Versions Versions of the file or folder, newest first
Collection of CohesityFileVersion

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<ArrayOfCohesityFileSearchResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CohesityFileSearchResult>
    <RestorePath>sample string 1</RestorePath>
    <IsFolder>true</IsFolder>
    <IsRestorable>true</IsRestorable>
    <Versions>
      <CohesityFileVersion>
        <ModifiedTime>2026-11-28T02:42:38.577172+01:00</ModifiedTime>
        <SizeBytes>1</SizeBytes>
        <SnapshotIds>
          <long>1</long>
          <long>2</long>
        </SnapshotIds>
      </CohesityFileVersion>
      <CohesityFileVersion>
        <ModifiedTime>2026-11-28T02:42:38.577172+01:00</ModifiedTime>
        <SizeBytes>1</SizeBytes>
        <SnapshotIds>
          <long>1</long>
          <long>2</long>
        </SnapshotIds>
      </CohesityFileVersion>
    </Versions>
  </CohesityFileSearchResult>
  <CohesityFileSearchResult>
    <RestorePath>sample string 1</RestorePath>
    <IsFolder>true</IsFolder>
    <IsRestorable>true</IsRestorable>
    <Versions>
      <CohesityFileVersion>
        <ModifiedTime>2026-11-28T02:42:38.577172+01:00</ModifiedTime>
        <SizeBytes>1</SizeBytes>
        <SnapshotIds>
          <long>1</long>
          <long>2</long>
        </SnapshotIds>
      </CohesityFileVersion>
      <CohesityFileVersion>
        <ModifiedTime>2026-11-28T02:42:38.577172+01:00</ModifiedTime>
        <SizeBytes>1</SizeBytes>
        <SnapshotIds>
          <long>1</long>
          <long>2</long>
        </SnapshotIds>
      </CohesityFileVersion>
    </Versions>
  </CohesityFileSearchResult>
</ArrayOfCohesityFileSearchResult>