nerdexam
Cisco

300-435 · Question #128

Drag and drop the code from the bottom onto the box where the code is missing to find the status of a template deployment to a device. Not all of the code is shown. Not all options are used.

To retrieve the status of a template deployment via Cisco DNA Center: The correct API endpoint is: template-programmer/template/deploy/status/{DEPLOYMENT_ID} The HTTP method to use is GET for status retrieval. The field "status" in the JSON response contains the deployment…

Controller-Based Network Automation

Question

Drag and drop the code from the bottom onto the box where the code is missing to find the status of a template deployment to a device. Not all of the code is shown. Not all options are used.

Exhibit

300-435 question #128 exhibit

Explanation

To retrieve the status of a template deployment via Cisco DNA Center: The correct API endpoint is: template-programmer/template/deploy/status/{DEPLOYMENT_ID} The HTTP method to use is GET for status retrieval. The field "status" in the JSON response contains the deployment result.

url = f"{BASE_URL}/dna/intent/api/v1/template-programmer/template/deploy/status/{DEPLOYMENT_ID}"

response = requests.request('GET', url, headers=headers)

print(f"Status: {response.json()['status']}")

Topics

#Template Deployment#Deployment Status Monitoring#API Interaction#Controller Automation

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice