300-435 Question 39
Single answerYou are automating a network provisioning workflow using Cisco DNA Center APIs. The workflow requires you to retrieve a list of all network devices managed by Cisco DNA Center. Which API method should you use to accomplish this task?
- A
GET /api/v1/network-device
- B
POST /api/v1/device-health
- C
GET /api/v1/site
- D
PUT /api/v1/network-device
Show answer and explanation
Correct answer: A
Explanation
To retrieve a list of all network devices managed by Cisco DNA Center, the GET /api/v1/network-device API method is used. This endpoint fetches detailed information about network devices, which is necessary for network provisioning workflows. The other options either use incorrect HTTP methods or access endpoints that serve different purposes.
- A. Correct.
This is the correct API method to retrieve a list of all network devices managed by Cisco DNA Center. The GET HTTP method is used to query and fetch information.
- B. Incorrect.
This API method is used to retrieve device health information, but it does not provide a list of all network devices. Additionally, POST is typically used for creating resources, not retrieving them.
- C. Incorrect.
This API method is used to retrieve site-related information, such as site hierarchy, but it does not provide details about network devices.
- D. Incorrect.
The PUT HTTP method is used to update existing resources, and this specific API endpoint does not exist in Cisco DNA Center for this use case.