ExamGecko
Question list
Search
Search

Question 79 - 200-901 discussion

Report
Export

FILL BLANK

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.JzdWliOil1ZDE0OWZkMjhlZTY2

MmQ3NGM5YzE5ZTliLmYzMClslmV4cCI6MTU3MjM3ODE5MCwidXNlcm5hbWUiOiJraX

N370940885.zhK5LPQd501ZUpZI0IH_qrgOXttlNbxSFFF7JOEtRls’

import requests

url = “https://myDNAserver/dna/intent/api/v1/network-device” payload = {}

headers = {‘x-auth-token’: my_token}

response = requests.request(____________ , url,

headers =____________ , data =____________ ) print(response.text.encode(‘utf8’))

A.
Answers
A.
Suggested answer: A

Explanation:

Answer: A

Explanation:


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

Reference: https://www.programcreek.com/python/example/64946/flask.request.get_data

asked 07/10/2024
Carlos Periterra
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first