Purpose
Command or Action
Configures the REST API local port number. The valid range depends
on whether the REST API virtual services container uses the same IP
address as the management interface, or if it uses a different IP address:
restful-api local-port local-port-number
Example:
router(cfg-remote-mgmt)# restful-api
local-port 55443
Step 2
•
Valid range if the dual management interface is configured is from
1 to 61000.
•
Valid range if the shared management interface is configured is
from 55001 to 61000.
In both cases, the default value is 55443.
Configures the REST API autosave interval. The range is from 30-300
seconds, and the default is 30.
restful-api autosave interval
Example:
Router(cfg-remote-mgmt)# restful-api
autosave 60
Step 3
Configuring HTTPS Support for the REST API Using the Cisco IOS XE CLI
The REST API requires HTTPS server support. Beginning with Cisco IOS XE Release 3.11S, HTTPS server
support is enabled by default and no additional configuration is required. However, if using Cisco IOS XE
Release 3.10S, you must manually configure HTTPS support for the REST API in the following situations:
•
If you did not specify the Enable HTTPS Server option when deploying the OVA.
•
If you installed the Cisco CSR 1000v using the .iso file.
The HTTPS session must have an identity certificate. For more information, see the
“
HTTPS-HTTP Server
and Client with SSL 3.0
”
section of the
HTTP Services Configuration Guide, Cisco IOS XE Release 3S
.
Note
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip http secure-server
4.
transport-map type persistent webui transport-map-name
5.
secure-server
6.
transport type persistent webui input transport-map-name
Cisco CSR 1000v Series Cloud Services Router Software Configuration Guide
284
Enabling Management by REST API
Configuring HTTPS Support for the REST API Using the Cisco IOS XE CLI