Sign Up
Log In
Home
discussion
Exam 200-901 Question id=6254 Understanding and Using APIs

Refer to the exhibit.

def get_result() url = "https://sandboxdnac.cisco.com/dna/system/api/v1/auth/token" resp = requests.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) result = resp.json()['Token'] return result

What does the Python function do?

A. It returns HTTP Basic Authentication.
B. It returns DNAC user and password.
C. It reads a token from a local JSON file and posts the token to the DNAC URL.
D. It returns an authorization token.

https://developer.cisco.com/docs/dna-center/#!authentication-api