200-901 Cisco Platforms and Development Practice Question
When using the NX-API on Cisco NX-OS, which HTTP method is used to send CLI commands in JSON format?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
POST
NX-API uses POST requests to the /ins endpoint with a JSON body containing the CLI commands and the type (cli_show or cli_conf).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
POST
Why this is correct
NX-API accepts CLI commands wrapped in JSON via HTTP POST, since the command payload is submitted in the request body. GET cannot carry a body reliably, so POST is the method used to send show or configuration commands to the NX-OS device.
- ✗
PUT
Why it's wrong here
NX-API accepts CLI commands as a JSON payload delivered by POST; PUT is defined for idempotent replacement of an existing resource, so NX-OS does not process it as a command request. PUT would be the right method when updating a REST resource at a known URI.
- ✗
GET
Why it's wrong here
GET retrieves data and carries no request body, so it cannot transport the JSON command payload NX-API expects; the device reads commands from the body of a POST. GET would be correct for read-only queries such as fetching interface counters or configuration state.
- ✗
PATCH
Why it's wrong here
PATCH applies a partial modification to an existing REST resource, whereas NX-API expects the CLI command string in a POST body. PATCH would be the correct method when altering individual fields of an existing object rather than submitting commands for execution.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 200-901 question from scratch — 975 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.