300-435 · Question #128
300-435 Question #128: Real Exam Question with Answer & 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
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.
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
Community Discussion
No community discussion yet for this question.