300-435 Question 216
Single answerA network administrator is tasked with automating the configuration of multiple devices in a Cisco Enterprise Network. They decide to use Cisco DNA Center APIs to retrieve a list of all network devices and their associated IP addresses. Which API endpoint should the administrator use to achieve this task?
- A
/dna/intent/api/v1/network-device
- B
/dna/intent/api/v1/topology
- C
/dna/intent/api/v1/site
- D
/dna/intent/api/v1/host
Show answer and explanation
Correct answer: A
Explanation
The /dna/intent/api/v1/network-device endpoint is used to retrieve details about all network devices managed by Cisco DNA Center, including their IP addresses. This makes it the most appropriate API for automating the retrieval of network device information in this scenario.
- A. Correct.
This endpoint retrieves information about all network devices, including their IP addresses, making it the correct choice for the task.
- B. Incorrect.
This endpoint provides information about the network topology, such as connections and links, but does not directly provide a list of devices and their IP addresses.
- C. Incorrect.
This endpoint is used to retrieve site-specific information about the network, such as site hierarchy or site-based configurations, and is not suitable for listing network devices.
- D. Incorrect.
This endpoint retrieves information about hosts connected to the network, such as end devices, but not the network devices themselves.