300-435 Question 223
Single answerYou are automating the deployment of network configurations in a Cisco SD-WAN environment using the vManage API. You need to apply a pre-configured template to multiple devices. Which API request and parameters must you use to successfully apply the template?
- A
POST request to /dataservice/template/device/config/input with device IDs and template ID in the payload
- B
GET request to /dataservice/template/device with only the template ID as a query parameter
- C
PUT request to /dataservice/template/device/config/input with the template ID in the request body
- D
POST request to /dataservice/template/device/config/attach with device IDs and template ID in the payload
Show answer and explanation
Correct answer: D
Explanation
To apply a pre-configured template to devices in a Cisco SD-WAN environment using the vManage API, you must use a POST request to the endpoint /dataservice/template/device/config/attach. The request payload must include the device IDs and the template ID. Other methods or endpoints, such as GET or PUT, are used for different purposes and do not apply templates to devices.
- A. Incorrect.
Incorrect. While this endpoint allows you to fetch input values for a device and template, it does not apply the template to devices.
- B. Incorrect.
Incorrect. This endpoint retrieves information about devices and templates but does not apply templates to devices.
- C. Incorrect.
Incorrect. The PUT method is not used for applying templates in Cisco SD-WAN APIs.
- D. Correct.
Correct. This is the correct endpoint and method to attach and apply a template to devices in a Cisco SD-WAN environment. The payload includes the device IDs and the template ID.