300-435 Question 248
Single answerYou are a network engineer automating your enterprise network using Cisco DNA Center APIs. Your task is to retrieve a list of all devices in the network, including their IP addresses and hostnames, to display this information in your custom dashboard. Which Cisco DNA Center API endpoint should you use to accomplish this task?
- A
/dna/intent/api/v1/network-device
- B
/dna/intent/api/v1/interface
- C
/dna/intent/api/v1/site
- D
/dna/intent/api/v1/topology
Show answer and explanation
Correct answer: A
Explanation
The /dna/intent/api/v1/network-device endpoint is specifically designed to retrieve detailed information about all network devices managed by Cisco DNA Center. This data includes device attributes such as IP addresses, hostnames, and other properties, making it the correct choice for the task of displaying device information in a custom dashboard.
- A. Correct.
Correct. This endpoint retrieves information about all network devices managed by Cisco DNA Center, including details such as IP addresses and hostnames.
- B. Incorrect.
Incorrect. This endpoint retrieves information about network interfaces, not devices as a whole.
- C. Incorrect.
Incorrect. This endpoint retrieves information about sites configured in Cisco DNA Center, not network devices.
- D. Incorrect.
Incorrect. This endpoint retrieves network topology information, which includes relationships between devices but does not provide a direct list of devices with their IP addresses and hostnames.