QuestionQ62Verified/Understanding and Using APIsCopy linkReport a problemAsk AstroTutorSave questionRefer to the exhibit. What is the purpose of the Python function?AIt returns HTTP Basic Authentication.BIt returns DNAC user and password.CIt reads a token from a local JSON file and posts the token to the DNAC URL.DIt returns an authorization token.Show AnswerAnswerExplanationThe Cisco DNA Center authentication endpoint accepts a POST request using HTTP Basic Authentication and returns a JSON response containing a Token value. Extracting resp.json()['Token'] returns the authorization token used for subsequent API requests.Learn moreCisco Catalyst Center AuthenticationShow comments10Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion