350-401 Question 325
Single answerA network administrator wants to automate the deployment of new policies across the network using Cisco DNA Center. The administrator plans to use REST APIs to achieve this. Which step is essential to authenticate and interact with Cisco DNA Center's APIs?
- A
Generate an API token by sending a POST request to the /dna/system/api/v1/auth/token endpoint
- B
Establish a WebSocket connection to Cisco DNA Center for API access
- C
Retrieve the API key from the Cisco DNA Center's user settings page
- D
Use a pre-configured static token provided during the installation of Cisco DNA Center
Show answer and explanation
Correct answer: A
Explanation
Cisco DNA Center's REST APIs require token-based authentication. The first step when interacting with these APIs is to generate an authentication token by sending a POST request to the /dna/system/api/v1/auth/token endpoint. This token is then used in the headers of subsequent API requests to ensure secure access.
- A. Correct.
This is the correct method to authenticate with Cisco DNA Center APIs. A POST request to the /dna/system/api/v1/auth/token endpoint is required to generate an API token for subsequent API calls.
- B. Incorrect.
Cisco DNA Center does not use WebSocket connections for API authentication. REST APIs rely on HTTP methods such as POST and GET.
- C. Incorrect.
Cisco DNA Center does not provide an API key via the user settings page. Authentication is handled through token-based methods.
- D. Incorrect.
Tokens are not statically pre-configured during installation. They are dynamically generated using the POST request to the authentication endpoint.