cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3272
Views
0
Helpful
4
Replies

REST API call for APIC Tenants

SIMMN
Spotlight
Spotlight

Just wonder if anyone can help me with some information about API call to gather all the configuration under one particular Tenant?

 

For example, I can use the urls below to gather list of existing Tenants and the high-level info about tenant Common. But what specific URL(s), if any, I should use to get the detailed configuration information of tenant common?

https://myapic-mgmt-ip/api/class/fvTenant.xml

https://myapic-mgmt-ip/api/mo/uni/tn-common.xml

 

Any ideas?

1 Accepted Solution

Accepted Solutions

ecsnnsls
Level 1
Level 1

You can either use this,

/api/mo/uni/tn-common.xml?rsp-subtree=full&rsp-prop-include=config-only 

or this,

/api/class/uni/fvTenant.xml?query-target-filter=eq(fvTenant.name ,"common")&rsp-subtree=full&rsp-prop-include=config-only

 

View solution in original post

4 Replies 4

Thanks for the link. I do have the url and body for configuration POSTs but I am looking for the GET to obtain the existing configuration. 

ecsnnsls
Level 1
Level 1

You can either use this,

/api/mo/uni/tn-common.xml?rsp-subtree=full&rsp-prop-include=config-only 

or this,

/api/class/uni/fvTenant.xml?query-target-filter=eq(fvTenant.name ,"common")&rsp-subtree=full&rsp-prop-include=config-only

 

Thanks! Will give them a try.

Review Cisco Networking for a $25 gift card

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