Get Device list with location details from DNAC.
Project description
dnac_device_list
dnac_device_list is a Python library that makes your life easier when you want to programatically find out the location name and location id of any given device that is managed by Cisco DNA Center.
Installation
Use the package manager pip to install dnac_device_list.
pip install dnac_device_list
Usage
from dnac_device_list import device_list
token = "eyJhbRciOiJSUzI1NiIsInR5cGI6IkpXVCJ9.eyJzdWIiOiI2MTE2YmI0YWU3YjUwODZiNTLjMTI5ZjQiLCJhdXRoU291cmNlIjoiaW50ZXJuYWwiLCJ0ZW5hbnROYW1lIjoiVE5UMCIsInJvbGVzIjpbIjYxMTZiYjQ4ZTliNTA4NmI1M2MxMjlmMyJdLCJ0ZW5hbnRJZCI6IjYxMTZiYjQ4ZTliNTA4NmI1M2MxMjlmMSIsImV4cCI6MTY4ODQwMzMxMSwiaWF0IjoxNjg4Mzk5NzExLCJqdGkiOiJhNzliMjgwMC04NjdkLTRiZmQtYWJmMy02NjJiOGUzNmY4OTgiLCJ1c2VybmFtZSI6ImFkbWluIn0.hqvLkQL-07Oiwjy_RzEj5b556nlDiNpIZw-78xmEUu9FLIBuE0bWvoLgmK-2AIdAsB2bbPZ61uDmrE4YK__IINDNl6zeK6NfBGSDCzpJ9VvT_ywnLdqSpGfBArcnGcr2Wwa1DRSmGBn5uF7o0SBcE-K2--KneGsIKjZblCAPD4G1F8QwmL_FgNv6cVI-FMdhLxtYuM2pCYpE23oBmHaSIm-0xyPc71vlQiAYbZ1vnQVx64zdVNA5SPvyAvOZUY5YTixhOU0qw3rcABSk0GbVO8jZlE-QJLuC6hhh5LwM6yDnWPekWS7KPqdhXGTAEzPhxNvnAmZlXrY0nrJFJBpkkg"
# initializes class
dnac = device_list.Dnac(base_url="https://dnac.example.com", token=token, verify=False)
# returns 'list of devices'
device_list = dnac.get_device_list_with_location()
Contributing
Pull requests are welcome. For major changes, please reach out to author via email first. to discuss what you would like to change. https://github.com/alekos3/DNAC_Device_Location
License
Authors
Alexios Nersessian email: anersess@cisco.com
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
dnac_device_list-1.0.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for dnac_device_list-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d8094415db1c24898237828bac3dbf79465652a492e8586cfd32e47775b609f |
|
MD5 | c9ca52f567fe8ef0740eed9ccb17fb14 |
|
BLAKE2b-256 | 21decb5274f5795c3a83a4f5924219e2473fb22cde85c5b2fd89e625df3775c2 |