cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6268
Views
10
Helpful
2
Replies

CISCO REST API for configuring cat9k switches

mohanconnects
Level 1
Level 1

Hello,

 

I am looking for REST API documentation for cat9k switches for achieving below functionalities.

 

  • Configure switches[Assign IP, Assign routing policy etc]
  • GET switch config details[Get interface details, show version, show ip route, etc..]

 

Do CISCO provide APIs for configuring and retrieving info from switches, pls share if any official documentaion.

 

platform:

OS: CAT9K_IOSXE

 

Thanks,

Mohan

 

 

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

here is the good presentation start with :

 

https://www.ciscolive.com/c/dam/r/ciscolive/apjc/docs/2018/pdf/BRKRST-2673.pdf

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

omz
VIP Alumni
VIP Alumni

Hi 

What are you using to query the api? python, postman .. ansible? I would suggest having a look at ansible.

Have a look at below links - 

https://developer.cisco.com/docs/

https://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html#ios

Cisco promotes RESTCONF more than the REST api. 

https://github.com/CiscoDevNet/restconf-examples

 

Hope it helps.