Quiz 6 Question 13 of 20

A Python script using the requests library must set the hostname on an IOS XE router with RESTCONF enabled. The YANG node lives at Cisco-IOS-XE-native:native/hostname, the write has to create the value when it is missing and replace it when it is present, and the team standard requires RFC 8040 yang-data media types on both the request and the response. Which RESTCONF request writes the hostname correctly?

Select an answer to reveal the explanation.

Motivation