RESTCONF
Cheat sheet · https://pcornel.dk/topic.php?topic=784
Answer
RESTCONF is an HTTPS protocol for reading and changing configuration and operational data on network devices, using the structure defined by YANG models and JSON or XML encoding. Security requirements are covered in REST API Security.
Remember
A GET response demonstrates only the response actually observed for that identity/resource. It does not prove another operation is denied, a write is persisted to startup configuration, or the intended service forwards traffic. REST API Security owns those security-policy proof boundaries; retain the original operation and independent readback as separate checks.
First checks
curl -s --cacert ca.pem -u <u>:<p> -H 'Accept: application/yang-data+json' https://<dev>/restconf/data/ietf-yang-library:modules-state— supported modules- RESTCONF base path (/restconf) — discovery
- HTTP status code handling — errors
Verify in this order
transport/TLS/SSH → authentication/authorization → capabilities/YANG path → RPC/HTTP operation → datastore → device state
request accepted → job/task succeeded → target object changed → effective runtime state confirmed → original workload verified → dependency/return-path regression
Local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary.
Local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Where it usually breaks
HTTP 200 or NETCONF session-up does not prove the intended datastore mutation or operational effect.
Automation/controller success is not target-state proof; target config/state is not effective-runtime proof; effective state is not workload proof.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=784