QuestionQ399

Understanding and Using APIs

Question Image

Refer to the exhibit. A network engineer is developing a Python script to programmatically save network-device configurations. Which code snippet must be inserted into the blank?

  • A self.save
  • B {self.headers}
  • C restconf
  • D netconf
Explanation

Cisco IOS XE RESTCONF uses restconf as its API root, with YANG RPC operations located under /restconf/operations. The save-config RPC endpoint is therefore /restconf/operations/cisco-ia:save-config.

Learn more

Community Discussion

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