QuestionQ428
Using APIsDrag the code snippets from the bottom into the blanks in the Python script to retrieve a list of network devices using the Cisco Catalyst Center (formerly DNA Center) API. Not every option is needed.
Drag & Drop
api
put
get
url
token
post
def
def network_device_list(dnac, token): url = "https://{host_ip}//v1/network-device".format(dnac['host']) headers = {"x-auth-token": } response = requests.(, headers=headers, verify=False) data = response.json()
Community Discussion