Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Catalyst SD-WAN Manager APIs

Direct answer

Catalyst SD-WAN Manager APIs expose devices, templates, policies and monitoring data over REST. Clients log in to get a session cookie and an XSRF token, then call the dataservice endpoints.

When to use this

Use it to collect SD-WAN inventory and statistics or automate templates and policies, and when an API call fails.

First 30 seconds

1. POST /j_security_check — a session cookie returned (an HTML page back means failed login)?

2. GET /dataservice/client/token — XSRF token received?

3. GET /dataservice/device — device list returned?

4. 403 on writes → missing X-XSRF-TOKEN or read-only user.

5. Long jobs return an ID — poll the status endpoint.

Operational verification

source of truth → data validated → API or tool authenticated → change applied idempotently → state read back → matches intent

Failure signatureSD-WAN Manager API returns login pages or errors

API calls return an HTML login page, 403 or a session error instead of JSON.

Possible stored cause: The session cookie or XSRF token is missing or expired, or the account lacks API permissions.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco Catalyst SD-WAN
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco Catalyst SD-WAN
Scope / prerequisiteUse it to collect SD-WAN inventory and statistics or automate templates and policies, and when an API call fails.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

API calls return an HTML login page, 403 or a session error instead of JSON.

Step 1 Verification & evidence Verify boundary

Validate authentication/session, endpoint/version, object IDs, task status and policy activation state.

Step 2 Common failure modes Narrow the fault

Session/auth failure, stale object ID, policy edited but not activated or relying on controller success without edge verification.

Step 3 Troubleshooting workflow Narrow the fault

Focus for this topic: Session/auth failure, stale object ID, policy edited but not activated or relying on controller success without edge verification.

Step 4 Common mistakes Narrow the fault
  • Forgetting the XSRF token on POST/PUT calls.
  • Session cookies not reused, so every call logs in again.
Step 5 Evidence-first troubleshooting Narrow the fault

Troubleshoot from underlay reachability to control connections, route/TLOC visibility, policy application and finally application path selection. A healthy manager/controller session is not evidence that the intended prefix or application uses the expected transport.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Login: POST /j_security_check with username/password (session cookie), then GET /dataservice/client/token for the XSRF token, sent as X-XSRF-TOKEN on POST/PUT/DELETE. Sessions expire; log out when done. Use a read-only account for monitoring scripts.

Key checks
  • curl -sk -u <user>:<pw> -H 'Accept: application/yang-data+json' https://<device>/restconf/data/ietf-interfaces:interfaces — RESTCONF read.
  • curl -i — HTTP status code and headers (200 OK, 201 Created, 204 No Content, 400, 401, 403, 404).
  • python3 -m json.tool < file.json / jq . file.json — JSON valid and readable.
  • show netconf-yang status / show platform software yang-management process — device API agents running.
  • show ip http server status — HTTPS server for RESTCONF.
ReferenceWhat it is1 section · depth on demand

Concept overview

API-driven access to SD-WAN inventory, monitoring, policy/workflow objects and operational data.

Key ideas: Manager APIs expose centralized SD-WAN objects and state; automation should distinguish configuration templates/policies from operational monitoring.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Manager APIs expose centralized SD-WAN objects and state; automation should distinguish configuration templates/policies from operational monitoring.

ReferenceHow it works1 section · depth on demand

Mechanism, scope & boundaries

SD-WAN separates transport underlay from an overlay fabric controlled through centralized policy. Edge devices need transport reachability and secure control connections before routing/policy can build useful overlay paths. Control policy, data policy and application-aware path decisions answer different questions.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Working with the Catalyst SD-WAN Manager API

SD-WAN Manager uses session-based API authentication, and scripts must handle it carefully. The SD-WAN Manager API documentation for release 20.16 describes the steps:

1. Send a POST to /j_security_check with the form fields j_username and j_password. Success returns an empty body and a JSESSIONID cookie. A failure returns the HTML login page, so check the body.

2. Send a GET to /dataservice/client/token to obtain the XSRF token.

3. Send the cookie, plus the X-XSRF-TOKEN header, on later requests.

Sessions expire after 30 minutes of inactivity or 24 hours in total. At most 100 concurrent sessions are allowed, and the oldest unused session is dropped when a new one would exceed that. Logging out frees the session.

API structure

AreaExample endpoints (under /dataservice)
Devices/device, /device/monitor
Health and statistics/device/bfd/sessions, /device/control/connections
Templates and configuration groups/template/..., /v1/config-group
Alarms and events/alarms

Robust script habits

HabitReason
Check for HTML in the login responseFailed logins don't return an error code
Always log out (POST /logout)Sessions count against the 100-session limit
Re-authenticate on expiry30-minute idle timeout
Use the XSRF token on every request after loginRequired on releases after 19.2
Use JWT authentication on 20.18 and later where availableNewer token-based option
dev$ curl -s -c jar.txt -X POST -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "j_username=$SDWAN_USER" --data-urlencode "j_password=$SDWAN_PASS" \
  https://sdwan-mgr.example.net/j_security_check -o login.html; test -s login.html && echo "login failed"
dev$ XSRF=$(curl -s -b jar.txt https://sdwan-mgr.example.net/dataservice/client/token)
dev$ curl -s -b jar.txt -H "X-XSRF-TOKEN: $XSRF" https://sdwan-mgr.example.net/dataservice/device \
  | jq -r '.data[] | [.["host-name"], .["system-ip"], .reachability] | @tsv'
edge-site17-a   10.17.0.1   reachable
edge-site17-b   10.17.0.2   reachable
dev$ curl -s -b jar.txt -H "X-XSRF-TOKEN: $XSRF" -X POST "https://sdwan-mgr.example.net/logout?nocache=$RANDOM"

Why the login check matters

The test -s login.html line catches failed logins. The documentation notes that a failed login returns the login page instead of an error status. A script that skips this check gets confusing errors on every later call.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

Catalyst SD-WAN Manager exposes almost everything in its GUI through a REST API under /dataservice/. Scripts authenticate, then read device, tunnel and application data or push templates and policies.

Authentication (session-based):

POST /j_security_check            form: j_username, j_password  → session cookie
GET  /dataservice/client/token    → XSRF token
# include the cookie and header X-XSRF-TOKEN on POST/PUT/DELETE
GET  /dataservice/device
GET  /dataservice/device/bfd/sessions?deviceId=<system-ip>
GET  /dataservice/statistics/approute

Newer releases also support token-based (JWT) login; check the API documentation for the installed version.

Practical points: large result sets are paginated or must be queried with time ranges; many configuration actions return an action ID to poll; and API users should have dedicated accounts with read-only roles where possible. The Cisco catalystwan Python SDK wraps authentication and common calls.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco Catalyst SD-WAN Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Automation and Artificial Intelligence → Catalyst SD-WAN Manager APIs. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/routers/sd-wan/series.html · confidence 94%
Depth when you need it

Deep reference

Design & tradeoffs

ENCOR design tradeoffs

Central APIs improve scale but safe automation still needs staging, validation and edge-state verification.

Confirmation

Confirm action

Continue?