aos_api_connector
API connector for ArubaOS products
APIs supported:
- ArubaOS-S Switches
- ArubaOS-CX Switches
Usage
Every type of API has an API caller class. You can create instances of that class with at least three arguments:
- Username
- Password
- URL / IP / FQDN address of the device
data = { "url": "172.16.78.65",
"username": "admin",
"password": "Aruba123",
"api_version": "v10.04"
}
aocx_test = AOSCXAPIClient(**data)
After creating the device, use connect() to create a session. Then use the other functions to use the API. When you are finished use disconnect() to logout.
Please note that there is no syntax check!
Some parameters are case sensitive. For example, api_version, there is no check for "V7" or "v7", but only "v7" will work.
Examples
Examples can be found in the example folder.
Differences between classes
The functions between the two classes should have the same name, if they end up doing the same. So both classes have connect(), disconnect() or get_vlans() even if they are implemented differently.
Roadmap
I am working on implementing more functions and to create classes for the ClearPass and ArubaOS WLAN APIs. After that I will create workflows spanning different APIs.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aos-api-connector-0.1.0.tar.gz.
File metadata
- Download URL: aos-api-connector-0.1.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf5c5a70d34286b78f826b10f93fe7b6bcb4256a3b01a7c6f8b9baf1553e091
|
|
| MD5 |
13e3729cae96f4f1e4de8d6a90804514
|
|
| BLAKE2b-256 |
f6e0b78421773e333813adb5eb0fba219855a066f145ebc37f057c8a52d472fd
|
File details
Details for the file aos_api_connector-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aos_api_connector-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b9ff2a7ce1c30c6af221f27ec2947bf0f313712a65de3c9494481acf0f00c65
|
|
| MD5 |
ebd19ced50d8013f0a9b858a0cb7e3dd
|
|
| BLAKE2b-256 |
56eedc2494118930e18701d229a40bbd0bb4f159b5c3aac2453c487bb7d8fc6a
|