cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1266
Views
0
Helpful
4
Replies

Wireless Restconf GET wireless client sessions all or specific

aland
Level 1
Level 1

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'
},

4 Replies 4

aland
Level 1
Level 1

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.

Rich R
VIP
VIP

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/

 

 

Mubasshir
Level 1
Level 1

How did you enable RESTCONF on the WLC? Can you share any reference documentation?

conf t
restconf
end

https://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/8-8/b_c9800_programmability_telemetry_dg.html#id_89638

Review Cisco Networking for a $25 gift card