Cisco
200-901 · Question #7
Refer to the exhibit. What does the python function do?
The correct answer is C. It returns an authorization token. You need to retrieve information through the API, so we need to do a GET request; don’t forget the X-Auth-Token header containing the authorization token. https://developer.cisco.com/learning/lab/dnav3-dnac-nbapi-hello-world/step/4
Understanding and Using APIs
Question
Refer to the exhibit. What does the python function do?
Exhibit
Options
- AIt returns DNAC user and password.
- BIt returns HTTP Basic Authentication.
- CIt returns an authorization token.
- DIt reads a token from a local JSON file and posts the token to the DNAC URL.
How the community answered
(24 responses)- A4% (1)
- B4% (1)
- C92% (22)
Explanation
You need to retrieve information through the API, so we need to do a GET request; don’t forget the X-Auth-Token header containing the authorization token. https://developer.cisco.com/learning/lab/dnav3-dnac-nbapi-hello-world/step/4
Topics
#Python#Authorization Token#API Authentication#Cisco DNA Center
Community Discussion
No community discussion yet for this question.
