cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3278
Views
0
Helpful
5
Replies

ACI get EPGs deployed on ports

kris11
Level 1
Level 1

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
Level 1
Level 1

have you solved it? can share the solution?

Alexander09
Level 1
Level 1

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
Spotlight
Spotlight

Hi Kris

 

Query the fvAPathAtt managed object:

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

 

HTH

 

Save 25% on Day-2 Operations Add-On License