search cancel

Using Get tunneling with REST to filter results from the Data Aggregator


Article ID: 35733


Updated On:


CA Infrastructure Management CA Performance Management - Usage and Administration


Get Tunneling is where we "Post" some XML to the WebServices on the Data Aggregator which defines a "query". This query specifically includes or excludes data to ensure only the data you want returned is actually returned by the data aggregator web services. This can be useful when you have a large number of items and want to restrict the data being returned by the system to a specific subset to both speed up the query AND simplify the data response.

This applies to ALL web services under to <DA_HOST>:8581/rest endpoint


Release: IMDAGG99000-2.5-Infrastructure Management-Data Aggregator



1. You must use the POST method to send XML to the following endpoint: <DA_HOST>:8581/rest/<specific_endpoint>/filtered
   The format of the XML sent is very specific

2. The GetTunneling XML that you post has two distinct sections.

The first section, called the "Filter" section, is used to filter or restrict the number of ITEMs returned from the web service call. You can either specify the IDs of the items you want to be returned directly, OR specify a dynamic list by querying specific attributes and comparing them to desired values.

The second section, called the "Select" section, is used to filter or restrict the attributes returned for ALL desired items, allowing your returned XML to have simple detail such as an ID, or as much detail as possible including all attributes.

In both cases, it is important to know that the more items, and the more attributes you include, the longer it will take to render, and the more the DA will be impacted. To ensure that the DA is not overloaded, there is a restriction on the number of items/attributes that can be returned.

Example XML:

The following XML selects all communication profiles (i.e. SNMP profiles) which have "SNMP" in the name OR ( are ranked 3rd or lower AND have an SNMP port of 161). Once found, only the CommunityName, and the generic CommunicationProfile details are returned.

<FilterSelect xmlns:xsi="" xsi:noNamespaceSchemaLocation="filter.xsd">
            <CommunicationProfile.ProfileName type="CONTAINS">SNMP</CommunicationProfile.ProfileName>
               <CommunicationProfile.Rank type="LESS_OR_EQUAL">3</CommunicationProfile.Rank>
               <SNMPv1Profile.PortNumber type="EQUAL">161</SNMPv1Profile.PortNumber>
    <Select use="exclude" isa="exclude">
       <SNMPv1Profile use="exclude">
          <CommunityName use="include"/>
       <CommunicationProfile use="include" />

To get the attributes available see:


For example the above example for CommuncationProfile


If you look at the rest documentation for an endpoint you will see the Attributes are prefaced by the section they are in.


In the filter section, they would be referenced as seen Section.Attribute

            <CommunicationProfile.ProfileName type="CONTAINS">SNMP</CommunicationProfile.ProfileName>

In the select section, you break out each section and reference the Attributes in that section to limit to those attributes only:

       <SNMPv1Profile use="exclude">
          <CommunityName use="include"/>