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?
WARNING
the answers are mixed, do not specify in the comment number or the letter of the answer
please write answer#A instead A, answer#B instead B...