03-25-2019 05:56 AM - edited 03-25-2019 06:06 AM
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!
12-23-2020 02:46 AM
have you solved it? can share the solution?
01-04-2021 05:01 AM - edited 01-04-2021 05:27 AM
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
01-04-2021 09:52 PM - edited 01-04-2021 10:20 PM
do you have the API url?
01-04-2021 10:32 PM
01-07-2021 05:27 AM
Hi Kris
Query the fvAPathAtt managed object:
moquery -c fvAPathAtt or via API GET /api/class/fvAPathAtt.json
HTH
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide