I would like to know how I can build a query to fetch the attributes of a link from the link_id attribute (UcmdbId class) I am getting after doing an HistoryQuery.
I am only interested into attributes of a link that is created/deleted and it seems it is not possible to build a topology query to get them. I cannot just query the end1_id TopologyCI since I am seeking for a relation that may no longer exist. The information I have from the HistoryQuery is the link_id, the end2_id and obviously I have the end1_id since this is how I build a query to get the link_id into the History.
The documentation is very mute on everything related to History, HistoryQuery. I tried the following Topology Query, but it returns nothing:
Where ids is a collection (Set) of UcmdbId matching the link_id(s) of the relations I am interested in. The type "connection" is supposed to map to the Relation's type in uCMDB for the type of links I am querying. qdef is a QueryDefinition object.
Here is a sample output from the history query for one record and link_id I am interested in: