cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1011
Views
0
Helpful
2
Replies

NSO Postman - API live-status, invalid path

brendmay
Cisco Employee
Cisco Employee

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!...

1 Accepted Solution

Accepted Solutions

tsiemers1
Spotlight
Spotlight

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" }}

 

image.png

View solution in original post

2 Replies 2

joepak
Cisco Employee
Cisco Employee
Maybe this would work?

admin:admin localhost:8080/api/operational/devices/device/ios/live-status/ios-stats:exec/_operations/show

tsiemers1
Spotlight
Spotlight

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" }}

 

image.png

Getting Started

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: