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

Cisco ASA REST API Network Interfaces

Denis Orlov
Level 1
Level 1

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

api_1.png

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

api_2.png

Please, help.

4 Replies 4

Denis Orlov
Level 1
Level 1

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.

richard-ziga
Level 1
Level 1

Does anyone know what the link to the ASA API documentation shown above is?

https://<ASA_IP_Address>/doc

ohhh.

captain obvious

very powerfull answer =)))

Review Cisco Networking for a $25 gift card