cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
800
Views
0
Helpful
2
Replies

Viptela feature template payload for REST API

jurajama
Level 1
Level 1

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?

2 Replies 2

HI,

 

I remember that, you can get json payload by using relevant GET requests. Then you can copy and manipulate it.

 

HTH,

HTH,
Please rate and mark as an accepted solution if you have found any of the information provided useful.

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.

Review Cisco Networking for a $25 gift card