rest-interface

Syntax

rest-interface

no rest-interface

Description

Enables the REST interface.

The no form of this command disables the REST interface.

NOTE:

Web management or Web management SSL must be enabled to process the REST requests. If Web management is disabled, the REST requests will not be processed even though the REST interface is enabled.

Command context

Required context: config

Examples

Enable the REST interface.

switch(config)# rest-interface
switch(config)# show rest-interface

 REST Interface - Server Configuration

  REST Interface            : Enabled
  REST Operational Status   : Up
  REST Session Idle Timeout : 600 seconds
  HTTP Access               : Enabled
  HTTPS Access              : Disabled

Disable the REST interface.

switch(config)# no rest-interface 
switch(config)# show rest-interface

REST Interface - Server Configuration
  REST Interface            : Disabled
  REST Operational Status   : Down
  HTTP Access               : Enabled
  HTTPS Access              : Disabled