QuestionQ90
VerifiedDevice-Level Network AutomationDrag and drop the code below into the missing boxes to find the status of a template deployment to a device. Not all code is shown, and not every option is used.
Drag & Drop
import requests, json url = f"{BASE_URL}/dna/intent/api/v1/ template-programmer" headers = { 'x-auth-token': 'eyJhbGc ... yJoN8', 'Content-Type': 'application/json', } response = requests.request('', url, headers=headers) if response.status_code == 200: print(f"Status: {response.json()['']}") else: print("ERROR: Error retrieving template deploy status")
Community Discussion