Refer to the exhibit. A Python script is created to add a new device on Cisco NSO using RESTCONF API. The device is added successfully, but a 405 Method Not Allowed RESTCONF error code has received as the line to fetch SSH keys runs. Which code is missing to complete the script?

QuestionsCategory: 300-535Refer to the exhibit. A Python script is created to add a new device on Cisco NSO using RESTCONF API. The device is added successfully, but a 405 Method Not Allowed RESTCONF error code has received as the line to fetch SSH keys runs. Which code is missing to complete the script?
Admin Staff asked 3 months ago
Image
Refer to the exhibit. A Python script is created to add a new device on Cisco NSO using RESTCONF API. The device is added successfully, but a 405 Method Not
Allowed RESTCONF error code has received as the line to fetch SSH keys runs. Which code is missing to complete the script?

A. response = requests.put(baseUriOperation + "/devices/device=ios-device/ssh/fetch-host-keys", auth=auth, headers=headers)

B. response = requests.post(baseUriOperation + "/devices/device=ios-device/ssh/fetch-host-keys", auth=auth, headers=headers)

C. response = requests.post(baseUriOperation + "/devices/device=ios-device/ssh/request-host-keys", auth=auth, headers=headers)

D. response = requests.put(baseUriOperation + "/devices/device=ios-device/ssh/request-host-keys", auth=auth, headers=headers)








 

Suggested Answer: C



This question is in 300-535 Automating and Programming Cisco Service Provider Solutions (SPAUTO) Exam
For getting Cisco Certified DevNet Professional Certificate



Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Cisco.
Trademarks, certification & product names are used for reference only and belong to Cisco.
The website does not contain actual questions and answers from Cisco's Certification Exam.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.