Creating an application profile and EPG using REST
We'll use the same process as before.Â
How to do it...
- Use the same URL as the previous recipes.
- Use the following code:
<fvTenant name="TenantA"> <fvAp name="TenantA_AP1"> <fvAEPg name="TenantA_EPG1"> <fvRsBd tnFvBDName="TenantA-BD"/> </fvAEPg> </fvAp> </fvTenant>
- Press Send.
How it works...
From the APIC GUI, we should see the (new) application profile, along with the EPG:
We can also put all of this in one code segment:
<fvTenant name="TenantA"> <fvCtx name="TenantA_VRF"/> <fvBD name="TenantA-BD"> <fvSubnet ip="10.0.0.1/24"/> <fvRsCtx tnFvCtxName="TenantA_VRF"/> </fvBD> <fvAp name="TenantA_AP1"> <fvAEPg name="TenantA_EPG1"> <fvRsBd tnFvBDName="TenantA-BD"/> </fvAEPg> </fvAp>