cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
911
Views
1
Helpful
2
Replies

SD-WAN API Speedtest endpoint

Uridium454
Level 1
Level 1

I am attempting to use the provided statistic speedtest endpoints to replicate the behavior seen while running a speedtest from the gui. Each attempt to run results in the fields being returned with no data value. 

I am looking for either additional documentation outside of the swagger docs or an example of one of these calls being made.  Any assistance would be appreciated.

 

1 Accepted Solution

Accepted Solutions

Which endpoint are you using this one? '/statistics/speedtest'. The SD-WAN Docs are here https://developer.cisco.com/docs/sdwan/#!sd-wan-vmanage-v20-10, but these are just the same swagger docs you find on the device as it is build from the same json file.

You might check out this tool https://github.com/CiscoDevNet/vManage-client which has a speedtest option.

devices = session.api.devices.get()
speedtest = session.api.speedtest.speedtest(devices[0], devices[1])

The other trick i leant with SD-WAN API, is to run the test from the UI and Chrome Dev Tools, capture the API request and payload, i had some issues with running troubleshooting API calls before and the there were not the options for in the Swagger docs, what was shows was not what the UI was making.

Hope this helps.

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

2 Replies 2

Which endpoint are you using this one? '/statistics/speedtest'. The SD-WAN Docs are here https://developer.cisco.com/docs/sdwan/#!sd-wan-vmanage-v20-10, but these are just the same swagger docs you find on the device as it is build from the same json file.

You might check out this tool https://github.com/CiscoDevNet/vManage-client which has a speedtest option.

devices = session.api.devices.get()
speedtest = session.api.speedtest.speedtest(devices[0], devices[1])

The other trick i leant with SD-WAN API, is to run the test from the UI and Chrome Dev Tools, capture the API request and payload, i had some issues with running troubleshooting API calls before and the there were not the options for in the Swagger docs, what was shows was not what the UI was making.

Hope this helps.

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

/statistics/speedtest is the endpoint I was attempting to use.  The dev tools definitely revealed some interesting calls that certainly helped out quite a bit.

The vmanage-client looks quite promising as well. I will use these to delve further.

Thank you!