300-435 Question 164
Single answerYou are implementing a network automation solution for an enterprise using Cisco DNA Center's Intent APIs. Your goal is to retrieve a list of all devices in the network along with their management IP addresses. Which API endpoint would you use to achieve this?
- A
/dna/intent/api/v1/network-health
- B
/dna/intent/api/v1/network-device
- C
/dna/intent/api/v1/topology/physical-topology
- D
/dna/intent/api/v1/site
Show answer and explanation
Correct answer: B
Explanation
The /dna/intent/api/v1/network-device endpoint is the correct API endpoint to use because it is designed to retrieve detailed information about network devices managed by Cisco DNA Center. This includes details like management IP addresses, device roles, and software versions, which directly addresses the requirements of the use case in the question.
- A. Incorrect.
This endpoint provides information about the network's health, such as device health scores, but does not return detailed device information like management IP addresses.
- B. Correct.
This endpoint is specifically designed to retrieve information about network devices, such as their management IP addresses, software versions, and roles.
- C. Incorrect.
This endpoint retrieves the physical topology of the network, focusing on device connections and topological relationships, not detailed device properties.
- D. Incorrect.
This endpoint provides information about sites within Cisco DNA Center, such as site hierarchy and configurations, but does not include device-specific details.