A Python wrapper around Cisco vManage API
Project description
py_viptela
A Python SDK for Cisco SD-WAN vManage API(20.6.2)
This is a wrapper around Cisco's vManage API. All endpoints in the API are implemented. There's a similar solution provided by Cisco and can be accessed from DevNet website
Also from github
There's a separate repo for a postman collection to use with vManage API. That collection included all endpoints and can be found here
-
Why another solution?
It's a great way to learn new things by building things.
-
Is it completed or a work-in-progress project?
This started as a hobby project and still in progress.
-
How can I use this?
A How-To document will be available after phase-1, which is implementing all the API endpoints, is completed.
-
Contributions?
Highly appreciated and welcome.
All Endpoints in vManage API are implemented using the vmanage.json file available through vmanage/apidocs page as a reference
How to install using pip
pip install py-viptela
How to Use
- Clone this repo into your computer.
git clone https://github.com/aatikturk/py-viptela
- Change directory to "py-viptela"
cd py-viptela
- Import vmanage module and initiate an instance, and import any api module Required parameters are as follows: host: Ip address of the vManage port: port to access vmanage username: vManage username password: vManage password
>>>from py_viptela.vmanage import Vmanage
>>>from py_viptela import api
>>>
>>>vmanage = Vmanage(host='198.18.1.10', port=443, username='admin', password='testpassword')
>>>vmanage.login()
You're ready to make requests using api endpoints.
Example: Get all users from the vManage
>>>
>>>users = api.admin.user.findUsers(vmanage)
>>>
>>>users
[{'userName': 'admin', 'locale': 'en_US', 'group': []},
{'userName': 'dclouddemo',
'description': 'Administrator',
'locale': 'en_US',
'resGroupName': 'global',
'group': ['netadmin']}]
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file py_viptela-0.2.9.8.5.tar.gz
.
File metadata
- Download URL: py_viptela-0.2.9.8.5.tar.gz
- Upload date:
- Size: 84.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9931a4653b0cf6b88588cfe14a4aa4dd2a811979aa83dcee58881a952f72aaa3 |
|
MD5 | c18c057c458af8b7ff2dc711853d5cd1 |
|
BLAKE2b-256 | 09042a2e863b3014600ed5c322484a85e8a576cb7183025fb2c65f58ed97c77c |
File details
Details for the file py_viptela-0.2.9.8.5-py3-none-any.whl
.
File metadata
- Download URL: py_viptela-0.2.9.8.5-py3-none-any.whl
- Upload date:
- Size: 192.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d689bf9ce4ad553c1e96fe912bbe87e4f653c50538a904a34c4482e75bcf9d0 |
|
MD5 | a9fa0f9055b0d5af73fdde7714884fce |
|
BLAKE2b-256 | 897a82d3a44e7193a9cceba09580cac02539b15e5cca2ece482883a3a0a4f4a1 |