Cisco APIC Rest API JSON Query
The below example will help you in querying specific JSON Objects.
PreReq: Make sure you have the token for this query.
Consider the below GET query:
https://<apic-ip>/api/node/mo/uni/tn-<tenant-name>.json?query-target=subtree&target-subtree-class=<mo-1><mo-2>
You can pass the required MO's (listed below) in the target-subtree-class.
fvTenant - Tenant
fvAp - App Profile
fvAEPg - EPG
fvRsBd - BD
fvCtx - VRF
vzBrCP - Contract
vzSubj - Subject
vzFilter - Filter
l2extOut - Ext. Bridged Networks
l3extOut - Ext. Routed Networks
PreReq: Make sure you have the token for this query.
Consider the below GET query:
https://<apic-ip>/api/node/mo/uni/tn-<tenant-name>.json?query-target=subtree&target-subtree-class=<mo-1><mo-2>
You can pass the required MO's (listed below) in the target-subtree-class.
fvTenant - Tenant
fvAp - App Profile
fvAEPg - EPG
fvRsBd - BD
fvCtx - VRF
vzBrCP - Contract
vzSubj - Subject
vzFilter - Filter
l2extOut - Ext. Bridged Networks
l3extOut - Ext. Routed Networks
Comments
Post a Comment