Network Automation with RESTCONF
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Designing, Deploying and Managing Network Automation Systems premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- RESTCONF: HTTP verbs over a YANG datastore
- The URL walks the YANG tree
- Choosing the verb: POST, PUT, PATCH, DELETE
- Status codes and ietf-restconf:errors
- Media types: Content-Type and Accept
- Building the JSON body: YANG to JSON
- Exam patterns: valid URLs, verbs, and bodies
RESTCONF verbs mapped to datastore operations
| Property | POST | PUT | PATCH | DELETE |
|---|---|---|---|---|
| Datastore operation | Create child | Create or replace | Merge leaves | Remove |
| Idempotent | No | Yes | No | Yes |
| Target already exists | 409 (data-exists) | Replaced | Merged into | Deleted |
| Target absent | Created (201) | Created (201) | 404 (no target) | 404 (no target) |
| Success code | 201 Created | 204 (201 on create) | 204 No Content | 204 No Content |
| Best suited to | One-shot create | Declarative convergence | Surgical leaf edits | Teardown |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- https://datatracker.ietf.org/doc/html/rfc8040
- https://datatracker.ietf.org/doc/html/rfc7950
- https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1715/b_1715_programmability_cg/m_1715_prog_restconf.html
- https://www.rfc-editor.org/rfc/rfc9110
- https://datatracker.ietf.org/doc/html/rfc7951
- https://datatracker.ietf.org/doc/html/rfc8343