How can I see interface information per device using REST?
Dx NetOps Performance Management any version
POST against http://DA:8581/rest/ports/filtered/
<FilterSelect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="filter.xsd">
<Filter>
<And>
<DeviceComponent.IsFiltered type="EQUAL">true</DeviceComponent.IsFiltered>
<DeviceComponent.DeviceItemID type="EQUAL">DEVICE_ITEM_ID</DeviceComponent.DeviceItemID>
<Not>
<DeviceComponent.DeviceItemID type="EQUAL">DA_ITEM_ID</DeviceComponent.DeviceItemID>
</Not>
</And>
</Filter>
<Select use="exclude" isa="exclude">
<Port use="exclude">
<Alias use="include"/>
<AdminStatus use="include"/>
<OperStatus use="include"/>
</Port>
<DeviceComponent use="exclude">
<IsFiltered use="include"/>
<DeviceItemID use="include"/>
</DeviceComponent>
<Item use="exclude">
<Name use="include"/>
</Item>
</Select>
</FilterSelect>
This will show interface information for a particular device (DEVICE_ITEM_ID). It will show Alias, Admin Status, Oper Status, and will show if the port is filtered or not
DA_ITEM_ID and DEVICE_ITEM_ID can be obtained for monitored items management page
We define the DA_ITEM_ID so it can be ignored
The above syntax gives you filtered interfaces.
Change <DeviceComponent.IsFiltered type="EQUAL">true</DeviceComponent.IsFiltered> from true to false to get the other interfaces or just remove the filter all together to see everything for a device