6. Appendix A: RESTCONF URI Demystified (IOS XE)

The RESTCONF protocol uses secure HTTP methods to provide CREATE, READ, UPDATE, and DELETE (CRUD) operations on a device’s YANG-modelled data store. For those operations, HTTP URI acts as a location identifier within the hierarchical data tree. The following example shows how to read the complete configuration for the SVI Vlan10 interface using Cisco’s “native” model:

$ curl -k -u admin:cisco -H 'Accept: application/yang-data+json' \ { "Cisco-IOS-XE-native:Vlan": { "name": 10, "description": "DevNet Vlan SVI interface", "ip": { "address": { "primary": { "address": "", "mask": "" ...

Get Cisco DEVCOR 350-901 Study Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.