08-07-2020 03:10 AM
I have implemented Viptela automation via vManage REST API and able to create feature templates. However I have not found any reference documentation about the JSON-payload used in template operations but done implementation based on examples in https://github.com/RunSi/SDWAN_Templates/tree/master/vedge_cloud_featuretemplates
However that is totally unofficial and already outdated content, so I had to also do some reverse engineering by observing the payload from web browser developer console when creating the templates via vManage UI.
My question is whether Cisco provides official supported payload examples somewhere in product documentation or in Github?
08-07-2020 02:55 PM
HI,
I remember that, you can get json payload by using relevant GET requests. Then you can copy and manipulate it.
HTH,
08-12-2020 03:43 AM - edited 08-12-2020 03:46 AM
Yes it seems that payload information can be fetched with URL like:
curl -b /tmp/cookie.txt -X GET https://vmanage-xxxxx.viptela.net/dataservice/template/feature/types/definition/ntp/15.0.0
I noticed that URL as vManage GUI is doing such operation when initiating new template creation. Fetching the payload could also be done using a browser when vManage session is open, so not mandatory to use curl.
Though still also creating the template via vManage GUI and observing the browser developer console gives good example of the usage.
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