12-13-2017 04:33 AM - edited 02-21-2020 06:56 AM
Hi, everybody.
I have Cisco ASA 5515X (9.8(2)) with installed REST API (REST API Agent Version 1.3.2.200)
Now I'm developing Python Class to interact with Cisco ASA.
In REST API documentation there is interface objects
Is somebody knows how can I get list of all ASA interfaces data (or available interfaces objectId's ) via REST API?
I'm trying like this (similarly as getting network objects)
https://192.168.51.254/api/interfaces/ethernet
but recieving error
Please, help.
12-13-2017 05:00 AM - edited 12-13-2017 05:02 AM
Sorry, finally I find my mistake
To get all physical interfaces info you need to use this API path
https://192.168.51.254/api/interfaces/physical/
and to get info about all existing subinterfaces you need to use this API path
https://192.168.51.254/api/interfaces/vlan/
Using above paths you can also get "objectId" of each existing interface and begin to use this "objectId" in another API methods.
I think problem is solved.
07-30-2018 09:01 AM
Does anyone know what the link to the ASA API documentation shown above is?
08-21-2018 04:39 AM
https://<ASA_IP_Address>/doc
08-21-2018 04:53 AM
ohhh.
captain obvious
very powerfull answer =)))
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