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…
Question
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
Community Discussion
No community discussion yet for this question.
