nerdexam
Cisco

350-601 · Question #19

Refer to the exhibit. Why does the Python code for Cisco NX-API print an error message?

The correct answer is D. The "type" is wrong in the body of the request and should be "cli_conf". "Commands that belong to different message types should not be mixed. For example, show commands are cli_show message type and are not supported in cli_conf mode." cisco_nexus7000_programmability_guide_8x/b-cisco-nexus7000-programmability-guide- 8x_chapter_011.html

Automation

Question

Refer to the exhibit. Why does the Python code for Cisco NX-API print an error message?

Exhibit

350-601 question #19 exhibit

Options

  • AThe JSON is not a supported format for the NX-API.
  • BThe "type" is wrong in the header of the request and should be "cli_conf"
  • CNX-API does not allow configuration for features via the requests module.
  • DThe "type" is wrong in the body of the request and should be "cli_conf"

How the community answered

(24 responses)
  • A
    8% (2)
  • C
    4% (1)
  • D
    88% (21)

Explanation

"Commands that belong to different message types should not be mixed. For example, show commands are cli_show message type and are not supported in cli_conf mode." cisco_nexus7000_programmability_guide_8x/b-cisco-nexus7000-programmability-guide- 8x_chapter_011.html

Topics

#Cisco NX-API#Python automation#JSON payload#API configuration

Community Discussion

No community discussion yet for this question.

Full 350-601 Practice