QuestionQ166

Understanding and Using APIs

An engineer needs to configure Cisco Nexus devices and automate this workflow. The engineer will use an Ansible playbook to configure devices through the Cisco NX REST API. Before running the code, which resource must be used to confirm that the REST API requests work as intended?

  • A Cisco Open NX-OS
  • B Cisco NX-OS SDK
  • C Cisco Learning Labs
  • D Cisco Code Exchange for Nexus
Explanation

Before wiring REST calls into an Ansible playbook, the engineer needs an interactive, guided environment to try the NX-API REST requests and confirm the expected payloads/responses. Cisco Learning Labs (DevNet) provide exactly that kind of hands-on sandbox for experimenting with Cisco APIs (option C). Cisco Open NX-OS and the NX-OS SDK are for on-box programmability/app development, and Cisco Code Exchange is a curated catalog of community code repositories rather than a place to validate that your API requests work.

Learn more

Community Discussion

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