THIS LIBRARY HAS NOW BEEN ARCHIVED AS I NO LONGER WORK WITH THE SILVERPEAK/ARUBA SDWAN TECHNOLOGY PLEASE SEE THE EDGECONNECT-PYTHON REPO FOR A MORE UP TO DATE CLIENT.
Python library for use with Silver Peak SD-WAN Orchestrator API.
Requires requests
Silver Peak is an SD-WAN vendor with a solid rest API.
The API is documented on the orchestrator host and can be found by going to
https://hostname/orch_version/webclient/php/swagger/index.html
.
pip install silverpeak
from silverpeak import *
sp = Silverpeak(user='admin', user_pass='admin', sp_server='192.168.1.2')
devices = sp.get_appliances()
All methods return a Result named tuple with the requests.json()
data in the data
element.
The complete requests.response
object is stored in the response
element
Result(ok=True, status_code=200, error='', reason='Success', data={}, response=<Response [200]>)