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
Extreme API with Python
Page | 77
Part no.9036931-00 Rev AA February 2021
The output:
Script Name: StefTest_Script_-_4
Date and Time: 2020-06-26T19:32:36.361
XMC User: root
XMC User Domain:
IP:
extreme
Extreme!
Note: If an activity does not need to be run against a device, delete the devices variable so
that the engine will not ask you to provide this input.
5.2.4 emc_results
When you work with Workflows that have Inclusive Parallel gateways, you should provide the outcome
of the action to select the path to follow using the emc_results Python object.
This Python object contains the following methods and functions:
print dir(emc_results)
The output, from XMC 8.4.4:
['DATE_FORMAT', 'DATE_FORMAT_STRING', 'ResultType', 'Status',
'TIMESTAMP_FORMAT', 'TIMESTAMP_FORMAT_STRING', 'TIMESTAMP_FORMAT_STRING_24',
'TIME_FORMAT', 'TIME_FORMAT_STRING', '__class__', '__copy__', '__deepcopy__',
'__delattr__', '__doc__', '__ensure_finalizer__', '__eq__', '__format__',
'__getattribute__', '__hash__', '__init__', '__ne__', '__new__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__',
'__subclasshook__', '__unicode__', 'addResult', 'batchId', 'childResults',
'class', 'clear', 'deviceIP', 'deviceId', 'elapsedTimeInMillis',
'elaspsedTimeInSecs', 'equals', 'errorMessage', 'fileName', 'get',
'getBatchId', 'getChildResults', 'getClass', 'getDeviceIP', 'getDeviceId',
'getElapsedTimeInMillis', 'getElaspsedTimeInSecs', 'getErrorMessage',
'getFileName', 'getId', 'getMessage', 'getName', 'getOutput',
'getOutputType', 'getResultUrl', 'getStartTime', 'getStatus', 'getStopTime',
'getVariables', 'hasErrors', 'hashCode', 'id', 'isOutputTruncated',
'message', 'name', 'notify', 'notifyAll', 'output', 'outputTruncated',
'outputType', 'put', 'putAll', 'resultUrl', 'setBatchId', 'setDeviceIP',
'setDeviceId', 'setErrorMessage', 'setFileName', 'setId', 'setMessage',
'setName', 'setOutput', 'setOutputTruncated', 'setOutputType',
'setResultUrl', 'setStartTime', 'setStatus', 'setStopTime', 'startTime',
'status', 'stopTime', 'toString', 'variables', 'wait']
PUT is the most common method you will use.










