I am currently working on a script that uses the Ent. Manger API to identify all restore points for a vSphere VM.
The query service is behaving strangely and returning restore points outside the scope of the filter.
Restore Points from QuerySvc:
Code: Select all
/api/query?type=VmRestorePoint&VmDisplayName=MyCustomName2"
/api/vmRestorePoints/d5a011a9-e2da-4d2b-ba2d-2b1889047c34
/api/vmRestorePoints/d90df9c4-822f-40d9-ba66-994ce1f95e28
/api/vmRestorePoints/8684af08-f9b2-4c49-b83a-d112e7dc18ee
/api/vmRestorePoints/22040970-29aa-4626-83ff-d28e5e059175
Code: Select all
/api/vmRestorePoints/...?format=Entity"
VmName Href
------ ----
MyCustomName2 /api/vmRestorePoints/d5a011a9-e2da-4d2b-ba2d-2b1889047c34?format=Entity
MyCustomName2 /api/vmRestorePoints/d90df9c4-822f-40d9-ba66-994ce1f95e28?format=Entity
OtherName2 /api/vmRestorePoints/8684af08-f9b2-4c49-b83a-d112e7dc18ee?format=Entity
MyCustomName2 /api/vmRestorePoints/22040970-29aa-4626-83ff-d28e5e059175?format=Entity
- Both VMs are in the same Backup Job
- latest v11 Build