Enabling Cisco Ios Http Services For Restconf - Cisco Catalyst 4500 Series Software Configuration Manual

Cisco ios xe release 3.9.xe and cisco ios release 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 6
Programmability

Enabling Cisco IOS HTTP Services for RESTCONF

This task is mandatory if you want to use the RESTCONF interface and have opted for the standard
configuration method.
Command or Action
Step 1
enable
Example:
Switch# enable
Step 2
configure terminal
Example:
Switch# configure terminal
Step 3
restconf
Example:
Switch(config)# restconf
Step 4
ip http server
or
ip http secure-server
Example:
Switch (config)# ip http server
OR
Switch (config)# ip http secure-server
Step 5
ip http authentication local
Example:
Switch(config)# ip http authentication
local
Step 6
end
Example:
Switch# end
See
Examples for RESTCONF RPCs, page
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Purpose
Enables privileged EXEC mode. Enter your password if
prompted.
Enters the global configuration mode.
Enables the RESTCONF interface on your network device.
The ip http server command enables the HTTP server on your
system.
The ip http secure-server command enables a secure HTTP
(HTTPS) server.
Note
When enabling an HTTPS server, you should always
disable the standard HTTP server to prevent unsecured
connections to the same services. Disable the standard
HTTP server using the no ip http server command in
global configuration mode (this step is precautionary;
typically, the HTTP server is disabled by default).
Configure only one of the commands.
Indicates that the login user name, password and privilege level
access combination specified in the local system configuration
(with the username global configuration command) should be
used for authentication and authorization.
Exits global configuration mode and enters privileged EXEC
mode.
6-15.
Configuring Programmability Components
6-13

Advertisement

Table of Contents
loading

Table of Contents