Getting containers from capabilities IOS-XE with RESTCONF
Long time lurker first time poster here.
I'm doing my DevNet Associate training and have come up against a brick wall when trying to determine how to generate the full URIs to GET/POST (more GET at this point! ha) on IOS-XE when using RESTCONF. I have queried the YANG capabilities using /restconf/data/netconf-state/capabilites and have returned a large list. When trying to query any of them I get an error - 'uri keypath not found'. I know from my training material that there is a URI for /restconf/data/ietf-interfaces:interfaces which returns data. However, without knowing that ietf-interfaces has a container of :interfaces, how would I generate a URI, for example for ietf-ipv4-unicast-routing or /Cisco-IOS-XE-acl?
I know of YANG Catalog and I have been able to locate both of those capabilities, but am wondering how do/would you or I determine the full URI? I.e. would you go to YANG catalog and find the module and locate the capabilities - or is there a way to determine it via a query?
Thanks. Both of those PDFs are really useful! I think you're right, there probably isn't an easy way to see what containers exist to query. For now I'm sticking to using YANG-Explorer. Cheers for the reply.
Hi, how to execute linux-commands (which are executeable directly in the guestshell) from IOS-XE sample :[guestshell@guestshell ~]$ cat test.txt | grep SmartSmart Licensing Status: Smart Licensing is DISABLED[guestshell@guestshell ~]$ exit ...
Hi Everybody! I am trying to get the configuration from a nexus 9000v virtualized in my home lab, I am always getting this error. Exception has occurred: RPCError
File "C:\4_4 Modernizing_Netwo...
I'm able to pull the topology using the API GEThttps://n.n.n.n/api/node/mo/topology/pod-1.json?query-target=children&target-subtree-class=fabricNode(after authenticating and getting a cookie, of course) But the version field is empty. I don't see...