Sign Up
Log In
Home
discussion
Exam 350-401 Question id=5590 Security

import requests import sys import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def main(): device_uri = "https://192.168.1.1/dna/system/api/v1/auth/token” http_result = requests.get(device_uri, auth=("root", "test398555469!")) print(http_result) if http_result.status_code != requests.codes.ok: print("Call failed! Review get_token().") sys.exit() print(http_result.json()["Token"]) if_name_ == "_main_": sys.exit(main())

Output
$ python get_token.py Response [405]> Call failed! Review get_token().

An engineer runs the code against an API of Cisco DNA Center, and the platform returns this output. What does the response indicate?

A. The authentication credentials are incorrect.
B. The URI string is incorrect.
C. The Cisco DNA Center API port is incorrect.
D. The HTTP method is incorrect.