29.04.2019 Views

OS6860(E)_AOS_8.1.1.R01_Switch_Management_Guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Web Services REST Examples<br />

Modify Table Entry Example - Interface Speed<br />

The following REST example modifies the interface speed for a port using MIB objects.<br />

Domain<br />

URN<br />

Verb<br />

Variables<br />

REST URL<br />

mib<br />

esmConfigTable<br />

POST<br />

mibObject0, mibObject1<br />

POST Request: https://192.168.1.1/mib/esmConfTable?<br />

mibObject0=esmPortCfgSpeed:1000&mibObject1=ifIndex:1001&mibObj<br />

ect2=esmPortCfgDuplexMode1<br />

Example Success Response<br />

JSON<br />

{"result":{<br />

"domain":"mib:esmConfTable",<br />

"diag":200,<br />

"output":"",<br />

"error":["Set operation finished<br />

successfully!"],<br />

"data":[]}}<br />

XML<br />

<br />

<br />

mib:esmConfTable<br />

200<br />

<br />

Set operation finished successfully!<br />

\n<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-11

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

Saved successfully!

Ooh no, something went wrong!