Extreme API with Python
Table Of Contents
- 1 Preface
- 2 Introduction
- 3 EXOS APIs
- 4 VOSS API
- 5 XMC API
- 6 ExtremeCloud IQ API
- 7 Extreme Campus Controller API
2.6.2 Requests .............................................................................................................................. 20
2.6.3 Testing a REST API ............................................................................................................... 25
2.7 Webhooks ................................................................................................................................... 27
2.8 HTTPS with Python ...................................................................................................................... 28
3 EXOS APIs .................................................................................... 29
3.1 On-Switch APIs ............................................................................................................................ 29
3.1.1 Python Scripting .................................................................................................................. 29
3.1.2 Python Application .............................................................................................................. 35
3.2 External APIs ............................................................................................................................... 40
3.2.1 RESTCONF API ..................................................................................................................... 41
3.2.2 JSON-RPC API ...................................................................................................................... 49
4 VOSS API ..................................................................................... 55
4.1 VOSS RESTCONF Documentation ................................................................................................ 55
4.2 Enable RESTCONF ........................................................................................................................ 55
4.3 Use RESTCONF with Python ........................................................................................................ 55
4.4 EXOS & VOSS Restconf Python Classes ....................................................................................... 58
5 XMC API ...................................................................................... 59
5.1 Python Scripting Engine .............................................................................................................. 59
5.1.1 Default Location for Scripts ................................................................................................. 59
5.1.2 Add a User-Created Script ................................................................................................... 59
5.1.3 Python Modules Shipped with XMC ................................................................................... 59
5.1.4 System Path and Precedence .............................................................................................. 60
5.1.5 Install a Library .................................................................................................................... 60
5.1.6 XMC Python Module ........................................................................................................... 60
5.2 Workflow Engine ......................................................................................................................... 69
5.2.1 emc_vars ............................................................................................................................. 69
5.2.2 Create Workflows ............................................................................................................... 71
5.2.3 Create Variables .................................................................................................................. 73
5.2.4 emc_results ......................................................................................................................... 77










