Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

RESTCONF Fundamentals

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

When to use this

Use this to start with RESTCONF: enabling it, discovering the root and making first calls.

First 30 seconds

1. RESTCONF fundamentals: datastore resource /restconf/data, operations /restconf/operations.

2. Paths follow YANG (module:node).

3. List keys with =.

4. Media types matter.

5. Errors in ietf-restconf:errors format.

Operational verification

path → YANG node → method

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
RESTCONF / YANG HTTP automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformRESTCONF / YANG HTTP automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this to start with RESTCONF: enabling it, discovering the root and making first calls.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

The negative fixture should deliberately exercise risks such as wrong resource URI, PUT/PATCH replacement semantics confusion, stale conditional requests, content-type mismatch and treating 2xx as state convergence, choosing the cases most relevant to YANG resource mapping to HTTP URIs, methods, media types, status/error bodies, conditional requests and datastore read-back. For RESTCONF → RESTCONF Fundamentals, the evidence must connect the control-plane result to the addressed YANG data resource and its persisted/operational representation and explain any gap between desired, controller-reported and consumer-visible state.

Step 2 Common mistakes Narrow the fault
  • Using RESTCONF without checking supported models.
Step 3 Where it fails Narrow the fault

Failure analysis for RESTCONF → RESTCONF Fundamentals should follow the path through the components: client → HTTP/TLS → RESTCONF resource mapping → YANG validation → datastore mutation → GET read-back.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • HTTP API for YANG data (RFC 8040).
  • /restconf/data root.
  • JSON or XML.
Key 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
ReferenceWhy it matters1 section · depth on demand

In depth

RESTCONF (RFC 8040) exposes the same YANG-modelled data as NETCONF through an HTTP REST interface. Resources are URLs following the model tree, data is JSON or XML, and standard HTTP methods map to datastore operations — making it accessible from any HTTP client.

MethodNETCONF equivalent
GETget / get-config
POSTedit-config (create)
PUTedit-config (replace)
PATCHedit-config (merge)
DELETEedit-config (delete)
curl -s -u admin:pass -H 'Accept: application/yang-data+json' https://10.0.0.1/restconf/data/ietf-interfaces:interfaces
curl -s -u admin:pass https://10.0.0.1/restconf/data/ietf-yang-library:modules-state | head

RESTCONF changes apply directly to the running configuration; use NETCONF with a candidate datastore when you need multi-part transactions.

ReferenceImportant terms & boundaries1 section · depth on demand

Mechanics

RESTCONF → RESTCONF Fundamentals is owned at runtime by the RESTCONF HTTP server backed by a YANG-modeled datastore. Follow the chain of components client → HTTP/TLS → RESTCONF resource mapping → YANG validation → datastore mutation → GET read-back and record which layer currently owns truth. The linked authority for bounded mechanics is RFC 8040 — RESTCONF Protocol; documentation support is separate from observed lab/production Evidence.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docRESTCONF / YANG HTTP automation current

Authoritative/upstream documentation reviewed for bounded claims in RESTCONF > RESTCONF Fundamentals. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc8040 · confidence 94%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For YANG resource mapping to HTTP URIs, methods, media types, status/error bodies, conditional requests and datastore read-back, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?