14-8
Cisco CSR 1000V Series Cloud Services Router Software Configuration Guide
OL-27477-07
Chapter14 Configuring Support for Management Using the REST API
Enabling REST API Support Using the Cisco IOS XE CLI
Note When REST API support is disabled using the no restful-api command, the REST API PUT, POST and
DELETE operations are disabled. However, the GET operation is still available.
Viewing the REST API Container Status
The following example shows the enabled status of the REST API container, along with the detailed
guest status with a list of processes, status showing when these processes are up and running, and the
number of restarts:
Router# show virtual-service detail
Virtual service csr_mgmt detail
State : Activated
Package information
Name : csrmgmt.1_2_1.20131010_134115.ova
Path : bootflash:/csrmgmt.1_2_1.20131010_134115.ova
Application
Name : csr_mgmt
Installed version : 1.2.1
Description : CSR-MGMT
Signing
Key type : Cisco development key
Method : SHA-1
Licensing
Name : Not Available
Version : Not Available
Detailed guest status
----------------------------------------------------------------------
Process Status Uptime # of restarts
----------------------------------------------------------------------
nginx UP 0Y 0W 0D 0: 1: 1 0
climgr UP 0Y 0W 0D 0: 1: 1 0
restful_api UP 0Y 0W 0D 0: 1: 1 0
fcgicpa UP 0Y 0W 0D 0: 0:13 0
pnscag UP 0Y 0W 0D 0: 0:13 0
pnscdme UP 0Y 0W 0D 0: 0:12 0
----------------------------------------------------------------------
Feature Status Configuration
----------------------------------------------------------------------
Restful API Enabled, UP port: 443
(GET only) auto-save-timer: 8 seconds
socket: unix:/usr/local/nginx/csrapi-fcgi.sock;
Step4 no restful-api
Example:
router(cfg-remote-mgmt)# no restful-api
Disables support for the REST API.
Step5 end
Example:
router(cfg-remote-mgmt)# end
Exits remote-management configuration mode and
enters configuration mode.
Command or Action Purpose