300-435 Question 221
Single answerA network engineer is tasked with automating the discovery of devices in an enterprise network using APIs. The engineer decides to use Cisco DNA Center's API to retrieve a list of all devices along with their details. Which API endpoint should the engineer use to accomplish this task?
- A
/dna/intent/api/v1/network-device
- B
/dna/intent/api/v1/topology
- C
/dna/intent/api/v1/device-health
- D
/dna/intent/api/v1/site
Show answer and explanation
Correct answer: A
Explanation
The Cisco DNA Center API provides various endpoints for managing and automating network tasks. To retrieve a list of all network devices along with their details, the correct endpoint is '/dna/intent/api/v1/network-device'. This endpoint is specifically designed for device discovery and is a key component in automating network inventory management.
- A. Correct.
This is the correct endpoint for retrieving a list of all network devices and their details from Cisco DNA Center.
- B. Incorrect.
This endpoint is used for retrieving topology details, such as links and connections between devices, not for listing individual devices.
- C. Incorrect.
This endpoint provides health information about devices but does not return a list of devices or their detailed information.
- D. Incorrect.
This endpoint is used for site-related information, such as location hierarchy, and is not used for discovering devices.