cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2225
Views
2
Helpful
3
Replies

Create a VPC and EPG associations with existing info in APIC

odahlqvist
Level 4
Level 4

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

3 Replies 3

hapresto
Cisco Employee
Cisco Employee

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. 

Screen Shot 2017-10-16 at 7.57.26 PM.png

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.

You can inspect API calls that were made through CLI in the following log: /var/log/dme/log/access.log