nerdexam
Cisco

300-435 · Question #136

Drag and drop the code snippets from the bottom onto the boxes in the code to complete the attach_feature_template function that attaches a configuration template by using the vManage Configuration AP

Sign in or unlock 300-435 to reveal the answer and full explanation for question #136. The question stem and answer options stay visible for context.

Controller-Based Network Automation

Question

Drag and drop the code snippets from the bottom onto the boxes in the code to complete the attach_feature_template function that attaches a configuration template by using the vManage Configuration API. The template is new and unmodified. Not all options are used.
def attach_feature_template(self):
 mount_point = "template/device/ /attachfeature"
 payload = {
 "deviceTemplateList": [
 {
 "templateId": "41f6a440-c5cc-4cc6-9cal-af18e332a781",
 "device": [
 {
 " ": " ", "complete",
 "csv-deviceId":"7CSA-61CD2311-4775-650F-B538-4EC7BDFFD04C",
 "csv-deviceIP":"10.10.1.1",
 "csv-host-name":"dc-edge01",
 "//system system-ip":"10.10.1.11",
 "//system system-ip":"10.10.1.1",
 "csv-templatedId":"41f6a440-c5cc-4cc6-9cal-af18e332a781",
 "selected":"true"
 }
 ]
 }
 ],
 "isEdited": False,
 "isMasterEdited": False
 }

 headers = {"Content-Type": " "}
 url = "https://%s/dataservice/%s/%s/self.vmanage_ip, mount_point)
 payload = json.dumps(payload)
 response = self.session.post(url=url,
 data=payload,
 headers=headers, verify=True)
 return response
Available options: template, post, csv-status, attach, put, config, application/json.

Exhibit

300-435 question #136 exhibit

Unlock 300-435 to see the answer

You've previewed enough free 300-435 questions. Unlock 300-435 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#vManage API#Python#Configuration Automation#REST API
Full 300-435 Practice