Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

GET · RESTCONF

Direct answer

RESTCONF GET retrieves configuration and state data at a URI, such as /restconf/data/ietf-interfaces:interfaces, with Accept: application/yang-data+json for JSON output.

When to use this

Use this when reading configuration and state through RESTCONF.

First 30 seconds

1. GET reads config/state.

2. content parameter selects config/nonconfig.

3. Handle 404 (node absent).

4. Use for verification.

5. Paginate large lists if supported.

Operational verification

GET path → data

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 when reading configuration and state through RESTCONF.
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 Effective-state and workload closure Verify boundary

Correlate request/job IDs, require terminal success, GET/read the target state independently, confirm the runtime consumed the change, then run the original workload.

Step 2 Common mistakes Narrow the fault
  • Not using depth or fields on large reads.
Step 3 Where it fails Narrow the fault

Failure analysis for RESTCONF → GET 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
  • Accept: application/yang-data+json.
  • URIs follow the YANG tree.
  • 404 means wrong path or no data.
Key checks
  • curl -s --cacert ca.pem -u <u>:<p> -H 'Accept: application/yang-data+json' https://<dev>/restconf/data/<path> — read
  • ?content=config|nonconfig — config vs state
  • 404 for missing node — handling
ReferenceWhy it matters1 section · depth on demand

In depth

A RESTCONF GET reads configuration and state data from a device as JSON or XML, using a URL that follows the YANG model's structure.

curl -s -u admin:pass -H 'Accept: application/yang-data+json' \
  https://10.0.0.1/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1

Useful query parameters:

ParameterEffect
content=config / nonconfig / allConfiguration, state or both
depth=NLimit nesting depth
fields=name;enabledReturn selected fields

Keys in URLs are encoded (GigabitEthernet1%2F0%2F1 for GigabitEthernet1/0/1). A 404 usually means the path, module prefix or key is wrong rather than the object being missing.

ReferenceImportant terms & boundaries2 sections · depth on demand

Known-good, transitional and broken reference

GET — comparative operational reference for RESTCONF → GET. What it does not show: request acceptance or job success does not show target change, effective state or workload recovery Next check: move one step toward the original workload using Correlate request/job IDs, require terminal success, GET/read the target state independently, confirm the runtime consumed the change, then run the original workload.

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 > GET. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc8040 · confidence 94%
Confirmation

Confirm action

Continue?