300-435 Question 212
Single answerYou are tasked with automating the retrieval of device inventory data from Cisco DNA Center. Which API request should you use to accomplish this task?
- A
GET /dna/intent/api/v1/network-device
- B
POST /dna/intent/api/v1/network-device
- C
GET /dna/intent/api/v1/network-health
- D
DELETE /dna/intent/api/v1/network-device
Show answer and explanation
Correct answer: A
Explanation
To retrieve device inventory data from Cisco DNA Center, the appropriate API endpoint is GET /dna/intent/api/v1/network-device. This endpoint allows you to fetch details about all network devices managed by Cisco DNA Center. Other HTTP methods and endpoints provided in the options either serve different purposes or are incorrect for this specific task.
- A. Correct.
This is the correct API endpoint and HTTP method for retrieving network device inventory data from Cisco DNA Center.
- B. Incorrect.
POST is used to create or modify resources, not to retrieve inventory data.
- C. Incorrect.
GET /dna/intent/api/v1/network-health is used to retrieve network health information, not device inventory data.
- D. Incorrect.
DELETE is used to remove resources, which is not relevant to retrieving inventory data.