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.
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="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
<Select use="exclude" isa="exclude">
<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
In the select section, you break out each section and reference the Attributes in that section to limit to those attributes only: