Hi,
I'm injecting data from a SDWAN platform into splunk enterprice 7.3.2 via Rest API. I'm using the Add-on builder to build our HTTP requests and It works great, however there are some taks that I would like to automate.
The SDWAN platform allows us to run SpeedTest to the devices registered and then collect the results using the test ID.
In the response from the HTTP post sent to the server to run the speed test, we get the ID in the response:
"created_at": "2019-11-18T18:25:13.038236+00:00",
"id": "1462286",
"progress": null,
"resource_uri": "https://www.cradlepointecm.com/api/v2/speed_test/1462286/",
"results": null,
"state": "created",
"updated_at": "2019-11-18T18:25:13.038271+00:00"
Then, I need to send a new HTTP get including the id in the header to get the results:
https://www.cradlepointecm.com/api/v2/speed_test/1462286/
In the add-on builder you can add the variables to the HTTP header, but I dont know if it is possbile to update the var using the latest HTTP post id.
https://www.cradlepointecm.com/api/v2/speed_test/${upload_id}/
Thanks in advance,
Marco Salerno
Currently Add-on Builder REST input can only send ONE request. Please use Python input which is able to do anything you want. There are many helper functions to help you to send REST request by one line of code. You can try to create one and see some code templates in AoB UI.