QuestionQ177

Understanding and Using APIs

Drag and drop RESTCONF protocol-stack elements from the left to their matching descriptors on the right. Some elements will not be used.

Drag & Drop
<data>
XML or JSON
SSH
<rpc>, <rpc-reply>
GET, POST, PUT, PATCH, DELETE
HTTPS
Explanation

In the RESTCONF protocol stack the Content layer is the data encoding, which for RESTCONF is XML or JSON; the Operations layer maps to the HTTP verbs GET, POST, PUT, PATCH, and DELETE; and the secure Transport layer is HTTPS. The automated key's choice of '<data>' for content is wrong — that, along with SSH and '<rpc>, <rpc-reply>', are NETCONF stack elements (NETCONF runs its RPC messages over SSH), which is why they are the unused distractors here. RESTCONF is a REST-like, device-level protocol defined in RFC 8040 that exposes YANG data over HTTPS using XML/JSON payloads.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!