Skip to content

A flask web based application that leverages pycentral

License

Notifications You must be signed in to change notification settings

aruba/flask_aruba_central

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-aruba-central

Very simple flask API examples

Installation:

must have git installed

Install Git

Must have docker and docker compose installed.

Install Docker Desktop

Works well with docker-desktop for macbook

% git clone https://github.com/xod442/flask-aruba-central.git
% cd flask-aruba-central
flask-aruba-central1%  docker-compose up -d

Test api directory

flask-aruba-central/tests

Edit pycentral central_info.py file ==> utility/central_info.py

It is necessary to fill out the required fields in this dictionary. If you do not, there will be great sadness. :-)

central_info = {
           "username": "[email protected]",
           "password": "*****************",
           "client_id": "XXxXXXXXXXXXXX",
           "client_secret": "XXxXXXXXXXXXXX",
           "customer_id": "XXxXXXXXXXXXXX",
           "base_url": "https://apigw-uswest4.central.arubanetworks.com",
           "refresh_token": "XXxXXXXXXXXXXX"
       }

Get the values from Aruba Central API page [Here is some very good documentation on what to do]: (https://developer.arubanetworks.com/aruba-central/docs/api-getting-started).