Get Latest Snapshot

GET https:/{{cluster-vip}}/v2/data-protect/objects/{{Linux_Source_Id}}/protection-groups/{{protectionGroupId}}/indexed-objects/snapshots?indexedObjectName=/etc/anaconda/product.d/centos.conf&includeIndexedSnapshotsOnly=true

Returns information on the latest snapshot of the object specified in the API URL.

Considerations:

  • The snapshot ID of a file or folder from the response is required for recovering that file or folder.
  • You can fetch the ProtectionGroupId to be specified in the API URL from the Create File-based Protection Group API response.
  • You can fetch the Linux_Source_Id to be specified in the API URL from the Register Linux Physical Server API response.

Request Params

KeyDatatypeRequiredDescription
indexedObjectNamestring
includeIndexedSnapshotsOnlyboolean

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring

RESPONSES

status: OK

{"snapshots":[{"indexedObjectName":"/etc/anaconda/product.d/centos.conf","objectSnapshotid":"{{snapshotId}}","snapshotTimestampUsecs":1675193566341137,"runType":"kRegular","protectionGroupId":"8743635867054034:1666901032964:412248","protectionGroupName":"{{Linux_Protection_Group_Name}}","storageDomainId":24,"attempts":1,"sizeBytes":132,"lastModifiedTimeUsecs":1625150242000000}]}