User guide

Web Services, CLI Scripting, and OpenFlow Web Services REST Examples
OmniSwitch AOS Release 8 Switch Management Guide May 2014 page 10-11
Modify Table Entry Example - Interface Speed
The following REST example modifies the interface speed for a port using MIB objects.
Example Success Response
Domain mib
URN esmConfigTable
Verb POST
Variables mibObject0, mibObject1
REST URL POST Request: https://192.168.1.1/mib/esmConfTable?
mibObject0=esmPortCfgSpeed:1000&mibObject1=ifIndex:1001&mibObj
ect2=esmPortCfgDuplexMode1
JSON XML
{"result":{
"domain":"mib:esmConfTable",
"diag":200,
"output":"",
"error":["Set operation finished
successfully!"],
"data":[]}}
<?xml version="1.0"encoding="UTF-8"?>
<nodes>
<result><domain>mib:esmConfTable</domain>
<diag>200</diag>
<output></output>
<error><node name="0">Set operation finished successfully!</node>
</error>\n<data></data>
</result>
</nodes>