- Introducing the IOS XE REST API
- Installing the Virtual Services Management Container
- Client Authentication
- Global Configuration Requirements
- Domain Name System (DNS) Server
- Network Time Protocol (NTP)
- IP Interface Configuration Requirements
- L2 Interfaces
- Bridge Domains
- Multicast
- VxLAN
- DHCP Server and Relay Agent
- Routing Protocol (OSPF, BGP, EIGRP) Requirements
- ACL Requirements for Subnets or IP Ranges
- Network Address Translation (NAT)
- Firewall Inspection Requirements
- License Requirements
- Memory and CPU Usage Report
- VRF
- Virtual Private Networks (SVTI and EzVPN)
- LISP
- QoS
- HSRP
Global Configuration Requirements
Resource Summary for Global Configuration
|
|||||
---|---|---|---|---|---|
|
|
|
|
|
|
Banner Resource
History
|
|
Properties
|
|
|
|
JSON Representation
Retrieve Banner
Resource URI
|
|
---|---|
Example
Modify Banner
Resource URI
|
|
---|---|
Example
Hostname Resource
The hostname resource represents the global configuration hostname property.
History
|
|
Properties
|
|
|
|
---|---|---|---|
Retrieve Device Hostname
Resource URI
|
|
---|---|
Example
Modify Device Hostname
Resource URI
|
|
---|---|
Example
JSON Response with no Response Body
Domain Name Resource
Represents the domain name property of the global configuration.
History
|
|
Properties
|
|
|
---|---|---|
Retrieve Domain Name
Resource URI
|
|
---|---|
Example
Modify Domain Name
Resource URI
|
|
---|---|
Example
Users Resource
Users resource represents the collection of local users who are allowed to access the device.
History
|
|
Properties
JSON Representation
Create User Name
Resource URI
|
|
---|---|
Example
Retrieve User Name or Password
Resource URI
|
|
---|---|
Example
Retrieve All User Names
Resource URI
|
|
---|---|
|
|
|
---|---|---|
Example
Modify User Attributes
Resource URI
|
|
---|---|
Example
Delete a User Name
Resource URI
|
|
---|---|
Example
Logging Resource
History
|
|
Properties
|
|
|
|
JSON Representation
Create a Logging Object
Example
Retrieve a Logging Object
Example
Retrieve All Logging Objects
Properties
|
|
|
|
JSON Representation
Example
Deleting a Logging Object
Example
Running-Config Resource
The Running-Config resource represents the Cisco IOS running configuration. Using this operation, you invoke a PUT operation by passing the snapshot of the running configuration as the request body.
Note There is no JSON representation for this resource. It supports only a text/plain representation that corresponds to IOS text configuration. GET and PUT operations correspond to Export and Import IOS actions.
History
|
|
Retrieving or Exporting the Running Configuration
Resource URI
|
|
---|---|
Example
Import the Running Configuration
Note The running configuration file cannot contain a self-signed certificate. If the CSR already has a self-signed certificate, then the configuration file being imported cannot have a self-signed certificate unless the self-signed certificate is removed from CSR first.
Resource URI
|
|
---|---|
Example
SNMP Server Resource
History
|
|
Properties
|
|
|
|
JSON Representation
Create SNMP Object
Example
Retrieve SNMP Object
Example
Retrieve All SNMP Objects
Properties for Retrieve All
|
|
|
JSON Representation
Example
Delete SNMP Object
Example
TACACS Server Resource
History
|
|
Properties
|
|
|
|
Note : This key will not be returned in the GET API for security reasons. |
JSON Representation
Create TACACS Server
Example
Retrieve TACACS Server
Example
Retrieve All TACACS Servers
Properties for Retrieve All
|
|
|
JSON Representation for Retrieve All
Example
Modify TACACS Server
Example
Delete TACACS Server
Example
Syslog Resource
This resource is used to retrieve the CSR logs. The Properties table describes the fields in the show processes cpu output.
History
|
|
Properties
|
|
|
---|---|---|
JSON Representation
Retrieve the Syslog
Example
Reload Resource
Reloads/reboots the router after a specified interval, up to 60 minutes.
History
|
|
Properties
|
|
|
|
Reloads after the specified interval in minutes. A value of 0 indicates an immediate reload and will terminate the REST HTTP session. |
JSON Representation
Reload Router
Resource URI
|
|
---|---|
Example
Saving the REST API Configuration
This resource saves the REST API configuration file.
History
|
|
Introduced for ASR1001-X and ASR1002-X platforms |
Saving the REST API configuration file (IOS write memory CLI command) introduces a delay of a few seconds, depending on the size of the configuration file. To reduce the impact that the write memory command has on the REST API performance, the configuration is saved at a fixed time interval.
Save the REST API configuration file. See Save REST API Configuration File.
Configure or retrieve the autosave interval. See Configure the Autosave Timer Interval.
The time interval is also configurable using a new CLI based on the restful-api CLI command.
Save REST API Configuration File
Resource URI
|
|
---|---|
Example
Configure the Autosave Timer Interval
Properties
|
|
|
|
JSON Representation
Resource URI
|
|
---|---|
See Historyfor platform limitations. |
Example
Retrieve the Autosave Timer Interval
Resource URI
|
|
---|---|
See Historyfor platform limitations. |
Example
IPv6 Resource
History
|
|
Properties
|
|
|
|
JSON Representation
Support for Any CLI
This resource can be used to configure any CLI through the REST API.
History
|
|
Properties
|
|
|
|
JSON Representation
Configure a CLI in "config" Mode
Resource URI
|
|
---|---|
Example
Configure Multiple CLIs in "config" Mode
Resource URI
|
|
---|---|
Example
Configure a CLI to Show Output
Resource URI
|
|
---|---|
Example
Configure Multiple CLIs in "exec" Mode
Resource URI
|
|
---|---|