Skip to content

Commit

Permalink
Merge pull request #21 from aruba/central-python-workflows
Browse files Browse the repository at this point in the history
Updating Repo to Central python workflows
  • Loading branch information
alvinc13 committed Aug 1, 2023
2 parents c87dab9 + 63260be commit 586059b
Show file tree
Hide file tree
Showing 207 changed files with 2,666 additions and 31,324 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
device_onboarding/env/
msp_customer_onboarding/env/
device_provisioning/env/
61 changes: 25 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,36 @@
# central-examples-only
# central-python-workflows

This repository contains code samples for Aruba Central.
- [Custom Dashboard](customized-dashboard/)
This repository contains Python based workflows & code samples that utilize [Aruba Central's automation capabilities](https://developer.arubanetworks.com/aruba-central/docs/aruba-central-extensibility) and the Python SDK [pycentral](https://pypi.org/project/pycentral/)

- [REST API Python Libraries and Scripts](rest-api-python-scripts/)
## Aruba Central REST APIs
- [Device Provisioning](device_provisioning/)\
![Device Provisioning Demo Workflow](device_provisioning/media/workflow_overview.png)
- [Device Onboarding](device_onboarding/)\
![Device Onboarding Demo Workflow](device_onboarding/media/workflow_overview.png)
- [MSP Customer Onboarding](msp_customer_onboarding/)\
![Device Onboarding Demo Workflow](msp_customer_onboarding/media/workflow_overview.png)
- [Inventory to Excel Workflows](inventory_to_excel/)\
This workflow creates excel files populated with device details from devices currently in inventory.
- [Postman Collections](Postman-Collections/)\
Postman is a popular tool to test and make HTTP Requests to API endpoints. This folder contains Postman collections in JSON format for Aruba Central REST APIs.

- [Streaming API Websocket Client Application](streaming-api-client/)

- [Webhook Client application](webhooks/)

## Aruba Central Custom Dashboard

This folder contains a sample code for building your own Aruba Central Dashboard using the API Gateways
[Aruba Central Custom Dashboard](customized-dashboard/)


### Instructions for using the "customized-dashboard" folder

1. Clone the repo
2. `cd customized-dashboard/`
3. `npm install`
4. `ng serve`. This should have your web-app up and running
5. Edit the file `vi src/config/service.config.ts` and provide a valid App URL and access token. Save this file.
6. Open 'localhost:4200' in your browser to see the home page

## Aruba Central REST API Python Sample Scripts

[rest-api-python-scripts/](rest-api-python-scripts/)

This folder contains sample python libraries and scripts to make API Requests to Aruba Central. REST APIs are based on request-response model.
Refer to the Aruba Central's API Swagger documentation page (under `ACCOUNT HOME -> GLOBAL SETTINGS -> API GATEWAY -> APIs`) for the list of available APIs.
To manage REST APIs in Aruba Central, go to `MAINTAIN -> ORGANIZATION -> PLATFORM INTEGRATION -> REST API`.\
Learn more about Aruba Central REST APIs [here](https://developer.arubanetworks.com/aruba-central/docs/api-getting-started).

## Aruba Central Streaming API

[streaming-api-client/](streaming-api-client/)

This folder contains sample websocket client application based on python programming language.
- [Streaming API Websocket Client Application](streaming-api-client/)\
The sample script in this section contains sample websocket client application based on python.
The sample python script would establish a websocket connection and decode the google protobuf message to human readable format.

To manage Streaming APIs in Aruba Central, go to `MAINTAIN -> ORGANIZATION -> PLATFORM INTEGRATION -> STREAMING`.\
Learn more about Aruba Central Streaming APIs [here](https://developer.arubanetworks.com/aruba-central/docs/streaming-api-getting-started).

## Aruba Central Webhooks

[webhooks/](webhooks/)
- [Webhook Client application](webhooks/)\
The sample script in this section would start a HTTP(s) client to receive Alerts from Aruba Central via webhooks.

This folder contains sample scripts and documentation for Aruba Central Webhooks and Alerts. The sample script in this section would start a HTTP(s) client to receive Alerts from Aruba Central via webhooks. To manage Webhooks in Aruba Central, go to `ACCOUNT HOME -> GLOBAL SETTINGS -> WEBHOOKS`.
To manage Webhooks in Aruba Central, go to `MAINTAIN -> ORGANIZATION -> PLATFORM INTEGRATION -> WEBHOOKS`.\
Learn more about Aruba Central Webhooks [here](https://developer.arubanetworks.com/aruba-central/docs/webhooks-getting-started).

For more information about Aruba Central, [refer here](https://help.central.arubanetworks.com/latest/documentation/online_help/content/home.htm)
For more information about Aruba Central, [refer here](https://www.arubanetworks.com/techdocs/central/latest/content/home.htm)
13 changes: 0 additions & 13 deletions customized-dashboard/.editorconfig

This file was deleted.

46 changes: 0 additions & 46 deletions customized-dashboard/.gitignore

This file was deleted.

27 changes: 0 additions & 27 deletions customized-dashboard/README.md

This file was deleted.

127 changes: 0 additions & 127 deletions customized-dashboard/angular.json

This file was deleted.

12 changes: 0 additions & 12 deletions customized-dashboard/browserslist

This file was deleted.

32 changes: 0 additions & 32 deletions customized-dashboard/e2e/protractor.conf.js

This file was deleted.

23 changes: 0 additions & 23 deletions customized-dashboard/e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions customized-dashboard/e2e/src/app.po.ts

This file was deleted.

13 changes: 0 additions & 13 deletions customized-dashboard/e2e/tsconfig.json

This file was deleted.

Loading

0 comments on commit 586059b

Please sign in to comment.