cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13728
Views
45
Helpful
4
Comments
rsantoso
Level 1
Level 1

 

I. Introduction

 

In this article, we’re going to explore on how to create a single ACI End Point Group (EPG) using Postman.

 

II. Method to Find the EPG Object

 

This is the simple way on how to find the ACI EPG Object.

 

1. Open the API Inspector

 

On the top right of your APIC, click Settings > Show API Inspector

1.png

 

Once you click this, the pop-up window display API Inspector

 

2.png

 

2. Create a sample EPG under the Application Profile (AP)

In this example, we're creating EPG sample with the BD sample.

 

3.png

 

3. Using the API Inspector we search on POST command

 

4.png

Here we find the method, the content of the url and the payload.

 

4. With the POST command we extract the URL and the Payload

 

Once you extracted the information from the API Inspector, you can copy and paste it to your Postman.

 

In this example, I'm creating the EPG-sample under the tenant 'rsantoso' and under the application profile 'rsantoso-ap'.

 

Here in my example:

 

POST      https://10.10.10.10/api/node/mo/uni/tn-rsantoso/ap-rsantoso-ap/epg-EPG-sample.json

Payload:

{
  "fvAEPg": {
     "attributes": {
       "dn": "uni/tn-rsantoso/ap-rsantoso-ap/epg-EPG-sample",
       "name": "EPG-sample",
       "rn": "epg-EPG-sample",
       "status": "created"
     },
     "children": [{
       "fvRsBd": {
         "attributes": {
           "tnFvBDName": "BD-sample",
           "status": "created,modified"
         },
         "children": []
       }
     }]

  }
}

 

The IP Address 10.10.10.10 here is an example, you'll find the IP address of your APIC accordingly.

The highlighted bold here is the value that you can change accordingly to create EPG with different name and associated BD.

 

 

III. Using Postman to Create the EPG Object

 

1. Enter the information to the Postman Request

 

Using the previous method explain in point II.4, enter the information to the Postman Request

 

In this example, we still use the same EPG name EPG-sample with the associated BD-sample.

You can delete this EPG first before sending this Postman Request to make sure that the Postman works and can create the EPG-sample.

 

Once you verified that the Postman works on creating the EPG. You can modify the value on the Payload to correspond to the new EPG name that you want to create.

 

5.png

 

Please note: to login to the APIC before requesting to create the EPG Object. Otherwise you'll receive response 403 unauthenticated. Please refer to the article Part1 on log in to APIC.

 

2. Result

You'll find the EPG recreated using Postman.

 

6.png

 

Comments
Rick1776
Level 5
Level 5

Thanks for sharing. Awesome write up.

rsantoso
Level 1
Level 1

Thanks Rick for the feedback, I've just write another article on ACI Automation Part 3 - ACI with Postman on Configuring Multiple EPG. Hope this can be helpful.

Rick1776
Level 5
Level 5

Thanks I’ll check it out.

excellent ..thank you

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking for a $25 gift card