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

821
Views
0
Helpful
5
Replies
kris11
Beginner

ACI get EPGs deployed on ports

I try to compose an API call that retrieves all deployed EPGs on the ports of the fabric.

I reverse engineered from the web GUI that is can be done for a single port with this call:

https://{apic_address}/api/node/mo/{port_dn}.json?rsp-subtree-include=full-deployment&target-node=all&target-path=l1EthIfToEPg

But this is not very suitable for a fabric with a lot of ports. Is there a way to get this information for _all_ the ports in one single REST call?

I see that the real information is stored in a pconsResourceCtx record.

Anyway, I cannot get anything from the APIC nevertheless I try to retrieve pconsResourceCtx or l1EthIfToEPg entries.

Any hints?

Many thanks in advance!

 

5 REPLIES 5
d4rknight
Beginner

have you solved it? can share the solution?

Alexander09
Beginner

Via cli on the apic you could do moquery -c fvStPathAtt | egrep ? So you might look into the class fvStPathAtt for creating your rest api call.

cheers

--
Alexander Deca

do you have the API url?

Hi ,

https:///api/node/class/fvStPathAtt.json?&order-by=fvStPathAtt.modTs|desc
This will give you all the static path bindings.

cheers
--
Alexander Deca
Marcel Zehnder
Participant

Hi Kris

 

Query the fvAPathAtt managed object:

moquery -c fvAPathAtt or via API GET /api/class/fvAPathAtt.json

 

HTH

 

Content for Community-Ad