I'm trying to enumerate all restore points for a given vm.
First I want to do a query for all vm's. the hierarchyref is a required for this query to work.
Code: Select all
http://10.224.3.36:9399/api/hierarchyRoots
Code: Select all
{'Href': 'http://10.224.3.36:9399/api/hierarchyRoots/bcbe8d35-fca9-440d-a55d-e1480e8a2de4', 'Type': 'HierarchyRootReference', 'UID': 'urn:veeam:HierarchyRoot:bcbe8d35-fca9-440d-a55d-e1480e8a2de4', 'Name': 'Q01VCE002.q.lan'}
Code: Select all
http://10.224.3.36:9399/api/lookup?type=vm&hierarchyRef=urn:veeam:HierarchyRoot:bcbe8d35-fca9-440d-a55d-e1480e8a2de4
Code: Select all
http://10.224.3.36:9399/api/lookup?type=vm&hierarchyRef=bcbe8d35-fca9-440d-a55d-e1480e8a2de4
Code: Select all
Message="Invalid hierarchy object reference "urn:veeam:HierarchyRoot:bcbe8d35-fca9-440d-a55d-e1480e8a2de4""
Is the hierarchyref that I use correct?
Thanks in advance,
Luc