User guide
Web Services, CLI Scripting and OpenFlow Web Services REST Examples
OmniSwitch AOS Release 7 Switch Management Guide March 2015 page 11-13
Query Table Info Example
The following REST example queries the VLAN table for an existing VLAN using MIB objects.
Example Success Response
Domain info
URN vlanTable
Verb GET
REST URL GET https://192.168.1.1/info/vlanTable?
JSON XML
{"result":{
"domain":"info",
"diag":200,
"output":"",
"error":"",
"data":{
"table":"vlanTable",
"type":"Table",
"rowstatus":"vlanStatus",
"firstobject":"vlanStatus"}}}
<?xml version="1.0" encoding="UTF-8" ?>
<nodes>
<result>
<domain>info</domain>
<diag>200</diag>
<output></output>
<error></error>
<data>
<table>vlanTable</table>
<type>Table</type>
<rowstatus>vlanStatus</rowstatus>
<firstobject>vlanStatus</firstobject>
</data>
</result>
</nodes>