300-435 Question 188
Single answerYou are tasked with automating a network audit process using Cisco DNA Center APIs. The requirement is to retrieve a list of all devices in your network, including their health status. Which API endpoint would you use to accomplish this task?
- A
/dna/intent/api/v1/network-health
- B
/dna/intent/api/v1/network-device
- C
/dna/intent/api/v1/topology/site-topology
- D
/dna/intent/api/v1/client-health
Show answer and explanation
Correct answer: B
Explanation
To retrieve a list of all devices in the network along with their health status, the '/dna/intent/api/v1/network-device' endpoint is the correct choice. This API provides detailed information about network devices, including their health metrics, which aligns with the requirements of the network audit process.
- A. Incorrect.
This endpoint provides overall network health metrics but does not return detailed information about individual devices or their health status.
- B. Correct.
This endpoint retrieves information about all network devices, including their health status, making it the correct choice for this task.
- C. Incorrect.
This endpoint retrieves topology details for sites and does not provide per-device health information.
- D. Incorrect.
This endpoint focuses on client health rather than network devices, so it is not relevant to the task.