ExamGecko
Question list
Search
Search

Question 469 - 200-901 discussion

Report
Export

eating a Python script to programmatically save network device configurations. Which code snippet must be placed onto the blank in .. code?

A.

self.save

Answers
A.

self.save

B.

{self.headers}

Answers
B.

{self.headers}

C.

restconf

Answers
C.

restconf

D.

netconf

Answers
D.

netconf

Suggested answer: C

Explanation:

The provided Python script is designed to use the RESTCONF protocol to interact with a network device. RESTCONF is a protocol used for accessing data defined in YANG, using RESTful principles.

restconf: This is the correct choice to complete the script as it indicates that the RESTCONF protocol is being used to communicate with the device.

The relevant line in the script should read:

response = requests.post(f'https://{self.hostname}:{self.port}/restconf/operations/cisco-ia:save-config/', headers=self.headers, auth=(self.username, self.password), verify=False)

Cisco RESTCONF Protocol Guide

asked 07/10/2024
giulio guzzi
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first