03-04-2019 06:48 AM
Hi experts -
I have the majority of the API call for live-status complete, except when I input the CLI through GET, I receive an invalid path response.
I can tell this is where it is failing as I gleaned the rest API path through a previous postman GET request - showing all the options from the main directory -
* 127.0.0.1:8080/api/operational/devices/device/router2/live-status/ios-stats:exec/_operations/
My path which is failing is as follows:
127.0.0.1:8080/api/operational/devices/device/router2/live-status/ios-stats:exec/_operations/any/"sh ip route"
Any syntax clarity on the proper path would be appreciated!...
Solved! Go to Solution.
04-09-2019 09:17 AM
Postman would require the show command to be in the body not the URL request.
POST: 127.0.0.1:8080/api/operational/devices/device/router2/live-status/ios-stats:exec/_operations/any/
Headers:
Content-Type - application/vnd.yang.operation+json
Body: raw
{ "input": { "args": "show ip interface brief" }}
03-05-2019 03:41 PM
04-09-2019 09:17 AM
Postman would require the show command to be in the body not the URL request.
POST: 127.0.0.1:8080/api/operational/devices/device/router2/live-status/ios-stats:exec/_operations/any/
Headers:
Content-Type - application/vnd.yang.operation+json
Body: raw
{ "input": { "args": "show ip interface brief" }}
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: