350-901 · Question #37
Refer to the exhibit. Drag and drop parts of the URL from the left onto the item numbers on the right that match the missing sections in the exhibit to create the appropriate RESTCONF URL to query…
This question tests the ability to construct a valid RESTCONF URL by reading a YANG model and mapping its hierarchy to the correct URL path segments. RESTCONF (RFC 8040) uses a hierarchical URL structure that directly mirrors the YANG data model tree.
Question
module: cisco-ios-xe-vlan
augment /ios-native/ios-vlan:
+--rw access-map* [name]
+--rw name
| string
+--rw value?
| uint16
+--rw action?
| enumeration
+--rw ipv6
| +--rw address*
| string
+--rw ip
| +--rw address*
| string
+--rw configuration* [vlan-id]
| +--rw vlan-id
| union
+--rw flow
| +--rw monitor* [flow-monitor]
| +--rw flow-monitor
| string
| +--rw input?
| empty
| +--rw output?
| empty
+--rw ipv6
| +--rw nd
| | +--rw suppress!
| +--rw attach-policy?
| string
+--rw dhcp
| +--rw guard!
| +--rw attach-policy?
| string
+--rw member
| +--rw evpn-instance
| | +--rw evpn-instance?
| | uint16
| | +--rw vni?
| | uint32
| +--rw filter* [word]
Complete the URL: https://ios-xe-mgmt.cisco.com:9443/<item 1>/<item 2>/<item 3>/<item 4>/Explanation
This question tests the ability to construct a valid RESTCONF URL by reading a YANG model and mapping its hierarchy to the correct URL path segments. RESTCONF (RFC 8040) uses a hierarchical URL structure that directly mirrors the YANG data model tree.
Approach. A RESTCONF URL always begins with the fixed path segments 'restconf' then 'data', making Item 1 = 'restconf' and Item 2 = 'data'. Because the YANG module 'cisco-ios-xe-vlan' augments '/ios-native/ios-vlan', the path must first traverse the native base model, making Item 3 = 'Cisco-IOS-XE-native:native/vlan' (the host model being augmented). Finally, Item 4 = 'Cisco-IOS-XE-vlan:configuration' targets the 'configuration' list node shown in the YANG tree, using the module prefix to disambiguate the augmented node. The fully constructed URL becomes: https://ios-xe-mgmt.cisco.com:9443/restconf/data/Cisco-IOS-XE-native:native/vlan/Cisco-IOS-XE-vlan:configuration/
Concept tested. RESTCONF URL construction from a YANG model - specifically understanding the fixed '/restconf/data/' prefix, how augmented YANG modules require traversing the host (native) model path first, and how to use the 'module:node' prefix notation to correctly identify nodes from augmenting modules (cisco-ios-xe-vlan) within the URL path.
Reference. RFC 8040 (RESTCONF Protocol); Cisco IOS-XE YANG Data Models on GitHub (YangModels/yang); CCNP ENCOR / DevNet Associate exam topic: Programmability - RESTCONF and YANG
Topics
Community Discussion
No community discussion yet for this question.