Automation · RESTCONF
RESTCONF Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=5617
Answer
RESTCONF fundamentals: an HTTP-based protocol (RFC 8040) that exposes YANG-modelled configuration and state as URIs under /restconf/data, using GET, POST, PUT, PATCH and DELETE with JSON or XML.
Remember
- HTTP API for YANG data (RFC 8040).
- /restconf/data root.
- JSON or XML.
First checks
curl -s --cacert ca.pem -u <u>:<p> https://<dev>/.well-known/host-meta— root discovery- Resource paths (module:container/list=key) — addressing
- Media types — yang-data+json
Verify in this order
path → YANG node → method
Where it usually breaks
Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5617