29.04.2019 Views

OS6860(E)_AOS_8.1.1.R01_Switch_Management_Guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Web Services, CLI Scripting, and OpenFlow<br />

Web Services REST Examples<br />

Query Table Info Example<br />

The following REST example queries the VLAN table for an existing VLAN using MIB objects.<br />

Domain<br />

URN<br />

Verb<br />

REST URL<br />

info<br />

vlanTable<br />

GET<br />

GET https://192.168.1.1/info/vlanTable?<br />

Example Success Response<br />

JSON<br />

{"result":{<br />

"domain":"info",<br />

"diag":200,<br />

"output":"",<br />

"error":"",<br />

"data":{<br />

"table":"vlanTable",<br />

"type":"Table",<br />

"rowstatus":"vlanStatus",<br />

"firstobject":"vlanStatus"}}}<br />

XML<br />

<br />

<br />

<br />

info<br />

200<br />

<br />

<br />

<br />

vlanTable<br />

Table<br />

vlanStatus<br />

vlanStatus<br />

<br />

<br />

<br />

Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 <strong>Switch</strong> <strong>Management</strong> <strong>Guide</strong> May 2014 page 10-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!