Get Latest Snapshot
GET https://{{cluster-vip}}/v2/data-protect/search/protected-objects
Returns information on the latest snapshots of the objects that are being protected on the Cohesity cluster.
StartFragment
The snapshot ID (snapshotId
) of the object from the response is required for recovering that object.
EndFragment
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"objects":[{"id":22484,"name":"{{objectname}}","sourceId":22395,"environment":"kView","objectType":"kView","osType":"kOther","protectionStats":null,"latestSnapshotsInfo":[{"archivalSnapshotsInfo":null,"indexingStatus":"Done","protectionGroupId":"8743635867054034:1666901032964:18416","protectionGroupName":"{{protectionGroupName1}}","runInstanceId":412673,"storageDomainId":280161309,"protectionRunId":"18416:1675198980346195","runType":"kRegular","protectionRunStartTimeUsecs":1675198980346195,"localSnapshotInfo":{"snapshotId":"{{snapshotId}}","logicalSizeBytes":0}}],"sourceInfo":{"id":22395,"name":"{{sourcename}}","environment":"kView","objectType":"kViewBox"}},{"id":25267,"name":"{{objectname}}","environment":"kGenericNas","objectType":"kHost","osType":"kOther","protectionStats":null,"genericNasParams":{"supportedNasMountProtocols":["kNfs3"]},"latestSnapshotsInfo":[{"archivalSnapshotsInfo":null,"indexingStatus":"Done","protectionGroupId":"8743635867054034:1666901032964:412249","protectionGroupName":"{{protectionGroupName2}}","runInstanceId":412252,"storageDomainId":24,"protectionRunId":"412249:1675193584348281","runType":"kRegular","protectionRunStartTimeUsecs":1675193584348281,"localSnapshotInfo":{"snapshotId":"{{snapshotId}}","logicalSizeBytes":6}}],"sourceInfo":{"id":25266,"name":"{{sourcename}}","environment":"kGenericNas","objectType":"kGroup"}}],"numResults":502,"metadata":{"uniqueProtectionGroupIdentifiers":[{"protectionGroupId":"8743635867054034:1666901032964:18833","protectionGroupName":"{{protectionGroupName1}}"},{"protectionGroupId":"8743635867054034:1666901032964:18962","protectionGroupName":"{{protectionGroupName2}}"}]}}