D Seems to be right.
"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."
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus7000/sw/programmability/guide/cisco_nexus7000_programmability_guide_8x/b-cisco-nexus7000-programmability-guide-8x_chapter_011.html
Answer is D, the payload "type" value is wrong in the body of the request. For the request to be successful, it should be changes to "cli_conf".
For example, if we run the same request with the updated payload:
{
"ins_api": {
"version": "1.0",
"type": "cli_conf",
"chunk": "0",
"sid": "1",
"input": "configure terminal ;feature hsrp",
"output_format": "json"
}
}
We get a 200 response:
{
"ins_api": {
"sid": "eoc",
"type": "cli_conf",
"version": "1.0",
"outputs": {
"output": [
{
"code": "200",
"msg": "Success",
"body": {}
},
{
"code": "200",
"msg": "Success",
"body": {}
}
]
}
}
}
CLI verification:
nxos9kv# sh run | inc hsrp
feature hsrp
Ofc D is correct - JSON is indeed supported while running python modules on NXOS, the type in the header is ok (as the payload is indeed json code), and similarly NX-API support to do all config via python requests...
I think this is either B or D. I can't find anything on a requests module, but the cli_show type is for show commands.
upvoted 3 times
...
This section is not available anymore. Please use the main Exam Page.350-601 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
john350601
Highly Voted 2 years, 9 months agoblurain
Highly Voted 2 years, 1 month agoHsma
Most Recent 6 months, 4 weeks agoGuyThatTakesDumps
7 months, 2 weeks agomauchi
1 year agoengabelal
2 years, 3 months agoUltimabstract
2 years, 9 months agoAllenT
2 years, 10 months ago