Lesson Overview
Modern enterprise networks require centralized management, automation, and real-time visibility to support distributed branch offices, data centers, cloud applications, and remote users.
Cisco SD-WAN provides a software-defined approach to managing wide-area networks through centralized control, policy-based routing, application-aware traffic steering, and secure connectivity.
Cisco SD-WAN Manager, formerly known as vManage, provides centralized management, configuration, monitoring, and operational visibility for supported Cisco SD-WAN deployments.
In addition to its graphical management interface, Cisco SD-WAN Manager provides REST APIs that allow network engineers and automation platforms to interact programmatically with the SD-WAN environment.
Using these APIs, administrators can retrieve device inventories, monitor device health, collect interface statistics, inspect alarms, manage supported configuration resources, and integrate SD-WAN operations with external applications.
This lesson explains REST API fundamentals, Cisco SD-WAN Manager API architecture, authentication, HTTP methods, JSON processing, Python integration, practical API examples, troubleshooting, security considerations, and real-world network automation use cases.
Important: Cisco SD-WAN Manager API endpoints, authentication behavior, response structures, and supported configuration operations vary by software release. The examples below demonstrate common API patterns. Always validate the endpoints and payloads against the API documentation for your deployed version.
Learning Objectives
After completing this lesson, you will be able to:
Explain REST API architecture and its role in network automation.
Identify the major components of Cisco SD-WAN.
Understand Cisco SD-WAN Manager API architecture.
Describe REST API authentication and session management.
Explain HTTP methods and response codes.
Understand JSON request and response formats.
Retrieve Cisco SD-WAN device inventory using REST APIs.
Collect device status and operational information.
Use Python to interact with Cisco SD-WAN Manager.
Understand API session cookies and anti-CSRF tokens.
Explain configuration management through APIs.
Implement API error handling and security best practices.
Troubleshoot common Cisco SD-WAN API problems.
Build basic monitoring and inventory automation workflows.
1. What Is Cisco SD-WAN Manager?
Cisco SD-WAN Manager, previously called Cisco vManage, is a centralized network management platform used to configure, monitor, and administer Cisco Catalyst SD-WAN infrastructure.
It provides management capabilities such as device onboarding, configuration management, policy administration, operational monitoring, alarms, and troubleshooting.
Major Functions
Function | Description |
|---|---|
Device Management | Manage WAN edge routers and SD-WAN infrastructure |
Configuration Management | Configure supported network resources |
Policy Management | Manage centralized and localized SD-WAN policies |
Monitoring | Monitor devices, interfaces, tunnels, and health |
Troubleshooting | Investigate alarms and operational problems |
API Integration | Enable programmatic access to management functions |
Reporting | Collect information for inventory and operational reporting |
Security | Control access through authentication and authorization |
1.1 Cisco Catalyst SD-WAN Architecture
Cisco Catalyst SD-WAN uses management, control, and data-plane components.
Component | Former Name | Function |
|---|---|---|
Cisco SD-WAN Manager | vManage | Centralized management and API access |
Cisco SD-WAN Controller | vSmart | Routing information and control policies |
Cisco SD-WAN Validator | vBond | Initial orchestration and validation |
WAN Edge Router | IOS XE SD-WAN / Viptela Edge | Application and user traffic forwarding |
This topology is conceptual. In actual deployments, controllers have their own connectivity relationships, and WAN edge devices establish secure control and data-plane connections according to the SD-WAN design.
1.2 Why Are Cisco SD-WAN Manager APIs Important?
Consider an enterprise with 1,000 branch routers. The network operations team needs to collect device reachability, software versions, interface status, and site information every day. Manually exporting this information from the GUI is inefficient.
Using Cisco SD-WAN Manager APIs, an automation script can retrieve supported operational data and generate structured reports.
Manual Management vs API Automation
Task | Manual Management | API Automation |
|---|---|---|
Device Inventory | Review GUI | Retrieve through API |
Device Reachability | Check dashboard | Collect and filter API data |
Interface Monitoring | Open individual device views | Query interface data |
Alarm Reporting | Review alarms manually | Retrieve alarm records |
Configuration Changes | GUI workflow | Supported API workflow |
Daily Reports | Manual export | Python-generated reports |
1.3 What Are Cisco SD-WAN Manager APIs?
Cisco SD-WAN Manager APIs are application programming interfaces that allow authorized external applications to interact with supported SD-WAN management functions.
They commonly use REST-style HTTP communication and exchange structured data using JSON.
API Architecture
Topology interpretation: The automation client calls SD-WAN Manager rather than opening separate API sessions to every edge device. SD-WAN Manager becomes the northbound automation and monitoring point for the fabric.
1.3.1 REST API Request Structure
A REST API request normally includes:
HTTP method.
API endpoint.
Request headers.
Authentication information.
Query parameters, when required.
Request body, when required.
1.3.2 HTTP Methods
Method | Description | Example |
|---|---|---|
GET | Retrieve information | Get device inventory |
POST | Submit information or initiate an operation | Create a configuration resource |
PUT | Update or replace a resource according to the API | Update an object |
DELETE | Remove a resource | Delete an unused configuration resource |
Not every endpoint supports every method.
1.3.3 HTTP Response Codes
Code | Meaning |
|---|---|
200 | Request successful |
201 | Resource created |
202 | Request accepted for processing |
204 | Successful operation without response body |
400 | Invalid request |
401 | Authentication required or invalid |
403 | Access denied |
404 | Resource not found |
405 | Method not supported |
429 | Too many requests |
500 | Internal server error |
503 | Service unavailable |
Important: An HTTP 200 or 202 response to a configuration operation does not necessarily mean the change has been successfully deployed to all WAN edge devices. Deployment task status must be checked separately where applicable.
1.4 Authentication
Release awareness: Cisco SD-WAN releases support different authentication workflows. Modern 26.1 documentation includes JWT-based login, while the classic JSESSIONID session flow using /j_security_check is also widely documented and deployed. Always match the authentication method to the SD-WAN Manager release in use.
A. JWT-based authentication - current 26.1 model
Login request
|
POST /jwt/login Content-Type: application/json
{ "username": "apiuser", "password": "password", "duration": 3600 } |
Response concept: The response includes a JWT access token and a csrf value. The CSRF value is needed for most POST operations in the JWT flow.
B. Classic session authentication - JSESSIONID
Classic login
|
POST /j_security_check Content-Type: application/x-www-form-urlencoded
j_username=apiuser&j_password=password |
Result: The server returns a session cookie (JSESSIONID). Subsequent API requests include that cookie; some classic workflows also obtain an XSRF token for write operations.
1.5 Device Information - GET…
