This is an archive version of the document. To get the most up-to-date information, see the current version.

Lookup Service

In this article

    In addition to the query service, Veeam Backup Enterprise Manager exposes the lookup service via its RESTful API. The lookup service lets the client facilitate search for objects in the virtual infrastructure hierarchy: hosts, VMs, clusters, resource pools, folders and so on.

    The lookup service is specifically targeted at retrieving resource representations of virtual infrastructuture objects and references to virtual infrastructure objects. Object references are required for some requests that refer to a specific node in the virtual infrastructure hierarchy. For example, if you want to add some VM to the backup job, you need to provide a reference to this VM when sending a request for job editing. Similarly, if you want to assign a restore scope to an account having a specific role in Veeam Backup Enterprise Manager, you need to provide a reference to the VM or VM container to which this account should have access.

    The resource representation of the lookup service looks in the following way:

    <LookupSvc xmlns="http://www.veeam.com/ent/v1.0" Type="LookupService" Href="http://localhost:9399/api/lookupSvc">
     <Links>
       <Link Rel="Up" Type="LogonSession" Href="http://localhost:9399/api/logonSessions/764a855e-56a3-4cb1-a80a-cb5693b6527e" />
       <Link Rel="Down" Type="HierarchyItemList" Href="http://localhost:9399/api/lookup?host=urn%3aveeam%3aHierarchyRoot%3a3e7fea0c-e92d-4459-9842-0304df34c644&name=*&type=Vm" />
       <Link Rel="Down" Type="HierarchyItemList" Href="http://localhost:9399/api/lookup?host=urn%3aveeam%3aHierarchyRoot%3a195c7259-8d89-4f6e-9098-25ee1f432669&name=*&type=Vm" />
       <Link Rel="Down" Type="HierarchyItemList" Href="http://localhost:9399/api/lookup?host=urn%3aveeam%3aHierarchyRoot%3a1b07c378-bb71-445d-8652-50cead6309e1&name=*&type=Vm" />
       <Link Rel="Down" Type="HierarchyItemList" Href="http://localhost:9399/api/lookup?host=urn%3aveeam%3aHierarchyRoot%3af27785dc-237e-4bea-8bfd-ad131c50934e&name=*&type=Vm" />
       <Link Rel="Down" Type="HierarchyItemList" Href="http://localhost:9399/api/lookup?host=urn%3aveeam%3aHierarchyRoot%3afa099d3b-7376-49b1-884c-bb6fa47c7b1e&name=*&type=Vm" />
     </Links>
    </LookupSvc>

    The lookup service resource representation contains a set of links to hierarchy roots — VMware and Hyper-V hosts added to Veeam backup servers that are managed by Veeam Backup Enterprise Manager. By following a link from the resource representation, the client can get a list of VMs that reside on a specific VMware or Hyper-V host.

    The resource representation of the lookup service provides links to hosts and VMs only and may be used for browsing. To obtain a reference to a specific virtual hierarchy object, the client must construct a query string to the lookup service in a specific format.

    Lookup Service Tip:

    The reference to the virtual infrastructure object can also be constructed manually. To learn more, see Appendix A. Constructing HierarchyObjRefType.