1066
Views
0
Helpful
1
Replies
How to run show commands via Viptela REST API?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2021 12:21 AM
According to the sdwan rest api SSH documentation,
POST /newssh/connection/{deviceId} "Create SSH session"
after querying above URL with device ID and username and password,
we get the following output
{ "header": { "generatedOn": 1630319198511 }, "data": { "connectURL": "/shell/1dbc9071-1d8f-4fb2-988f-9e075fdf1c1c", "destroyURL": "dataservice/newssh/disconnect/1dbc9071-1d8f-4fb2-988f-9e075fdf1c1c", "sessionId": "1dbc9071-1d8f-4fb2-988f-9e075fdf1c1c", "remoteVMSessionId": "57f07d4d-096b-42ef-bbed-3533dbb3bbfa", "deviceId": "10.161.205.241", "uuid": "ISR4331/K9-FDO22100H0Q", "requestjSessionId": "7E3RJDXABmsUujhIyKdVXdDTh3YdCOYpOMHfRwrX" } }
Now how do we connect this session URL and run some sample show commands?
Is there another way to run show commands on vmanage edge router via rest api?
Labels:
- Labels:
-
Other SD-WAN
-
SD-WAN vManage
1 Reply 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 10:12 AM - edited 09-01-2021 10:12 AM
The below GIT hub example shows how to connect vManage and perform the get the task.
https://github.com/al-joshua/cisco-sdwan
