QuestionQ13

Device-Level Network Automation

Question Image

Refer to the exhibit. An engineer must configure a Cisco IOS XE router by using RESTCONF. The Base64 code used by the Cisco IOS XE router is 1A2B3C4D5E6F7G8H9I0. Which line of code must be added in the missing-code box to complete the Python request?

Explanation

RESTCONF on Cisco IOS XE uses HTTP authentication, and a Base64-encoded Basic credential is sent as the value of the Authorization header with the Basic scheme. Cisco documents that RESTCONF connections require AAA authentication. X-XSRF-TOKEN, secure-token, and x-auth-token are not the HTTP Basic authentication header used here.

Learn more

Community Discussion

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