cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
418
Views
3
Helpful
2
Replies

Automate SDWAN Device Templates Editing

Humonculus
Level 1
Level 1

We need to apply time based policies for our customer's SDWAN solution. We can  do that manually but we cannot maintain it for a long periods of time. So the easiest way we came up with is to edit the device templates @ the needed time period & we need to automate this process.

Is there an SDWAN API that allows us to manipulate/edit device templates that have multiple devices attached to them? We are running on controllers version 20.9.3.0.17

1 Accepted Solution

Accepted Solutions

Here are a few relevant endpoints for managing device templates:
List Device Templates GET /dataservice/template/deviceGet Device Template Details GET /dataservice/template/device/object/{templateId}
Create/Edit Device Template PUT /dataservice/template/device/{templateId}
Delete Device Template DELETE /dataservice/template/device/{templateId}
Attach Device Template to Devices/Device Groups POST /dataservice/template/device/config/attachedviadevicetemplate

You can find detailed documentation and examples in the Cisco SD-WAN REST API Guide for the specific version you're running The guide should provide information on authentication, request/response formats, and specific parameters required for each API endpoint.

To automate the process of editing device templates at specific time periods, you can develop a script or application that leverages the vManage REST API. This script can retrieve the existing device template, make the desired modifications, and then update the template using the appropriate API endpoint. You can schedule this script to run at the required time intervals using cron jobs or other scheduling mechanisms.

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

balaji.bandi
Hall of Fame
Hall of Fame

As per i know you  can use vManage and change the templates attached the devices.

never tried API - please check the below documentation may help you :

https://developer.cisco.com/docs/sdwan/sd-wan-vmanage-v20-13/

https://developer.cisco.com/sdwan/?utm_campaign=sdwan20&utm_source=devblog&utm_medium=stuartclark-may26webinar

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Here are a few relevant endpoints for managing device templates:
List Device Templates GET /dataservice/template/deviceGet Device Template Details GET /dataservice/template/device/object/{templateId}
Create/Edit Device Template PUT /dataservice/template/device/{templateId}
Delete Device Template DELETE /dataservice/template/device/{templateId}
Attach Device Template to Devices/Device Groups POST /dataservice/template/device/config/attachedviadevicetemplate

You can find detailed documentation and examples in the Cisco SD-WAN REST API Guide for the specific version you're running The guide should provide information on authentication, request/response formats, and specific parameters required for each API endpoint.

To automate the process of editing device templates at specific time periods, you can develop a script or application that leverages the vManage REST API. This script can retrieve the existing device template, make the desired modifications, and then update the template using the appropriate API endpoint. You can schedule this script to run at the required time intervals using cron jobs or other scheduling mechanisms.

Hope this helps.

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