10-16-2017 06:24 AM
Hi
in the APIC we can do
Show Run vpx context leaf XYZ XYZ
interface vpc XXXXX
Switchport trunk allowed vlan zzz tenant zz application zzzz epg zzzzz
Can we do this via rest like Postman ?, how can we use this command in Rest , the case is that CLI is not supported and GUI at the same time
10-16-2017 07:58 PM
The REST API for APIC is not a wrapper for the CLI commands you would run. To perform the equivalent configuration to the commands specified would involve making the appropriate "POST" REST API call to the APIC to assign the configuration policy. An easy way to identify what the API calls are, would be to make the configuration via the APIC GUI after enabling the API Inspector. Then you can view the REST API calls for all actions taken within the GUI.
10-17-2017 12:08 AM
HI
Thanks for answer, But the API Inspector is "just" concerning the Code in the APIC GUI, I have not seen the corresponding function for creating the VPC and the EPG on the trunk. the CLI is making it visible to you by collecting diffrent parts of the object model so it would be great if there was a API inspector for the CLI command and that command could be used , the reason is that the CLI is not compatible with the Advanced GUI as stated in the manual.
06-17-2018 10:55 AM
You can inspect API calls that were made through CLI in the following log: /var/log/dme/log/access.log
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