06-21-2021 06:53 AM
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?
Solved! Go to Solution.
06-21-2021 08:20 AM - edited 06-21-2021 08:26 AM
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
06-21-2021 06:58 AM
@SIMMN : Did you check this one
https://github.com/datacenter/aci-examples/commit/b28c49681092025457cf1a790b6df2960e637f11
06-21-2021 07:50 AM
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.
06-21-2021 08:20 AM - edited 06-21-2021 08:26 AM
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
06-21-2021 08:38 AM
Thanks! Will give them a try.
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