Skip to content

Commit

Permalink
Merge pull request #31 from KarthikSKumar98/central-documentation-update
Browse files Browse the repository at this point in the history
Central documentation update for v1
  • Loading branch information
KarthikSKumar98 authored Aug 8, 2023
2 parents 3754b0d + d7a3db8 commit 57aeb54
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ Now you can start making your script based on modules in pycentral or use differ
1. Gathering variables required for the package base class `ArubaCentralBase`.
* **base_url**: Go to `Account Home -> API Gateway -> APIs`. *All Published APs Table* will show URL under *DOCUMENTATION* column. Truncate this to end with '.com' E.G. 'https://apigw-prod2.central.arubanetworks.com/swagger/central/' must be truncated to 'https://apigw-prod2.central.arubanetworks.com'.
* **base_url**: You can find the base URL of the Central account's API Gateway from the table [here](https://www.arubanetworks.com/techdocs/central/latest/content/nms/api/domain_url.htm). The base URL is based on the geographical Central cluster in which the account is registered.
* **client_id** and **client_secret**: Obtain client_id and client_secret variables by creating an API Gateway client in Aruba Central. Refer the following [documentation](https://developer.arubanetworks.com/aruba-central/docs/api-gateway-creating-application-token) for more details.
At this point, create an API access token from the API Gateway WebUI as described in the above documentation or go further to collect other variables for the Python base class to create/manage access_token via **OAUTH APIs.**
* **access_token**: You can create an API access token for Aruba Central from -
* [Aruba Central UI](https://developer.arubanetworks.com/aruba-central/docs/api-gateway-obtaining-access-tokens#obtain-access-token-via-web-ui)
* [OAuth APIs](https://developer.arubanetworks.com/aruba-central/docs/api-oauth-access-token)
* **customer_id**: Obtain the **customer_id** by clicking on the figure icon on top right corner of Aruba Central WebUI.
Expand Down Expand Up @@ -85,14 +87,12 @@ Now you can start making your script based on modules in pycentral or use differ
To obtain a list of implemented modules and its documentation refer the [pycentral module documentation](https://pycentral.readthedocs.io/en/latest/).
5. **Using pycentral workflows**: Workflows are used to achieve an automation use-case which generally involves multiple API calls or dealing with scale and repetitive tasks with ease. Refer the sample script using workflows [sample_scripts/pycentral_workflow_sample.py](sample_scripts/pycentral_workflow_sample.py).
Check out the [central-python-workflows](https://github.com/aruba/central-python-workflows) repository to check out workflows that utilize the Pycentral library.
5. **Workflows**: Workflows are used to achieve an automation use-case which generally involves multiple API calls or dealing with scale and repetitive tasks with ease. Check out the [central-python-workflows](https://github.com/aruba/central-python-workflows) repository to check out workflows that utilize the Pycentral library.
## Documentation:
* **Python package documentation:** [pycentral module documentation](https://pycentral.readthedocs.io/en/latest/)
* **Use-Cases and Workflows:**
- [Aruba Developer Hub](https://developer.arubanetworks.com/aruba-central)
- [Aruba Developer Hub](https://developer.arubanetworks.com/aruba-central/docs/python-getting-started)
- [central-python-workflows](https://github.com/aruba/central-python-workflows)
## Note:
Expand Down
30 changes: 30 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# 1.0.0

## Notable Changes
* Added wait & retry logic when Aruba Central's Per-Second API rate-limit is hit
* Added log messages when Aruba Central's Per-Day API Rate-limit is exhausted
* Added new module for device_inventory APIs
* Added WLAN class to configuration module
* Merged PRs and resolved GitHub issues:
- PR #16 : Fixing multiple devices to site bug
- PR #19 : Added ability to associate/unassociate multiple devices to a site
- PR #20 : Added New Device Inventory Module
- PR #22 : Added Rate Limit Log Messages
- PR #23 : Fixed Rate Limit Bugs
- PR #25 : Licensing API Bug Fixes
- PR #28, #29 : Added WLAN class to Configuration module

## Known Issues
* No known issues.

* # 0.0.3

## Notable Changes
* Quick fix on deprecated pip module usage.
* Merged PRs and resolved GitHub issues:
- PR #10 : remove dep on _internal function from pip module
- Issue #9: pip 21.3 just posted 2 days ago breaks pycentral in the config file and passed to pycentral

## Known Issues
* No known issues.

# 0.0.2

## Notable Changes
Expand Down
Binary file modified pictures/customer-id.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions sample_scripts/pycentral_workflow_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,4 @@

# Get instance of ArubaCentralBase from the central_filename
from pycentral.workflows.workflows_utils import get_conn_from_file
central = get_conn_from_file(filename=central_filename)

# Rename AP using the workflow `workflows.config_apsettings_from_csv.py`
from pycentral.workflows.config_apsettings_from_csv import ApSettingsCsv
ap_workflow = ApSettingsCsv(is_dhcp_ip=True)
ap_workflow.ap_settings_csv(conn=central, csv_filename=csv_filename)
central = get_conn_from_file(filename=central_filename)

0 comments on commit 57aeb54

Please sign in to comment.