06-22-2023 12:18 PM
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.
Solved! Go to Solution.
06-23-2023 02:35 AM
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.
06-23-2023 02:35 AM
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.
06-26-2023 07:34 AM
/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!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide