Get Latest Snapshot
GET https://{{cluster_vip}}/v2/data-protect/search/protected-objects?snapshotActions=RecoverVMs&searchString=*&environments=kVMware
Returns information on the latest snapshots of the VMware VMs that are being protected on the Cohesity cluster.
The snapshot ID of an object from the response is required for recovering that object.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
snapshotActions | string | ||
searchString | string | ||
environments | string |
RESPONSES
status: OK
{"objects":[{"id":3328,"name":"{{VM_name}}","sourceId":1,"environment":"kVMware","objectType":"kVirtualMachine","uuid":"{{uuid}}","osType":"kLinux","protectionStats":null,"vmwareParams":{"isTemplate":false},"latestSnapshotsInfo":[{"archivalSnapshotsInfo":null,"indexingStatus":"Done","protectionGroupId":"8046495520451254:1678033142627:123","protectionGroupName":"UI_Auto_VM_backup_Job","runInstanceId":1127,"storageDomainId":31,"protectionRunId":"123:1678164918849503","runType":"kRegular","protectionRunStartTimeUsecs":1678164918849503,"localSnapshotInfo":{"snapshotId":"{{snapshotId}}","logicalSizeBytes":10737418240}}],"sourceInfo":{"id":1,"name":"{{vCenter_name}}","environment":"kVMware","objectType":"kVCenter","uuid":"{{uuid}}","vCenterSummary":{"isCloudEnv":false}}},{"id":3332,"name":"{{VM_name}}","sourceId":1,"environment":"kVMware","objectType":"kVirtualMachine","uuid":"{{uuid}}","osType":"kLinux","protectionStats":null,"vmwareParams":{"isTemplate":false},"latestSnapshotsInfo":[{"archivalSnapshotsInfo":null,"indexingStatus":"Done","protectionGroupId":"8046495520451254:1678033142627:171","protectionGroupName":"backupjob_for_ubuntu_VM","runInstanceId":661,"storageDomainId":31,"protectionRunId":"171:1678128466909810","runType":"kRegular","protectionRunStartTimeUsecs":1678128466909810,"localSnapshotInfo":{"snapshotId":"{{snapshotId}}","logicalSizeBytes":10737418240}}],"sourceInfo":{"id":1,"name":"{{vCenter_name}}","environment":"kVMware","objectType":"kVCenter","uuid":"{{uuid}}","vCenterSummary":{"isCloudEnv":false}}},{"id":11311,"name":"{{VM_name}}","sourceId":10877,"environment":"kVMware","objectType":"kVirtualMachine","uuid":"{{uuid}}","osType":"kLinux","protectionStats":null,"vmwareParams":{"isTemplate":false},"latestSnapshotsInfo":[{"archivalSnapshotsInfo":null,"indexingStatus":"Done","protectionGroupId":"8046495520451254:1678033142627:381","protectionGroupName":"PatchAuto_singledisk_cloudspin_aws_UbuntuLinux","runInstanceId":384,"storageDomainId":106411,"protectionRunId":"381:1678109378913846","runType":"kRegular","protectionRunStartTimeUsecs":1678109378913846,"localSnapshotInfo":{"snapshotId":"{{snapshotId}}","logicalSizeBytes":5368709120}}],"sourceInfo":{"id":10877,"name":"{{vCenter_name}}","environment":"kVMware","objectType":"kVCenter","uuid":"{{uuid}}","vCenterSummary":{"isCloudEnv":false}}},{"id":11499,"name":"{{VM_name}}","sourceId":10877,"environment":"kVMware","objectType":"kVirtualMachine","uuid":"{{uuid}}","osType":"kWindows","protectionStats":null,"vmwareParams":{"isTemplate":false},"latestSnapshotsInfo":[{"archivalSnapshotsInfo":null,"indexingStatus":"Done","protectionGroupId":"8046495520451254:1678033142627:261","protectionGroupName":"Protection_job_on_clone","runInstanceId":262,"storageDomainId":31,"protectionRunId":"261:1678091938696409","runType":"kRegular","protectionRunStartTimeUsecs":1678091938696409,"localSnapshotInfo":{"snapshotId":"{{snapshotId}}","logicalSizeBytes":472446402560}}],"sourceInfo":{"id":10877,"name":"{{vCenter_name}}","environment":"kVMware","objectType":"kVCenter","uuid":"{{uuid}}","vCenterSummary":{"isCloudEnv":false}}}],"numResults":8,"metadata":{"uniqueProtectionGroupIdentifiers":[{"protectionGroupId":"8046495520451254:1678033142627:123","protectionGroupName":"UI_Auto_VM_backup_Job"},{"protectionGroupId":"8046495520451254:1678033142627:171","protectionGroupName":"backupjob_for_ubuntu_VM"},{"protectionGroupId":"8046495520451254:1678033142627:381","protectionGroupName":"PatchAuto_singledisk_cloudspin_aws_UbuntuLinux"},{"protectionGroupId":"8046495520451254:1678033142627:261","protectionGroupName":"Protection_job_on_clone"}]}}