cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1046
Views
6
Helpful
2
Replies

Looking for all interfaces from ACI nodes from API

3bruno
Level 1
Level 1

How can I get all interfaces from a specific Cisco ACI Node (Leaf and Spine) from API?

 

I can get all interfaces from all nodes with the following URL, but not for a specific node.

 

/api/node/class/l1PhysIf.json?&order-by=l1PhysIf.modTs|desc

 

Can you please help me?

 

Thank you.

 

2 Replies 2

@3bruno In an API operation to access an MO on a specific node device in the fabric, the resource path consists of /mo/topology/pod-number/node-number/sys/ followed by the node component. For example, to access a board sensor in chassis slot b of node-1 in pod-1, use this URI example to get physical interface statistics

api/node/mo/topology/pod-1/node-101/sys/phys-[eth1/1].json

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Ruben Cocheno
Spotlight
Spotlight

@3bruno 

Has this been resolved?

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/