350-401 · Question #825
To authenticate with Cisco's DNA Center, which type of HTTP request method must be used?
The correct answer is D. POST. To authenticate with Cisco DNA Center's REST API, the HTTP POST method is used to send credentials and receive an authentication token.
Question
To authenticate with Cisco's DNA Center, which type of HTTP request method must be used?
Options
- APUT
- BPATCH
- CGET
- DPOST
- EHEAD
How the community answered
(29 responses)- B3% (1)
- C7% (2)
- D90% (26)
Why each option
To authenticate with Cisco DNA Center's REST API, the HTTP POST method is used to send credentials and receive an authentication token.
PUT is used to update or replace a resource entirely, not for initial authentication.
PATCH is used to apply partial modifications to a resource, not for initial authentication.
GET is used to retrieve data from a specified resource, not for sending credentials to authenticate.
Cisco DNA Center's REST API, like many other RESTful APIs, uses the HTTP POST method for authentication, typically by sending user credentials in the request body to an authentication endpoint.
HEAD is similar to GET but only retrieves the response headers, not the body, and is not used for authentication.
Concept tested: Cisco DNA Center API authentication method
Source: https://developer.cisco.com/docs/dna-center/#!authentication
Topics
Community Discussion
No community discussion yet for this question.