Pcornel
Networking · Automation and Artificial Intelligence

Catalyst SD-WAN Manager APIs

Cheat sheet · https://pcornel.dk/topic.php?topic=99

Back to the Topic

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.

Remember

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.

First 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.

Commands

test -s login.html

Verify in this order

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

Where it usually breaks

underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=99

Confirmation

Confirm action

Continue?