03-08-2023 09:26 AM
Hi,
We just enabled restconf on our 9800s and authentication works when accessing /restconf/data?fields=ietf-yang-library:modules-state/module
I'm more familiar with rest api vs restconf, I see the module "name: 'Cisco-IOS-XE-wireless-client-oper'," but I'm not exactly following what I need to do with this module, its not very clear. I keep getting "ietf-restconf:errors", I'm basically guessing on the URIs.
I'm using nodejs & axios for the http call, can anyone share an example URI related to a GET for a wireless controller?
{
name: 'Cisco-IOS-XE-wireless-client-oper',
revision: '2022-07-01',
schema: 'https://x.x.x.x/restconf/tailf/modules/Cisco-IOS-XE-wireless-client-oper/2022-07-01',
namespace: 'http://cisco.com/ns/yang/Cisco-IOS-XE-wireless-client-oper',
'conformance-type': 'implement'
},
03-08-2023 09:49 AM
Ugh...I think I figured it out with "https://x.x.x.x:443/restconf/data/Cisco-IOS-XE-wireless-client-oper:client-oper-data"
This is giving me some good data to work with.
03-10-2023 09:39 AM
The models are all defined at https://github.com/YangModels/yang/tree/main/vendor/cisco/xe
Lots of info on Cisco devnet site and various Cisco Live presentations and elsewhere.
Start by checking out https://developer.cisco.com/yangsuite/
then look around the rest of the site.
Specifically to build requests as you're trying to do: https://blog.networktocode.com/post/using-cisco-yang-suite-to-build-restconf-requests/
05-01-2024 04:00 AM
How did you enable RESTCONF on the WLC? Can you share any reference documentation?
05-01-2024 05:40 AM - edited 05-01-2024 05:41 AM
conf t
restconf
end
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