Sign Up
Log In
Home
discussion
Exam 200-901 Question id=6217 Cisco Platforms and Development

Fill in the blanks to complete the Python script to retrieve a list of network devices using the Cisco DNA Center API.

my_token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzl1NiJ9.ey.JzdWloOil1ZDE0OWZkMjhlZTY2M mQ3NGM5YzE5ZTliLmYzMCLslmV4CcCI6MTU3MjM3ODE%MCwidXNlcm5hbWUiOiJraXN370940885.z hK5LPQd501ZUpZI0IH_qrgOXttlNbxSFFF7JOEtRls’ import requests url = "https://myDNAserver/dna/intent/api/v1/network-device" payload = {} headers = {'x-auth-token': my_token} response = requests.request( _____A_____, url, headers = _____B_____, data = _____C_____ ) print(response.text.encode(‘utf8’))

A. method
B. headers
C. request.get_data

response = requests.request( method , url, headers = headers, data = request.get_data ) print(response.text.encode(‘utf8’))