cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

284
Views
5
Helpful
1
Replies
3bruno
Beginner

Looking for all interfaces from ACI nodes from API

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.

 

1 REPLY 1
bigevilbeard
Cisco Employee

@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.

Create
Recognize Your Peers
Content for Community-Ad