09-15-2020 05:49 AM
I am relatively new to DEVNET and am working on setting up some automation.
Because of the switch environment it is essential for me to get configuration info for a specific port.
I have built a query:
"https://x.x.x.15/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet"
and get the following response:
... etc. (the rest isn't important, let it suffice to say that I see every GigabitEthernet port.)
The documentation that I read say that if I build the query to read:
https://x.x.x.15/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1/0/1
I should see just the 1/0/1 interface in the output. This does not happen, I get:
https://x.x.x.15/restconf/data/Cisco-IOS-XE-native:native/interface/Vlan=13
Any thoughts as to what I am doing wrong?
Thanks and Be Well
Solved! Go to Solution.
09-15-2020 07:15 AM
Hello,
to query interface GigabitEthernet1/0/1, use the syntax below:
https://x.x.x.15/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1%2F0%2F1
09-15-2020 07:15 AM
Hello,
to query interface GigabitEthernet1/0/1, use the syntax below:
https://x.x.x.15/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1%2F0%2F1
09-15-2020 07:27 AM
Excellent. Thanks for your quick response. That was the fix!!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide