User guide

Web Services REST Examples Web Services, CLI Scripting and OpenFlow
page 11-10 OmniSwitch AOS Release 7 Switch Management Guide March 2015
Modify Table Entry Example - VLAN
The following REST example modifies the VLAN description for an existing VLAN using MIB objects.
Example Success Response
Domain mib
URN vlanTable
Verb POST
Variables mibObject0, mibObject1
REST URL POST https://192.168.1.1/mib/vlanTable?
mibObject1=vlanNumber:2&mibObject0=vlanDescription:vlan-Two
JSON XML
{"result":{
"domain":"mib:vlanTable",
"diag":200,
"output":"",
"error":[
"Set operation finished
successfully!"],
"data":[]}}
<?xml version="1.0" encoding="UTF-8" ?>
<nodes>
<result>
<domain>mib:vlanTable</domain>
<diag>200</diag>
<output></output>
<error>
<node name="0">Set operation finished successfully!</node>
</error>
<data></data>
</result>
</nodes>