SharonTools

Cisco ACI Automation via REST API

This is a web site i created at my lab in order to automate Cisco ACI configuration via REST API

For example: Configuring server port:

The web site is running in Ubuntu server with Apache2 and was developed in PHP using NetBeans IDE

_

A demo:

The source code:

First we need to find the URI of the REST API call we wants

We can do it via the API inspector

Then we can test the code

(for example Get all the VRFs from tanent SDDC) :

Will return an array of VRFs: (The Apic returns JESON, array I convert it to PHP array)

And then i parsed the returned array and showed it at the browser inside a table using HTML

Configuring the Apic

I prefer to send to the Apic XML data with all the parameters i wants to configure,
the easiest way to find the current format is to save an object from the Apic GUI and open it with Internet explorer (Yes, this is not a mistake :), because IE by default interpreted XML data)

_

Summery

Automation with Cisco ACI is Easy and works good

_

Exit mobile version