cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
184
Views
5
Helpful
2
Replies
Noel Cantenot
Beginner

filtering on value

Hello,

I wrote the following request to get the list of Tengig interface on a catalyst 9K:

https://10.200.1.1/restconf/data/Cisco-IOS-XE-native:native/interface/TenGigabitEthernet?fields=name;description

 

The reply is like :

 

{
"Cisco-IOS-XE-native:TenGigabitEthernet": [
{
"name": "1/0/1",
"description": "*** BB - ETH - Marseille - $via Orange Media Cloud ***"
},{
"name": "1/0/10",
"description": "*** BB - ETH - MONACO - $via Orange Media Cloud ***"
},{
"name": "1/0/11",
"description": "*** BB - ETH - RENNE - $via Orange Media Cloud ***"
},...] }}

 

My question is simple : Is it possible to specify one the request that I want the result to be filtered on name=1/0/11 in order to receive only 1 item ?

 

Thanks.

 

2 REPLIES 2
Daniel Schlifka
Beginner
Noel Cantenot
Beginner

Actually, my request is more generic than only the interface name:

 

With URL like :


https://10.200.1.1:443/restconf/data/IPMROUTE-STD-MIB:IPMROUTE-STD-MIB/ipMRouteTable/ipMRouteEntry?fields=ipMRouteGroup;ipMRouteSource;ipMRouteInIfIndex;CISCO-IPMROUTE-MIB:ciscoIpMRouteBps

wihch returns:

{
"IPMROUTE-STD-MIB:ipMRouteEntry": [
{
"ipMRouteGroup": "224.0.1.40",
"ipMRouteSource": "0.0.0.0",
"ipMRouteInIfIndex": 0,
"CISCO-IPMROUTE-MIB:ciscoIpMRouteBps": 0
},
{
"ipMRouteGroup": "238.1.3.1",
"ipMRouteSource": "10.42.5.25",
"ipMRouteInIfIndex": 65,
"CISCO-IPMROUTE-MIB:ciscoIpMRouteBps": 36403536
},...


is it possible to filter on "ipMRouteGroup" value ?

 

Content for Community-Ad

This widget could not be displayed.