Catalyst Center APIs
Cheat sheet · https://pcornel.dk/topic.php?topic=98
Answer
Catalyst Center APIs (Intent API) give programmatic access to inventory, sites, assurance health, templates and provisioning. Clients first get a token from the authentication endpoint and send it in the X-Auth-Token header.
Remember
Token: POST /dna/system/api/v1/auth/token with basic auth; it expires (about an hour). Many write calls are asynchronous: they return a task ID — poll the task API for the result. Respect rate limits and use paging (offset/limit) on large lists.
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.
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
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=98