LOGBOOK

HELP

Quiz Entry - updated: 2026.10.15

Which HTTP methods and data formats does RESTCONF support, and what does a RESTCONF request look like?

RESTCONF supports GET, POST, PUT, DELETE and OPTIONS (the RFC also defines PATCH and HEAD), with request and response bodies in JSON or XML. A request is an HTTPS call to a URL that follows the YANG path.

A RESTCONF URL broken into host, data root, module and top container, containers and the leaf

* Each URL segment walks one step down the YANG tree, ending at the leaf that holds the value. *

Reading a router's logging severity:

GET https://10.85.116.59:443/restconf/data/Cisco-IOS-XE-native:native/logging/monitor/severity
Accept: application/yang-data+json

200
{
  "Cisco-IOS-XE-native:severity": "critical"
}

How to read it:

  • /restconf/data/ is the root of the data tree.
  • Cisco-IOS-XE-native:native/logging/monitor/severity is the path through the YANG model (module:container/…/leaf).
  • Accept: application/yang-data+json asks for JSON. With …+xml you would get XML instead.
  • 200 means the request succeeded, and the body holds exactly the one leaf requested.

Writing works the same way. A PUT or PATCH to that URL with a JSON body changes the value, and DELETE removes it.

From Quiz: ITIA / Network Programmability: CLI, REST APIs, YANG, NETCONF and RESTCONF | Updated: Oct 15, 2026