ā04-20-2024 10:52 AM
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
Solved! Go to Solution.
ā04-21-2024 05:26 AM
Here are a few relevant endpoints for managing device templates:
List Device Templates GET /dataservice/template/device
Get 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.
ā04-21-2024 12:50 AM
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/
ā04-21-2024 05:26 AM
Here are a few relevant endpoints for managing device templates:
List Device Templates GET /dataservice/template/device
Get 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.
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