Solved

Refer to the Exhibit

Question 47

Multiple Choice

  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) 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)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents