300-435 Question 165
Single answerA network engineer is tasked with using Cisco DNA Center's Intent APIs to automate the configuration of a new branch office network. The engineer needs to dynamically retrieve the list of all available device types in the inventory and ensure the data is accurate before proceeding with further automation tasks. Which Cisco DNA Center Intent API endpoint should the engineer use to achieve this?
- A
/dna/intent/api/v1/network-device
- B
/dna/intent/api/v1/site-health
- C
/dna/intent/api/v1/topology
- D
/dna/intent/api/v1/device-detail
Show answer and explanation
Correct answer: A
Explanation
The /dna/intent/api/v1/network-device endpoint is specifically designed to retrieve information about all devices in the inventory, including their types, which is essential for the engineer to dynamically gather accurate data before proceeding with further automation tasks.
- A. Correct.
This endpoint retrieves the list of all devices in the inventory, including their types and details, making it the correct choice for obtaining accurate device type information.
- B. Incorrect.
This endpoint provides health metrics for sites, which is unrelated to retrieving device type information.
- C. Incorrect.
This endpoint retrieves network topology details, such as connections between devices, but does not provide a comprehensive list of device types.
- D. Incorrect.
This endpoint provides detailed information about a specific device, but it requires an input parameter (device ID), and does not retrieve a list of device types.