- 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
- Resource Summary for Routing Protocols
- Create a Routing Protocol Instance Identifier
- Delete a Routing Protocol Instance Identifier
- Retrieve All Routing Protocol IDs
- BGP Network Resource
- BGP Best Path Selection Resource
- EIGRP Network Resource
- OSPF Network Resource
- BGP Neighbor Resource
- Enabling and Disabling Routing Updates on an Interface (Passive for OSPF and EIGRP)
- Routing Table Display
- Static Route Resource
Routing Protocol (OSPF, BGP, EIGRP) Requirements
- Resource Summary for Routing Protocols
- Create a Routing Protocol Instance Identifier
- Delete a Routing Protocol Instance Identifier
- Retrieve All Routing Protocol IDs
- BGP Network Resource
- BGP Best Path Selection Resource
- EIGRP Network Resource
- OSPF Network Resource
- BGP Neighbor Resource
- Enabling and Disabling Routing Updates on an Interface (Passive for OSPF and EIGRP)
- Routing Table Display
- Static Route Resource
Resource Summary for Routing Protocols
Create a Routing Protocol Instance Identifier
History
|
|
Resource URI
|
|
---|---|
Properties
|
|
|
|
---|---|---|---|
JSON Representation
Related Topics
Create a BGP Instance
Example
Create an OSPF Process ID
Example
Create an EIGRP ASN
Example
Delete a Routing Protocol Instance Identifier
History
|
|
Resource URI
|
|
---|---|
/api/v1/routing-svc/BGP/{routing-protocol-id} |
|
{routing-protocol-id} is one of: EIGRP ASN, BGP ASN, or OSPF process id. |
Delete a BGP ASN
Example
Delete an EIGRP ASN
Example
Delete an OSPF Process ID
Example
Retrieve All Routing Protocol IDs
History
|
|
Resource URI
|
|
---|---|
Retrieve All BGP ASNs
Example
Retrieve All EIGRP ASNs
Example
Retrieve All OSPF Process IDs
Example
BGP Network Resource
History
|
|
Properties
|
|
|
|
JSON Representation
Related Topics
Configure a BGP Network
Resource URI
|
|
---|---|
Example
Retrieve a BGP Network
Example
Retrieve All BGP Networks
Resource URI
|
|
---|---|
Properties for Retrieve All
|
|
|
---|---|---|
JSON Representation
Example
Delete a BGP Network
Example
BGP Best Path Selection Resource
History
|
|
Properties
|
|
|
|
JSON Representation
Retrieve BGP Best Path
Resource URI
|
|
---|---|
Example
Modify BGP Best Path
Resource URI
|
|
---|---|
Example
EIGRP Network Resource
History
|
|
Properties
|
|
|
|
---|---|---|---|
JSON Representation
Related Topics
Create an EIGRP Network
Resource URI
|
|
---|---|
|
|
---|---|
Example
Retrieve an EIGRP Network
Resource URI
|
|
---|---|
/api/v1/routing-svc/ospf/{routing-protocol-id}/networks/{network_mask} |
|
|
---|---|
Example
Retrieve All Configured EIGRP Networks
Resource URI
|
|
---|---|
|
|
---|---|
Properties for Retrieve All
|
|
|
---|---|---|
JSON Representation
Example
Delete an EIGRP Network
Resource URI
|
|
---|---|
/api/v1/routing-svc/ospf/{routing-protocol-id}/networks/{network_mask} |
|
|
---|---|
Example
OSPF Network Resource
History
|
|
Properties
|
|
|
|
---|---|---|---|
JSON Representation
Related Topics
Configure an OSPF Network
Resource URI
|
|
---|---|
|
|
---|---|
Example
Retrieve an OSPF Network
Resource URI
|
|
---|---|
/api/v1/routing-svc/ospf/{routing-protocol-id}/networks/{network_mask_area} |
|
|
---|---|
Network, prefix length, and OSPF area, joined by underscores. |
Example
Retrieve All Configured OSPF Networks
Resource URI
|
|
---|---|
|
|
---|---|
Properties for Retrieve All
|
|
|
---|---|---|
JSON Representation
Example
Delete an OSPF Network
Resource URI
|
|
---|---|
/api/v1/routing-svc/ospf/{routing-protocol-id}/networks/{network_mask_area} |
|
|
---|---|
Network, prefix length, and OSPF area, joined by underscores. |
Example
BGP Neighbor Resource
History
|
|
Properties
|
|
|
|
---|---|---|---|
JSON Representation for BGP Neighbor Configuration
Create BGP Neighbor
Resource URI
|
|
---|---|
Example
Location: https://host/api/v1/bgp/100/neighbors/152.13.25.25
Retrieve a BGP Neighbor
Resource URI
|
|
---|---|
/api/v1/routing-svc/bgp/{routing-protocol-id}/neighbors/{neighbor-id} |
|
|
---|---|
Example
Retrieve All Static BGP Neighbors
Resource URI
|
|
---|---|
|
|
---|---|
Properties for Retrieve All
|
|
|
---|---|---|
JSON Representation
Example 1
Example 2
Modify a BGP Neighbor
Resource URI
|
|
---|---|
/api/v1/routing-svc/bgp/{routing-protocol-id}/neighbors/{neighbor-id} |
|
|
---|---|
Example
Delete a BGP neighbor
Resource URI
|
|
---|---|
/api/v1/routing-svc/bgp/{routing-protocol-id}/neighbors/{neighbor-id} |
|
|
---|---|
Example
Enabling and Disabling Routing Updates on an Interface (Passive for OSPF and EIGRP)
History
|
|
Added virtual-instance-name property for EIGRP passive interface. |
|
Properties for OSPF
|
|
|
|
---|---|---|---|
“true” to disable sending routing updates on the interface, or “false” to re-enable. |
Properties for EIGRP
|
|
|
|
---|---|---|---|
“true” to disable sending routing updates on the, or “false” to re-enable. |
|||
JSON Representation for OSPF
JSON Representation for EIGRP
Suppress Sending of Routing Updates through a Specified Interface
Note This command is not applicable to BGP.
This command has no meaning or effect unless the routing protocol is running on the interface through the network commands.
Resource URI
|
|
---|---|
/api/v1/routing-svc/ {routing-protocol}/{routing-protocol-id}/passive/{if-id} |
Example: Disabling sending routing updates on GigabitEthernet1
Retrieve a Passive Interface
Resource URI
|
|
---|---|
/api/v1/routing-svc/ {routing-protocol}/{routing-protocol-id}/passive/{if-id} |
|
|
---|---|
Example for OSPF
Example for EIGRP
Routing Table Display
The routing table may be larger than the HTTP response can handle, so the REST client needs to indicate the range and size of the routes in the HTTP GET request.
History
|
|
Properties
URI Parameters
|
|
|
---|---|---|
"eq-or-gt" (equal or greater) or "gt" (greater) relative to the start-prefix. |
||
Retrieve the Global Routing Table
Resource URI
|
|
---|---|
/api/v1/routing-svc/ routing-table?start-prefix={cidr}&range-type={string}&count={number} |
Example 1
Example 2
Static Route Resource
History
|
|
Properties
JSON Representation for Static Route
Configure a Static Route
Resource URI
|
|
---|---|
The static route is identified by both the prefix (CIDR) and next hop. Next hop could be an interface, an IP address or both.
Example
Retrieve a Static Route
Resource URI
Example
Retrieve All the Static Routes
This API retrieves only static routes that are in the routing information base (RIB).
Resource URI
|
|
---|---|
Properties for Retrieve All
|
|
|
---|---|---|
JSON Representation for Retrieve All
Example
Delete a Static Route
History
|
|